Stencyl 3.4.0 is now out. Get it now!

Bug Issue: The block Screen Width and Screen Height returns wrong proportions (Android)


Pages: 1

svintaj

  • Subscriber - Stencyl Studio
  • *
September 30, 2017, 03:44:43 pm
The block Screen With and Screen Height returns wrong proportions in Stencyl. (On Android Nougat, compiled with b9511 )

The block saying my app is 320 x  680, but if I take a screengrab and scale that image in PhotoShop to be exactly 320 in width, then the resulting height is 569? and not 680 as it said...


Justin

  • Master Stencyler
  • *
September 30, 2017, 06:45:32 pm
Can you post the beginning portion of the game's log output? It contains scaling information, and should give a better idea of what's happening.


svintaj

  • Subscriber - Stencyl Studio
  • *
October 01, 2017, 02:30:01 am
Ok, here comes a LogCat for the app:
Code: [Select]
10-01 11:23:36.643: I/ActivityManager(988): START u0 {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=com.segelson.spraycan/.MainActivity bnds=[18,830][155,1007] (has extras)} from uid 10041 on display 0
10-01 11:23:36.647: V/WindowManager(988): Set focused app to: AppWindowToken{4f7aa58 token=Token{56635ca ActivityRecord{c254d35 u0 com.segelson.spraycan/.MainActivity t472}}} old focus=AppWindowToken{56dc6a1 token=Token{2c6acab ActivityRecord{6edbefa u0 com.motorola.launcher3/com.android.launcher3.GoogleNowPanel t438}}} moveFocusNow=true
10-01 11:23:36.647: V/WindowManager(988): findFocusedWindow: Reached focused app=AppWindowToken{4f7aa58 token=Token{56635ca ActivityRecord{c254d35 u0 com.segelson.spraycan/.MainActivity t472}}} target=AppWindowToken{56dc6a1 token=Token{2c6acab ActivityRecord{6edbefa u0 com.motorola.launcher3/com.android.launcher3.GoogleNowPanel t438}}}
10-01 11:23:36.667: V/WindowManager(988): findFocusedWindow: Reached focused app=AppWindowToken{4f7aa58 token=Token{56635ca ActivityRecord{c254d35 u0 com.segelson.spraycan/.MainActivity t472}}} target=AppWindowToken{56dc6a1 token=Token{2c6acab ActivityRecord{6edbefa u0 com.motorola.launcher3/com.android.launcher3.GoogleNowPanel t438}}}
10-01 11:23:36.685: I/WindowManager(988): lockCanvas, mToken =AppWindowToken{4f7aa58 token=Token{56635ca ActivityRecord{c254d35 u0 com.segelson.spraycan/.MainActivity t472}}}
10-01 11:23:36.685: I/ActivityManager(988): Start proc 15823:com.segelson.spraycan/u0a193 for activity com.segelson.spraycan/.MainActivity
10-01 11:23:36.725: I/libPerfService(988): [perfNotifyAppState] foreground:com.segelson.spraycan, pid:15823
10-01 11:23:36.867: D/OpenGLRenderer(15823): <com.segelson.spraycan> is running.
10-01 11:23:36.886: D/ViewRootImpl[MainActivity](15823): hardware acceleration is enabled, this = ViewRoot{914ff47 com.segelson.spraycan/com.segelson.spraycan.MainActivity,ident = 0}
10-01 11:23:36.891: V/PhoneWindow(15823): DecorView setVisiblity: visibility = 0, Parent = ViewRoot{914ff47 com.segelson.spraycan/com.segelson.spraycan.MainActivity,ident = 0}, this = DecorView@ab6b3ae[MainActivity]
10-01 11:23:36.898: I/BufferQueueConsumer(293): [com.segelson.spraycan/com.segelson.spraycan.MainActivity](this:0xad6f5000,id:304,api:0,p:-1,c:293) setConsumerName: com.segelson.spraycan/com.segelson.spraycan.MainActivity
10-01 11:23:36.898: I/BufferQueueConsumer(293): [com.segelson.spraycan/com.segelson.spraycan.MainActivity](this:0xad6f5000,id:304,api:0,p:-1,c:293) setDefaultBufferSize: width=720 height=1184
10-01 11:23:36.900: V/WindowManager(988): Changing focus from null to Window{10c130f u0 com.segelson.spraycan/com.segelson.spraycan.MainActivity} Callers=com.android.server.wm.WindowManagerService.relayoutWindow:3261 com.android.server.wm.Session.relayout:218 android.view.IWindowSession$Stub.onTransact:286 com.android.server.wm.Session.onTransact:139
10-01 11:23:36.900: D/WindowManager(988): Input focus has changed to Window{10c130f u0 com.segelson.spraycan/com.segelson.spraycan.MainActivity}
10-01 11:23:36.905: I/BufferQueueConsumer(293): [com.segelson.spraycan/com.segelson.spraycan.MainActivity](this:0xad6f5000,id:304,api:0,p:-1,c:293) setDefaultBufferSize: width=720 height=1280
10-01 11:23:36.911: D/OpenGLRenderer(15823): CanvasContext() 0xa4ff44c0 initialize window=0xa4fb9000, title=com.segelson.spraycan/com.segelson.spraycan.MainActivity
10-01 11:23:36.923: I/BufferQueueConsumer(293): [SurfaceView - com.segelson.spraycan/com.segelson.spraycan.MainActivity](this:0xae84c000,id:305,api:0,p:-1,c:293) setConsumerName: SurfaceView - com.segelson.spraycan/com.segelson.spraycan.MainActivity
10-01 11:23:36.923: I/BufferQueueConsumer(293): [SurfaceView - com.segelson.spraycan/com.segelson.spraycan.MainActivity](this:0xae84c000,id:305,api:0,p:-1,c:293) setDefaultBufferSize: width=720 height=1280
10-01 11:23:36.928: I/BufferQueueConsumer(293): [SurfaceView - com.segelson.spraycan/com.segelson.spraycan.MainActivity](this:0xb1653c00,id:306,api:0,p:-1,c:293) setConsumerName: SurfaceView - com.segelson.spraycan/com.segelson.spraycan.MainActivity
10-01 11:23:36.936: I/BufferQueueProducer(293): [com.segelson.spraycan/com.segelson.spraycan.MainActivity](this:0xad6f5000,id:304,api:1,p:15823,c:293) connect(P): api=1 producer=(15823:com.segelson.spraycan) producerControlledByApp=true
10-01 11:23:36.969: I/BufferQueueProducer(293): [com.segelson.spraycan/com.segelson.spraycan.MainActivity](this:0xad6f5000,id:304,api:1,p:15823,c:293) new GraphicBuffer needed
10-01 11:23:36.978: I/BufferQueueProducer(293): [com.segelson.spraycan/com.segelson.spraycan.MainActivity](this:0xad6f5000,id:304,api:1,p:15823,c:293) new GraphicBuffer needed
10-01 11:23:36.990: D/GasService(1854): FG app changed: from com.motorola.launcher3 to com.segelson.spraycan
10-01 11:23:36.990: D/GasService(1854): caller: com.segelson.spraycan(15823)
10-01 11:23:37.024: I/LaunchCheckinHandler(988): Displayed com.segelson.spraycan/.MainActivity,cp,ca,362
10-01 11:23:37.025: I/ActivityManager(988): Displayed com.segelson.spraycan/.MainActivity: +363ms
10-01 11:23:37.025: I/BufferQueueProducer(293): [com.segelson.spraycan/com.segelson.spraycan.MainActivity](this:0xad6f5000,id:304,api:1,p:15823,c:293) new GraphicBuffer needed
10-01 11:23:37.036: I/BufferQueueProducer(293): [SurfaceView - com.segelson.spraycan/com.segelson.spraycan.MainActivity](this:0xae84c000,id:305,api:1,p:15823,c:293) connect(P): api=1 producer=(15823:com.segelson.spraycan) producerControlledByApp=true
10-01 11:23:37.053: I/BufferQueueProducer(293): [SurfaceView - com.segelson.spraycan/com.segelson.spraycan.MainActivity](this:0xae84c000,id:305,api:1,p:15823,c:293) new GraphicBuffer needed
10-01 11:23:38.548: I/Finsky(10532): [882] com.google.android.finsky.billing.iab.w.b(44): com.segelson.spraycan: Account from first account - [py5nlrhCcoh5h5df0PQvy4L3rhM]
10-01 11:23:38.556: I/Finsky(10532): [881] com.google.android.finsky.billing.iab.w.b(44): com.segelson.spraycan: Account from first account - [py5nlrhCcoh5h5df0PQvy4L3rhM]
10-01 11:23:38.706: I/BufferQueueProducer(293): [SurfaceView - com.segelson.spraycan/com.segelson.spraycan.MainActivity](this:0xae84c000,id:305,api:1,p:15823,c:293) new GraphicBuffer needed
10-01 11:23:38.750: I/BufferQueueProducer(293): [SurfaceView - com.segelson.spraycan/com.segelson.spraycan.MainActivity](this:0xae84c000,id:305,api:1,p:15823,c:293) queueBuffer: fps=0.60 dur=1673.59 max=1673.59 min=1673.59
10-01 11:23:38.751: I/BufferQueueProducer(293): [SurfaceView - com.segelson.spraycan/com.segelson.spraycan.MainActivity](this:0xae84c000,id:305,api:1,p:15823,c:293) new GraphicBuffer needed
10-01 11:23:39.761: I/BufferQueueProducer(293): [SurfaceView - com.segelson.spraycan/com.segelson.spraycan.MainActivity](this:0xae84c000,id:305,api:1,p:15823,c:293) queueBuffer: fps=52.40 dur=1011.46 max=30.47 min=15.91
10-01 11:23:40.783: I/BufferQueueProducer(293): [SurfaceView - com.segelson.spraycan/com.segelson.spraycan.MainActivity](this:0xae84c000,id:305,api:1,p:15823,c:293) queueBuffer: fps=39.14 dur=1022.04 max=27.65 min=23.65
10-01 11:23:41.812: I/BufferQueueProducer(293): [SurfaceView - com.segelson.spraycan/com.segelson.spraycan.MainActivity](this:0xae84c000,id:305,api:1,p:15823,c:293) queueBuffer: fps=38.90 dur=1028.29 max=29.27 min=23.98
10-01 11:23:42.836: I/BufferQueueProducer(293): [SurfaceView - com.segelson.spraycan/com.segelson.spraycan.MainActivity](this:0xae84c000,id:305,api:1,p:15823,c:293) queueBuffer: fps=34.15 dur=1024.83 max=30.63 min=27.89
10-01 11:23:43.843: I/BufferQueueProducer(293): [SurfaceView - com.segelson.spraycan/com.segelson.spraycan.MainActivity](this:0xae84c000,id:305,api:1,p:15823,c:293) queueBuffer: fps=33.78 dur=1006.60 max=33.37 min=28.54
10-01 11:23:44.863: I/BufferQueueProducer(293): [SurfaceView - com.segelson.spraycan/com.segelson.spraycan.MainActivity](this:0xae84c000,id:305,api:1,p:15823,c:293) queueBuffer: fps=30.39 dur=1020.21 max=34.73 min=31.81
10-01 11:23:44.958: D/SFPerfTracer(293):        layers: (1:10) (StatusBar (0xae84fc00): 1:20799)* (com.android.systemui.ImageWallpaper (0xae739000): 0:8052)* (DimLayerController/Stack=0 (0xad6f8c00): 0:482)* (NavigationBar (0xaa7d3000): 0:410)* (com.motorola.launcher3/com.android.launcher3.GoogleNowPanel (0xad50c000): 0:76)- (com.motorola.launcher3/com.android.launcher3.GoogleNowPanel (0xad6f6400): 0:389)- (FastStarting (0xaa7d5800): 0:33)- (com.segelson.spraycan/com.segelson.spraycan.MainActivity (0xad50d400): 0:24)* (SurfaceView - com.segelson.spraycan/com.segelson.spraycan.MainActivity (0xae84d400): 0:21)* (SurfaceView - com.segelson.spraycan/com.segelson.spraycan.MainActivity (0xae73b800): 235:256)
10-01 11:23:45.588: D/SFPerfTracer(293):        layers: (1:7) (StatusBar (0xae84fc00): 0:20799)* (com.android.systemui.ImageWallpaper (0xae739000): 0:8052)* (DimLayerController/Stack=0 (0xad6f8c00): 0:482)* (NavigationBar (0xaa7d3000): 0:410)* (com.segelson.spraycan/com.segelson.spraycan.MainActivity (0xad50d400): 0:24)* (SurfaceView - com.segelson.spraycan/com.segelson.spraycan.MainActivity (0xae84d400): 0:21)* (SurfaceView - com.segelson.spraycan/com.segelson.spraycan.MainActivity (0xae73b800): 13:269)
10-01 11:23:45.903: I/BufferQueueProducer(293): [SurfaceView - com.segelson.spraycan/com.segelson.spraycan.MainActivity](this:0xae84c000,id:305,api:1,p:15823,c:293) queueBuffer: fps=20.19 dur=1040.32 max=151.23 min=32.95
10-01 11:23:46.975: I/BufferQueueProducer(293): [SurfaceView - com.segelson.spraycan/com.segelson.spraycan.MainActivity](this:0xae84c000,id:305,api:1,p:15823,c:293) queueBuffer: fps=17.73 dur=1071.35 max=71.43 min=53.99
10-01 11:23:48.026: I/BufferQueueProducer(293): [SurfaceView - com.segelson.spraycan/com.segelson.spraycan.MainActivity](this:0xae84c000,id:305,api:1,p:15823,c:293) queueBuffer: fps=18.07 dur=1051.63 max=56.07 min=54.70
10-01 11:23:49.043: I/BufferQueueProducer(293): [SurfaceView - com.segelson.spraycan/com.segelson.spraycan.MainActivity](this:0xae84c000,id:305,api:1,p:15823,c:293) queueBuffer: fps=17.70 dur=1016.95 max=66.12 min=53.91
10-01 11:23:50.058: I/BufferQueueProducer(293): [SurfaceView - com.segelson.spraycan/com.segelson.spraycan.MainActivity](this:0xae84c000,id:305,api:1,p:15823,c:293) queueBuffer: fps=17.73 dur=1014.94 max=64.65 min=54.14
10-01 11:23:51.061: D/SFPerfTracer(293):        layers: (1:7) (StatusBar (0xae84fc00): 0:20802)* (com.android.systemui.ImageWallpaper (0xae739000): 0:8052)* (DimLayerController/Stack=0 (0xad6f8c00): 0:482)* (NavigationBar (0xaa7d3000): 0:410)* (com.segelson.spraycan/com.segelson.spraycan.MainActivity (0xad50d400): 0:24)* (SurfaceView - com.segelson.spraycan/com.segelson.spraycan.MainActivity (0xae84d400): 0:21)* (SurfaceView - com.segelson.spraycan/com.segelson.spraycan.MainActivity (0xae73b800): 3:367)
10-01 11:23:51.063: I/BufferQueueProducer(293): [SurfaceView - com.segelson.spraycan/com.segelson.spraycan.MainActivity](this:0xae84c000,id:305,api:1,p:15823,c:293) queueBuffer: fps=17.92 dur=1004.73 max=70.45 min=53.11
10-01 11:23:52.119: I/BufferQueueProducer(293): [SurfaceView - com.segelson.spraycan/com.segelson.spraycan.MainActivity](this:0xae84c000,id:305,api:1,p:15823,c:293) queueBuffer: fps=18.00 dur=1055.62 max=65.01 min=53.51
10-01 11:23:53.161: I/BufferQueueProducer(293): [SurfaceView - com.segelson.spraycan/com.segelson.spraycan.MainActivity](this:0xae84c000,id:305,api:1,p:15823,c:293) queueBuffer: fps=18.23 dur=1042.41 max=61.57 min=47.64
10-01 11:23:54.205: I/BufferQueueProducer(293): [SurfaceView - com.segelson.spraycan/com.segelson.spraycan.MainActivity](this:0xae84c000,id:305,api:1,p:15823,c:293) queueBuffer: fps=18.20 dur=1044.06 max=55.95 min=53.73
10-01 11:23:55.260: I/BufferQueueProducer(293): [SurfaceView - com.segelson.spraycan/com.segelson.spraycan.MainActivity](this:0xae84c000,id:305,api:1,p:15823,c:293) queueBuffer: fps=18.02 dur=1054.40 max=63.87 min=52.62
10-01 11:23:56.305: I/BufferQueueProducer(293): [SurfaceView - com.segelson.spraycan/com.segelson.spraycan.MainActivity](this:0xae84c000,id:305,api:1,p:15823,c:293) queueBuffer: fps=18.17 dur=1045.64 max=70.36 min=52.30
10-01 11:23:56.551: D/SFPerfTracer(293):        layers: (1:7) (StatusBar (0xae84fc00): 0:20803)* (com.android.systemui.ImageWallpaper (0xae739000): 0:8052)* (DimLayerController/Stack=0 (0xad6f8c00): 0:482)* (NavigationBar (0xaa7d3000): 0:410)* (com.segelson.spraycan/com.segelson.spraycan.MainActivity (0xad50d400): 0:24)* (SurfaceView - com.segelson.spraycan/com.segelson.spraycan.MainActivity (0xae84d400): 0:21)* (SurfaceView - com.segelson.spraycan/com.segelson.spraycan.MainActivity (0xae73b800): 4:467)
10-01 11:23:57.346: I/BufferQueueProducer(293): [SurfaceView - com.segelson.spraycan/com.segelson.spraycan.MainActivity](this:0xae84c000,id:305,api:1,p:15823,c:293) queueBuffer: fps=22.11 dur=1040.37 max=54.66 min=41.49
10-01 11:23:57.780: D/SFPerfTracer(293):        layers: (1:7) (StatusBar (0xae84fc00): 0:20803)* (com.android.systemui.ImageWallpaper (0xae739000): 0:8052)* (DimLayerController/Stack=0 (0xad6f8c00): 0:482)* (NavigationBar (0xaa7d3000): 0:410)* (com.segelson.spraycan/com.segelson.spraycan.MainActivity (0xad50d400): 0:24)* (SurfaceView - com.segelson.spraycan/com.segelson.spraycan.MainActivity (0xae84d400): 0:21)* (SurfaceView - com.segelson.spraycan/com.segelson.spraycan.MainActivity (0xae73b800): 17:495)
10-01 11:23:58.355: I/BufferQueueProducer(293): [SurfaceView - com.segelson.spraycan/com.segelson.spraycan.MainActivity](this:0xae84c000,id:305,api:1,p:15823,c:293) queueBuffer: fps=23.78 dur=1009.27 max=42.64 min=41.62
10-01 11:23:59.365: I/BufferQueueProducer(293): [SurfaceView - com.segelson.spraycan/com.segelson.spraycan.MainActivity](this:0xae84c000,id:305,api:1,p:15823,c:293) queueBuffer: fps=23.76 dur=1010.24 max=44.91 min=38.63
10-01 11:24:00.003: D/SFPerfTracer(293):        layers: (1:7) (StatusBar (0xae84fc00): 0:20803)* (com.android.systemui.ImageWallpaper (0xae739000): 0:8052)* (DimLayerController/Stack=0 (0xad6f8c00): 0:482)* (NavigationBar (0xaa7d3000): 0:410)* (com.segelson.spraycan/com.segelson.spraycan.MainActivity (0xad50d400): 0:24)* (SurfaceView - com.segelson.spraycan/com.segelson.spraycan.MainActivity (0xae84d400): 0:21)* (SurfaceView - com.segelson.spraycan/com.segelson.spraycan.MainActivity (0xae73b800): 52:547)
10-01 11:24:00.399: I/BufferQueueProducer(293): [SurfaceView - com.segelson.spraycan/com.segelson.spraycan.MainActivity](this:0xae84c000,id:305,api:1,p:15823,c:293) queueBuffer: fps=20.30 dur=1034.47 max=182.77 min=41.48
10-01 11:24:00.581: D/SFPerfTracer(293):        layers: (1:7) (StatusBar (0xae84fc00): 4:20808)* (com.android.systemui.ImageWallpaper (0xae739000): 0:8052)* (DimLayerController/Stack=0 (0xad6f8c00): 0:482)* (NavigationBar (0xaa7d3000): 0:410)* (com.segelson.spraycan/com.segelson.spraycan.MainActivity (0xad50d400): 0:24)* (SurfaceView - com.segelson.spraycan/com.segelson.spraycan.MainActivity (0xae84d400): 0:21)* (SurfaceView - com.segelson.spraycan/com.segelson.spraycan.MainActivity (0xae73b800): 11:558)
10-01 11:24:01.438: I/BufferQueueProducer(293): [SurfaceView - com.segelson.spraycan/com.segelson.spraycan.MainActivity](this:0xae84c000,id:305,api:1,p:15823,c:293) queueBuffer: fps=23.12 dur=1038.17 max=44.47 min=42.44
10-01 11:24:01.611: D/SFPerfTracer(293):        layers: (1:7) (StatusBar (0xae84fc00): 0:20808)* (com.android.systemui.ImageWallpaper (0xae739000): 0:8052)* (DimLayerController/Stack=0 (0xad6f8c00): 0:482)* (NavigationBar (0xaa7d3000): 0:410)* (com.segelson.spraycan/com.segelson.spraycan.MainActivity (0xad50d400): 0:24)* (SurfaceView - com.segelson.spraycan/com.segelson.spraycan.MainActivity (0xae84d400): 0:21)* (SurfaceView - com.segelson.spraycan/com.segelson.spraycan.MainActivity (0xae73b800): 24:582)
10-01 11:24:02.460: I/BufferQueueProducer(293): [SurfaceView - com.segelson.spraycan/com.segelson.spraycan.MainActivity](this:0xae84c000,id:305,api:1,p:15823,c:293) queueBuffer: fps=23.47 dur=1022.63 max=43.89 min=41.35
10-01 11:24:02.905: D/SFPerfTracer(293):        layers: (1:7) (StatusBar (0xae84fc00): 0:20808)* (com.android.systemui.ImageWallpaper (0xae739000): 0:8052)* (DimLayerController/Stack=0 (0xad6f8c00): 0:482)* (NavigationBar (0xaa7d3000): 0:410)* (com.segelson.spraycan/com.segelson.spraycan.MainActivity (0xad50d400): 0:24)* (SurfaceView - com.segelson.spraycan/com.segelson.spraycan.MainActivity (0xae84d400): 0:21)* (SurfaceView - com.segelson.spraycan/com.segelson.spraycan.MainActivity (0xae73b800): 13:612)
10-01 11:24:03.482: I/BufferQueueProducer(293): [SurfaceView - com.segelson.spraycan/com.segelson.spraycan.MainActivity](this:0xae84c000,id:305,api:1,p:15823,c:293) queueBuffer: fps=23.50 dur=1021.47 max=43.44 min=40.93
10-01 11:24:04.246: D/SFPerfTracer(293):        layers: (1:7) (StatusBar (0xae84fc00): 0:20808)* (com.android.systemui.ImageWallpaper (0xae739000): 0:8052)* (DimLayerController/Stack=0 (0xad6f8c00): 0:482)* (NavigationBar (0xaa7d3000): 0:410)* (com.segelson.spraycan/com.segelson.spraycan.MainActivity (0xad50d400): 0:24)* (SurfaceView - com.segelson.spraycan/com.segelson.spraycan.MainActivity (0xae84d400): 0:21)* (SurfaceView - com.segelson.spraycan/com.segelson.spraycan.MainActivity (0xae73b800): 11:644)
10-01 11:24:04.506: I/BufferQueueProducer(293): [SurfaceView - com.segelson.spraycan/com.segelson.spraycan.MainActivity](this:0xae84c000,id:305,api:1,p:15823,c:293) queueBuffer: fps=23.43 dur=1024.15 max=44.01 min=41.61
10-01 11:24:04.878: D/SFPerfTracer(293):        layers: (1:7) (StatusBar (0xae84fc00): 0:20808)* (com.android.systemui.ImageWallpaper (0xae739000): 0:8052)* (DimLayerController/Stack=0 (0xad6f8c00): 0:482)* (NavigationBar (0xaa7d3000): 0:410)* (com.segelson.spraycan/com.segelson.spraycan.MainActivity (0xad50d400): 0:24)* (SurfaceView - com.segelson.spraycan/com.segelson.spraycan.MainActivity (0xae84d400): 0:21)* (SurfaceView - com.segelson.spraycan/com.segelson.spraycan.MainActivity (0xae73b800): 11:659)
10-01 11:24:05.343: D/SFPerfTracer(293):        layers: (1:7) (StatusBar (0xae84fc00): 0:20808)* (com.android.systemui.ImageWallpaper (0xae739000): 0:8052)* (DimLayerController/Stack=0 (0xad6f8c00): 0:482)* (NavigationBar (0xaa7d3000): 0:410)* (com.segelson.spraycan/com.segelson.spraycan.MainActivity (0xad50d400): 0:24)* (SurfaceView - com.segelson.spraycan/com.segelson.spraycan.MainActivity (0xae84d400): 0:21)* (SurfaceView - com.segelson.spraycan/com.segelson.spraycan.MainActivity (0xae73b800): 11:670)
10-01 11:24:05.525: I/BufferQueueProducer(293): [SurfaceView - com.segelson.spraycan/com.segelson.spraycan.MainActivity](this:0xae84c000,id:305,api:1,p:15823,c:293) queueBuffer: fps=23.54 dur=1019.42 max=43.34 min=41.02
10-01 11:24:05.922: D/SFPerfTracer(293):        layers: (1:7) (StatusBar (0xae84fc00): 0:20808)* (com.android.systemui.ImageWallpaper (0xae739000): 0:8052)* (DimLayerController/Stack=0 (0xad6f8c00): 0:482)* (NavigationBar (0xaa7d3000): 0:410)* (com.segelson.spraycan/com.segelson.spraycan.MainActivity (0xad50d400): 0:24)* (SurfaceView - com.segelson.spraycan/com.segelson.spraycan.MainActivity (0xae84d400): 0:21)* (SurfaceView - com.segelson.spraycan/com.segelson.spraycan.MainActivity (0xae73b800): 13:683)
10-01 11:24:06.558: I/BufferQueueProducer(293): [SurfaceView - com.segelson.spraycan/com.segelson.spraycan.MainActivity](this:0xae84c000,id:305,api:1,p:15823,c:293) queueBuffer: fps=23.25 dur=1032.21 max=54.03 min=41.68
10-01 11:24:06.967: D/SFPerfTracer(293):        layers: (1:7) (StatusBar (0xae84fc00): 0:20808)* (com.android.systemui.ImageWallpaper (0xae739000): 0:8052)* (DimLayerController/Stack=0 (0xad6f8c00): 0:482)* (NavigationBar (0xaa7d3000): 0:410)* (com.segelson.spraycan/com.segelson.spraycan.MainActivity (0xad50d400): 0:24)* (SurfaceView - com.segelson.spraycan/com.segelson.spraycan.MainActivity (0xae84d400): 0:21)* (SurfaceView - com.segelson.spraycan/com.segelson.spraycan.MainActivity (0xae73b800): 12:708)
10-01 11:24:07.595: I/BufferQueueProducer(293): [SurfaceView - com.segelson.spraycan/com.segelson.spraycan.MainActivity](this:0xae84c000,id:305,api:1,p:15823,c:293) queueBuffer: fps=21.21 dur=1037.29 max=53.38 min=41.62
10-01 11:24:08.338: D/GasService(1854): caller: com.segelson.spraycan(15823)
10-01 11:24:08.385: I/BufferQueueProducer(293): [SurfaceView - com.segelson.spraycan/com.segelson.spraycan.MainActivity](this:0xae84c000,id:305,api:1,p:-1,c:293) disconnect(P): api 1
10-01 11:24:08.385: I/BufferQueueConsumer(293): [SurfaceView - com.segelson.spraycan/com.segelson.spraycan.MainActivity](this:0xae84c000,id:305,api:1,p:-1,c:293) getReleasedBuffers: returning mask 0xffffffffffffffff
10-01 11:24:08.398: I/BufferQueueProducer(293): [com.segelson.spraycan/com.segelson.spraycan.MainActivity](this:0xad6f5000,id:304,api:1,p:-1,c:293) disconnect(P): api 1
10-01 11:24:08.399: I/BufferQueueConsumer(293): [com.segelson.spraycan/com.segelson.spraycan.MainActivity](this:0xad6f5000,id:304,api:1,p:-1,c:293) getReleasedBuffers: returning mask 0xffffffffffffffff
10-01 11:24:08.617: D/GasService(1854): FG app changed: from com.segelson.spraycan to
10-01 11:24:08.648: I/WindowManager(988): WIN DEATH: Window{10c130f u0 com.segelson.spraycan/com.segelson.spraycan.MainActivity}
10-01 11:24:08.648: V/WindowManager(988): Remove Window{10c130f u0 com.segelson.spraycan/com.segelson.spraycan.MainActivity} client=390f06e, surfaceController=Surface(name=com.segelson.spraycan/com.segelson.spraycan.MainActivity) Callers=com.android.server.wm.WindowState$DeathRecipient.binderDied:1827 android.os.BinderProxy.sendDeathNotice:695 <bottom of call stack> <bottom of call stack>
10-01 11:24:08.649: W/WindowManager(988): Force-removing child win Window{7b768da u0 SurfaceView - com.segelson.spraycan/com.segelson.spraycan.MainActivity} from container Window{10c130f u0 com.segelson.spraycan/com.segelson.spraycan.MainActivity}
10-01 11:24:08.649: I/WindowManager(988): Destroying surface Surface(name=SurfaceView - com.segelson.spraycan/com.segelson.spraycan.MainActivity) called by com.android.server.wm.WindowStateAnimator.destroySurface:2201 com.android.server.wm.WindowStateAnimator.destroySurfaceLocked:960 com.android.server.wm.WindowState.removeLocked:1483 com.android.server.wm.WindowManagerService.removeWindowInnerLocked:2794 com.android.server.wm.WindowManagerService.removeWindowInnerLocked:2772 com.android.server.wm.WindowManagerService.removeWindowLocked:2742 com.android.server.wm.WindowState$DeathRecipient.binderDied:1827 android.os.BinderProxy.sendDeathNotice:695
10-01 11:24:08.650: I/ActivityManager(988): Process com.segelson.spraycan (pid 15823) has died
10-01 11:24:08.650: D/ActivityManager(988): handleAppDiedLocked: app = ProcessRecord{9395507 15823:com.segelson.spraycan/u0a193}, app.pid = 15823
10-01 11:24:08.655: I/WindowManager(988): Destroying surface Surface(name=com.segelson.spraycan/com.segelson.spraycan.MainActivity) called by com.android.server.wm.WindowStateAnimator.destroySurface:2201 com.android.server.wm.WindowStateAnimator.destroySurfaceLocked:960 com.android.server.wm.WindowState.removeLocked:1483 com.android.server.wm.WindowManagerService.removeWindowInnerLocked:2794 com.android.server.wm.WindowManagerService.removeWindowLocked:2742 com.android.server.wm.WindowState$DeathRecipient.binderDied:1827 android.os.BinderProxy.sendDeathNotice:695 <bottom of call stack>
10-01 11:24:08.657: I/BufferQueueConsumer(293): [SurfaceView - com.segelson.spraycan/com.segelson.spraycan.MainActivity](this:0xae84c000,id:305,api:1,p:-1,c:-1) disconnect(C)
10-01 11:24:08.657: I/BufferQueueConsumer(293): [SurfaceView - com.segelson.spraycan/com.segelson.spraycan.MainActivity](this:0xb1653c00,id:306,api:0,p:-1,c:-1) disconnect(C)
10-01 11:24:08.657: I/BufferQueueConsumer(293): [com.segelson.spraycan/com.segelson.spraycan.MainActivity](this:0xad6f5000,id:304,api:1,p:-1,c:-1) disconnect(C)
10-01 11:24:08.658: I/BufferQueue(293): [SurfaceView - com.segelson.spraycan/com.segelson.spraycan.MainActivity](this:0xb1653c00,id:306,api:0,p:-1,c:-1) ~BufferQueueCore
10-01 11:24:08.658: I/BufferQueue(293): [com.segelson.spraycan/com.segelson.spraycan.MainActivity](this:0xad6f5000,id:304,api:1,p:-1,c:-1) ~BufferQueueCore
10-01 11:24:08.659: V/WindowManager(988): Changing focus from Window{10c130f u0 com.segelson.spraycan/com.segelson.spraycan.MainActivity} to null Callers=com.android.server.wm.WindowManagerService.removeWindowLocked:2748 com.android.server.wm.WindowState$DeathRecipient.binderDied:1827 android.os.BinderProxy.sendDeathNotice:695 <bottom of call stack>
10-01 11:24:08.663: D/SurfaceFlinger(293):     remove: SurfaceView - com.segelson.spraycan/com.segelson.spraycan.MainActivity
10-01 11:24:08.664: W/ActivityManager(988): Force removing ActivityRecord{c254d35 u0 com.segelson.spraycan/.MainActivity t472}: app died, no saved state
10-01 11:24:08.665: V/WindowManager(988): Removing focused app token:AppWindowToken{4f7aa58 token=Token{56635ca ActivityRecord{c254d35 u0 com.segelson.spraycan/.MainActivity t472}}}
10-01 11:24:08.680: I/BufferQueue(293): [SurfaceView - com.segelson.spraycan/com.segelson.spraycan.MainActivity](this:0xae84c000,id:305,api:1,p:-1,c:-1) ~BufferQueueCore
10-01 11:24:13.368: D/SFPerfTracer(293):        layers: (4:10) (StatusBar (0xae84fc00): 4:20855) (com.android.systemui.ImageWallpaper (0xae739000): 4:8097) (DimLayerController/Stack=0 (0xad6f8c00): 0:482)* (NavigationBar (0xaa7d3000): 15:470) (com.segelson.spraycan/com.segelson.spraycan.MainActivity (0xad50d400): 0:24)- (SurfaceView - com.segelson.spraycan/com.segelson.spraycan.MainActivity (0xae84d400): 0:21)- (SurfaceView - com.segelson.spraycan/com.segelson.spraycan.MainActivity (0xae73b800): 0:735)- (com.motorola.launcher3/com.android.launcher3.GoogleNowPanel (0xae73b800): 0:35)- (com.motorola.launcher3/com.android.launcher3.GoogleNowPanel (0xad50d400): 0:52)- (com.android.systemui/com.android.systemui.recents.RecentsActivity (0xaa7d5800): 28:40)


