SPrite Sheets cause my APK crash

Hello Guys,
It’s been a week I have been struggling in this issue. I have 4 sprite sheets with the maximum size 2048 x 2048. I made these sprite sheets in TexturePacker application. I’m using these sprite sheets in the animation. The issue is it starts animating but then suddenly crashes. However, it’s working perfectly fine in “Samsung Galaxy S3” without any crash. The following devices are crashing:

1 - Samsung Galaxy Tab 1 (10.1")
2 - Samsung star pro

Please let me know what wrong I’m doing?

Thanks

Perhaps those phones can only handle a max texture size of 1024x1024…
http://stackoverflow.com/questions/4527695/how-an-i-find-the-maximum-texture-size-for-different-phones

I don’t think so. Because when I make the sprite sheet of 4096 x 4096 dimension. In the image content area, it displays black rendering. So, for example: If I have an animated sprite sheet of a DOG, I don’t see anything in place of DOG but a BLACK area. Which means the device doesn’t support 4096 x 4096.

This is just my opinion and please correct me if I’m thinking wrong.

Is there any way I can see the supported texture size through programmatically? That would be awesome if that’s possible.

Thanks

The link I included earlier shows you how to detect it programmatically.

Oh - thank you!. I just checked and found that my device supports 2048 texture size.

What should I do to stop crashing?

Submit a bug report with any crash data you have.

This is the crash report.

06-04 11:37:46.140: E/InputDispatcher(302): channel ‘41db7960 com.binaryport.zombieconga/com.unity3d.player.UnityPlayerNativeActivity (server)’ ~ Consumer closed input channel or an error occurred. events=0x8
06-04 11:37:46.140: E/InputDispatcher(302): channel ‘41db7960 com.binaryport.zombieconga/com.unity3d.player.UnityPlayerNativeActivity (server)’ ~ Channel is unrecoverably broken and will be disposed!

There are a lot of lines but those are of type debug. The ones provided above are of type “Error”.

Thanks

Please can you submit a full bug report, with the project that crashes attached, and I’ll take a look.

Thank you!

Here is the complete report:


06-04 11:48:12.110: I/ActivityManager(302): Starting: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=com.binaryport.zombieconga/com.unity3d.player.UnityPlayerNativeActivity } from pid 377
06-04 11:48:12.170: I/SurfaceFlinger(238): id=509(50) createSurface 0x147fcc for pid 302 (1x1),2 flag=0, Starting com.binaryport.zombieconga
06-04 11:48:12.200: I/ActivityManager(302): Start proc com.binaryport.zombieconga for activity com.binaryport.zombieconga/com.unity3d.player.UnityPlayerNativeActivity: pid=20742 uid=10139 gids={}
06-04 11:48:12.730: D/dalvikvm(20742): Trying to load lib /data/data/com.binaryport.zombieconga/lib/libmain.so 0x407cd8a8
06-04 11:48:12.730: D/dalvikvm(20742): Added shared lib /data/data/com.binaryport.zombieconga/lib/libmain.so 0x407cd8a8
06-04 11:48:13.490: I/SurfaceFlinger(238): id=511(1) createSurface 0x1488fc for pid 20742 (1x1),1 flag=0, com.binaryport.zombieconga/com.unity3d.player.UnityPlayerNativeActivity
06-04 11:48:13.580: I/ActivityManager(302): Displayed com.binaryport.zombieconga/com.unity3d.player.UnityPlayerNativeActivity: +1s390ms
06-04 11:48:13.580: I/SurfaceFlinger(238): id=509 Removed Starting com.binaryport.zombieconga idx=4 Map Size=5
06-04 11:48:13.600: I/SurfaceFlinger(238): id=509 Removed Starting com.binaryport.zombieconga idx=-2 Map Size=5
06-04 11:48:13.600: D/WindowManager(302): Desired input method target: Window{42165468 com.binaryport.zombieconga/com.unity3d.player.UnityPlayerNativeActivity paused=false}
06-04 11:48:13.600: D/WindowManager(302): Current focus: Window{42165468 com.binaryport.zombieconga/com.unity3d.player.UnityPlayerNativeActivity paused=false}
06-04 11:48:13.600: D/WindowManager(302): Last focus: Window{42165468 com.binaryport.zombieconga/com.unity3d.player.UnityPlayerNativeActivity paused=false}
06-04 11:48:13.600: D/WindowManager(302): w.mAttrs.token=ActivityRecord{4192a980 com.binaryport.zombieconga/com.unity3d.player.UnityPlayerNativeActivity}
06-04 11:48:13.600: D/WindowManager(302): w.mToken=AppWindowToken{4201ec40 token=ActivityRecord{4192a980 com.binaryport.zombieconga/com.unity3d.player.UnityPlayerNativeActivity}}
06-04 11:48:13.600: D/WindowManager(302): token=AppWindowToken{4201ec40 token=ActivityRecord{4192a980 com.binaryport.zombieconga/com.unity3d.player.UnityPlayerNativeActivity}}
06-04 11:48:24.800: I/InputDispatcher(302): Delivering touch to current input target: action: 0, channel ‘42165468 com.binaryport.zombieconga/com.unity3d.player.UnityPlayerNativeActivity (server)’
06-04 11:48:24.810: E/NativeActivity(20742): channel ‘42165468 com.binaryport.zombieconga/com.unity3d.player.UnityPlayerNativeActivity (client)’ ~ Failed to receive dispatch signal. status=-11
06-04 11:48:24.880: I/InputDispatcher(302): Delivering touch to current input target: action: 1, channel ‘42165468 com.binaryport.zombieconga/com.unity3d.player.UnityPlayerNativeActivity (server)’
06-04 11:48:24.890: E/NativeActivity(20742): channel ‘42165468 com.binaryport.zombieconga/com.unity3d.player.UnityPlayerNativeActivity (client)’ ~ Failed to receive dispatch signal. status=-11
06-04 11:48:28.340: I/InputDispatcher(302): Delivering touch to current input target: action: 0, channel ‘42165468 com.binaryport.zombieconga/com.unity3d.player.UnityPlayerNativeActivity (server)’
06-04 11:48:28.340: E/NativeActivity(20742): channel ‘42165468 com.binaryport.zombieconga/com.unity3d.player.UnityPlayerNativeActivity (client)’ ~ Failed to receive dispatch signal. status=-11
06-04 11:48:28.440: I/InputDispatcher(302): Delivering touch to current input target: action: 1, channel ‘42165468 com.binaryport.zombieconga/com.unity3d.player.UnityPlayerNativeActivity (server)’
06-04 11:48:28.450: E/NativeActivity(20742): channel ‘42165468 com.binaryport.zombieconga/com.unity3d.player.UnityPlayerNativeActivity (client)’ ~ Failed to receive dispatch signal. status=-11
06-04 11:48:32.250: I/InputDispatcher(302): Delivering touch to current input target: action: 0, channel ‘42165468 com.binaryport.zombieconga/com.unity3d.player.UnityPlayerNativeActivity (server)’
06-04 11:48:32.280: E/NativeActivity(20742): channel ‘42165468 com.binaryport.zombieconga/com.unity3d.player.UnityPlayerNativeActivity (client)’ ~ Failed to receive dispatch signal. status=-11
06-04 11:48:32.390: I/InputDispatcher(302): Delivering touch to current input target: action: 1, channel ‘42165468 com.binaryport.zombieconga/com.unity3d.player.UnityPlayerNativeActivity (server)’
06-04 11:48:32.400: E/NativeActivity(20742): channel ‘42165468 com.binaryport.zombieconga/com.unity3d.player.UnityPlayerNativeActivity (client)’ ~ Failed to receive dispatch signal. status=-11
06-04 11:48:37.250: I/DEBUG(237): pid: 20742, tid: 20752 >>> com.binaryport.zombieconga <<<
06-04 11:48:37.590: I/DEBUG(237): #01 pc 00399454 /data/data/com.binaryport.zombieconga/lib/libunity.so
06-04 11:48:37.590: I/DEBUG(237): #02 pc 0018baac /data/data/com.binaryport.zombieconga/lib/libunity.so
06-04 11:48:37.590: I/DEBUG(237): #03 pc 0018bdb4 /data/data/com.binaryport.zombieconga/lib/libunity.so
06-04 11:48:37.590: I/DEBUG(237): #04 pc 001f3a04 /data/data/com.binaryport.zombieconga/lib/libunity.so
06-04 11:48:37.590: I/DEBUG(237): #05 pc 000dbf04 /data/data/com.binaryport.zombieconga/lib/libunity.so
06-04 11:48:37.610: I/DEBUG(237): 5c21ddf4 82396f30 /data/data/com.binaryport.zombieconga/lib/libunity.so
06-04 11:48:37.610: I/DEBUG(237): 5c21de10 829fcda0 /data/data/com.binaryport.zombieconga/lib/libunity.so
06-04 11:48:37.610: I/DEBUG(237): 5c21de3c 82399458 /data/data/com.binaryport.zombieconga/lib/libunity.so
06-04 11:48:37.610: I/DEBUG(237): #01 5c21de40 829fcdb8 /data/data/com.binaryport.zombieconga/lib/libunity.so
06-04 11:48:37.610: I/DEBUG(237): 5c21de8c 8218bab0 /data/data/com.binaryport.zombieconga/lib/libunity.so
06-04 11:48:47.600: I/WindowManager(302): WIN DEATH: Window{42165468 com.binaryport.zombieconga/com.unity3d.player.UnityPlayerNativeActivity paused=false}
06-04 11:48:47.620: E/InputDispatcher(302): channel ‘42165468 com.binaryport.zombieconga/com.unity3d.player.UnityPlayerNativeActivity (server)’ ~ Consumer closed input channel or an error occurred. events=0x8
06-04 11:48:47.620: E/InputDispatcher(302): channel ‘42165468 com.binaryport.zombieconga/com.unity3d.player.UnityPlayerNativeActivity (server)’ ~ Channel is unrecoverably broken and will be disposed!
06-04 11:48:47.620: I/ActivityManager(302): Process com.binaryport.zombieconga (pid 20742) has died.
06-04 11:48:47.700: W/WindowManager(302): Force-removing child win Window{426e5788 SurfaceView paused=false} from container Window{42165468 com.binaryport.zombieconga/com.unity3d.player.UnityPlayerNativeActivity paused=false}
06-04 11:48:47.710: I/SurfaceFlinger(238): id=511 Removed com.binaryport.zombieconga/com.unity3d.player.UnityPlayerNativeActivity idx=2 Map Size=2
06-04 11:48:47.720: I/SurfaceFlinger(238): id=511 Removed com.binaryport.zombieconga/com.unity3d.player.UnityPlayerNativeActivity idx=-2 Map Size=2
06-04 11:48:47.790: I/SurfaceFlinger(238): id=511 Removed com.binaryport.zombieconga/com.unity3d.player.UnityPlayerNativeActivity idx=-2 Map Size=2
06-04 11:48:47.920: I/WindowManager(302): WINDOW DIED Window{42165468 com.binaryport.zombieconga/com.unity3d.player.UnityPlayerNativeActivity paused=false}
06-04 11:48:47.920: D/WindowManager(302): Setting visibility of AppWindowToken{4201ec40 token=ActivityRecord{4192a980 com.binaryport.zombieconga/com.unity3d.player.UnityPlayerNativeActivity}}: false