Justin

  • Master Stencyler
  • *
October 01, 2017, 02:39:04 am
Not quite what I was looking for, but I guess it's my fault for not posting a sample.

This is the output I get from a windows built, but you should be able to find it in the android output too if you look at the logging for the right process.

Code: [Select]
Universal.hx:80: initScreen
Universal.hx:131: Game Width: 1920
Universal.hx:132: Game Height: 1080
Universal.hx:133: Game Scale: 1
Universal.hx:134: Window Width: 1920
Universal.hx:135: Window Height: 1080
Universal.hx:136: Enabled Scales: [1x]
Universal.hx:137: Scale Mode: SCALE_TO_FIT_LETTERBOX
Universal.hx:270: Theoretical Scale: 1
Universal.hx:271: Asset Scale: 1x
Universal.hx:350: Logical Width: 1920
Universal.hx:351: Logical Height: 1080
Universal.hx:352: Scale X: 1
Universal.hx:353: Scale Y: 1


svintaj

  • Subscriber - Stencyl Studio
  • *
October 01, 2017, 03:38:01 am
Ok hm, if you refering to the instant output log that Stencyl gives when testing an app on Android, then I'm still not able to do that because of this issue:  http://community.stencyl.com/index.php?issue=935.0

So my only option is to use "publish to Android", and then manually install the app to run it. (That means no connection to Stencyl)