Thanks

Please can you submit your Unity project so that I can reproduce the crash?
Refer to http://unity3d.com/BugReportingFAQ, feel free to ask questions if you still have them.

I’m really sorry but it’s not possible to share you the project because of it’s size and company policy. However, I can share you the debugging information whatever you would ask me like I did before.

Thanks

Can you try to make a smaller repro project - maybe adding a single sprite crashes on the mentioned devices as well?

Unfortunately without a submitted case with the repro project I will be unable to fix the issue, logcat is not enough.

Thank you!

All right. Please download the sample project from the following link:

https://www.dropbox.com/s/vmvmce6emwtuy8f/ZombieConga.zip

Please note that the crash is happening in the following devices:

1 - Samsung Galaxy Tab 1 (10.1")
2 - Samsung star pro

There could be more devices but I have only these devices in my hand.

Please let me know if you need anything more from my side.

Thanks

We have downloaded the project. You can remove the link to it or remove it from the dropbox.

Could you specify when exactly does the crash happen? Should we just build and run the project on specified devices and the crash will happen instantly, or do we need to interact with the application in any way before the crash happens?

Regards,
Julius

As soon as you will run the project, you will see a button “Next Letter”. Whenever user clicks on that button, we do “LoadLevelAdditiveAsync” to load the next letter into the current scene. This works fine until “C”. Please hit the button and you will see the crash after two to three clicks.

Thanks

I was able to reproduce the issue. I have created a bug report and assigned it to our developers. Public case description can be seen here: Unity Issue Tracker - 2048 x 2048 sprite sheet causes the crash

Is there any timeline you guys can give for this issue?

Thanks