And when I now look at the device with LogCat, I can't find/filter anything named with "Universal.hx" or "initScreen" in the output..?


Justin

  • Master Stencyler
  • *
October 13, 2017, 03:15:53 am
I'll provide another way for the game to send logs to Stencyl in an upcoming build. It should at least help us debug this.


svintaj

  • Subscriber - Stencyl Studio
  • *
October 13, 2017, 04:31:26 am
Ok great, let me know when it's ready.


Justin

  • Master Stencyler
  • *
October 21, 2017, 03:29:53 pm
The next beta might still be a few more days out. In the meantime, another user had a similar issue (on an iPad) and came into discord for help, and we were able to figure it out. If yours is the same issue, this should fix it.

Open Universal.hx ([Stencyl install]/plaf/haxe/lib/stencyl/1,00/Universal.hx)

Find the following two lines.

Code: [Select]
            logicalWidth += (windowWidth - scaledStageWidth * scaleX);
            logicalHeight += (windowHeight - scaledStageHeight * scaleY);

Replace them with this.

Code: [Select]
            logicalWidth += (windowWidth / scaleX - scaledStageWidth);
            logicalHeight += (windowHeight / scaleY - scaledStageHeight);
« Last Edit: October 21, 2017, 03:30:21 pm by Justin »


svintaj

  • Subscriber - Stencyl Studio
  • *
October 22, 2017, 06:11:34 am
Yes, that seem to fix it. Great, thanks! :)


Issue updated by Justin - October 30, 2017, 05:08:09 pm
  • Status changed from New to Resolved
  • Issue Assigned from (none) to Justin


daisy000

  • Junior Stencyler
November 02, 2017, 03:30:24 am
thanx


Pages: 1

Details

  • Reported
    September 30, 2017, 03:44:43 pm
  • Updated
    November 02, 2017, 03:30:24 am

  • View Status
    Public
  • Type
    Bug
  • Status
    Resolved
  • Priority
    Normal
  • Version
    Stencyl 3.5, 3.5.0 beta 1
  • Fixed in
    (none)
  • Assigned to
    Justin
  • Category
    Engine

Tags