Crashing on Android on start


#1

Not sure why yet. This project is somewhat large at this point. It was working a few days ago on last test.

06-24 00:50:46.371 D/BackupManagerService(765): Received broadcast Intent { act=android.intent.action.PACKAGE_ADDED dat=package:com.example.todo flg=0x4000010 (has extras) }
06-24 00:59:40.489 I/ActivityManager(765): START u0 {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=com.example.todo/com.dynamo.android.DefoldActivity} from pid 1594
06-24 00:59:40.509 D/ActivityManager(765): resumeTopActivityLocked: Restarting ActivityRecord{42917010 u0 com.example.todo/com.dynamo.android.DefoldActivity t119}
06-24 00:59:40.539 I/ActivityManager(765): Start proc com.example.todo for activity com.example.todo/com.dynamo.android.DefoldActivity: pid=5063 uid=10216 gids={50216, 3003, 1028, 1015, 1023}
06-24 00:59:40.709 V/ActivityManager(765): Moving to RESUMED: ActivityRecord{42917010 u0 com.example.todo/com.dynamo.android.DefoldActivity t119} (starting new instance)
06-24 00:59:40.939 D/ActivityManager(765): resumeTopActivityLocked: Top activity resumed ActivityRecord{42917010 u0 com.example.todo/com.dynamo.android.DefoldActivity t119}
06-24 00:59:42.039 D/ActivityManager(765): resumeTopActivityLocked: Top activity resumed ActivityRecord{42917010 u0 com.example.todo/com.dynamo.android.DefoldActivity t119}
06-24 00:59:42.159 V/ActivityManager(765): Finishing activity token=Token{42bea510 ActivityRecord{42917010 u0 com.example.todo/com.dynamo.android.DefoldActivity t119}} r=, result=0, data=null, reason=app-request
06-24 00:59:42.159 V/ActivityManager(765): Moving to PAUSING: ActivityRecord{42917010 u0 com.example.todo/com.dynamo.android.DefoldActivity t119 f}
06-24 00:59:42.179 I/ActivityManager(765): Process com.example.todo (pid 5063) has died.
06-24 00:59:42.179 I/WindowState(765): WIN DEATH: Window{42932510 u0 com.example.todo/com.dynamo.android.DefoldActivity}
06-24 00:59:42.189 V/ActivityManager(765): Moving to DESTROYED: ActivityRecord{42917010 u0 com.example.todo/com.dynamo.android.DefoldActivity t119 f} (removed from history)
06-24 00:59:42.189 V/ActivityManager(765): Moving to DESTROYED: ActivityRecord{42917010 u0 com.example.todo/com.dynamo.android.DefoldActivity t119 f} (cleaning up)
06-24 00:59:43.959 I/ActivityManager(765): START u0 {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=com.example.todo/com.dynamo.android.DefoldActivity} from pid 1594
06-24 00:59:43.969 D/ActivityManager(765): resumeTopActivityLocked: Restarting ActivityRecord{42f71eb0 u0 com.example.todo/com.dynamo.android.DefoldActivity t120}
06-24 00:59:43.999 I/ActivityManager(765): Start proc com.example.todo for activity com.example.todo/com.dynamo.android.DefoldActivity: pid=5107 uid=10216 gids={50216, 3003, 1028, 1015, 1023}
06-24 00:59:44.189 W/WindowManager(765): This window was lost: Window{42932510 u0 com.example.todo/com.dynamo.android.DefoldActivity EXITING}
06-24 00:59:44.189 W/WindowManager(765): mOwnerUid=10216 mShowToOwnerOnly=true package=com.example.todo appop=NONE
06-24 00:59:44.189 W/WindowManager(765): mToken=AppWindowToken{42dfef90 token=Token{42bea510 ActivityRecord{42917010 u0 com.example.todo/com.dynamo.android.DefoldActivity t119}}}
06-24 00:59:44.189 W/WindowManager(765): mRootToken=AppWindowToken{42dfef90 token=Token{42bea510 ActivityRecord{42917010 u0 com.example.todo/com.dynamo.android.DefoldActivity t119}}}
06-24 00:59:44.189 W/WindowManager(765): mAppToken=AppWindowToken{42dfef90 token=Token{42bea510 ActivityRecord{42917010 u0 com.example.todo/com.dynamo.android.DefoldActivity t119}}}
06-24 00:59:44.189 W/WindowManager(765): WindowStateAnimator{42ee6658 com.example.todo/com.dynamo.android.DefoldActivity}:
06-24 00:59:44.189 W/WindowManager(765):   mSurface=Surface(name=com.example.todo/com.dynamo.android.DefoldActivity)
06-24 00:59:44.199 V/WindowManager(765):   #7: Token{42848668 ActivityRecord{42f71eb0 u0 com.example.todo/com.dynamo.android.DefoldActivity t120}}
06-24 00:59:44.199 V/WindowManager(765):   #7: Window{429bf778 u0 Starting com.example.todo}
06-24 00:59:44.209 V/ActivityManager(765): Moving to RESUMED: ActivityRecord{42f71eb0 u0 com.example.todo/com.dynamo.android.DefoldActivity t120} (starting new instance)
06-24 00:59:45.199 V/ActivityManager(765): Finishing activity token=Token{42848668 ActivityRecord{42f71eb0 u0 com.example.todo/com.dynamo.android.DefoldActivity t120}} r=, result=0, data=null, reason=app-request
06-24 00:59:45.209 V/ActivityManager(765): Moving to PAUSING: ActivityRecord{42f71eb0 u0 com.example.todo/com.dynamo.android.DefoldActivity t120 f}
06-24 00:59:45.239 I/ActivityManager(765): Process com.example.todo (pid 5107) has died.
06-24 00:59:45.239 I/WindowState(765): WIN DEATH: Window{429d71c0 u0 com.example.todo/com.dynamo.android.DefoldActivity}
06-24 00:59:45.249 V/ActivityManager(765): Moving to DESTROYED: ActivityRecord{42f71eb0 u0 com.example.todo/com.dynamo.android.DefoldActivity t120 f} (removed from history)
06-24 00:59:45.249 V/ActivityManager(765): Moving to DESTROYED: ActivityRecord{42f71eb0 u0 com.example.todo/com.dynamo.android.DefoldActivity t120 f} (cleaning up)
06-24 01:00:32.259 I/ActivityManager(1594): Timeline: Activity_launch_request id:com.example.todo time:101650256
06-24 01:00:32.259 I/ActivityManager(765): START u0 {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=com.example.todo/com.dynamo.android.DefoldActivity} from pid 1594
06-24 01:00:32.279 D/ActivityManager(765): resumeTopActivityLocked: Restarting ActivityRecord{426cbbe0 u0 com.example.todo/com.dynamo.android.DefoldActivity t122}
06-24 01:00:32.309 I/ActivityManager(765): Start proc com.example.todo for activity com.example.todo/com.dynamo.android.DefoldActivity: pid=5386 uid=10216 gids={50216, 3003, 1028, 1015, 1023}
06-24 01:00:32.469 I/SystemUI(765): visibility=0x0, pkg=com.example.todo
06-24 01:00:32.499 V/ActivityManager(765): Moving to RESUMED: ActivityRecord{426cbbe0 u0 com.example.todo/com.dynamo.android.DefoldActivity t122} (starting new instance)
06-24 01:00:32.549 I/MultiDex(5386): MultiDexExtractor.load(/data/app/com.example.todo-1.apk, false)
06-24 01:00:32.599 D/dalvikvm(5386): Trying to load lib /data/app-lib/com.example.todo-1/libDefoldGameProject.so 0x41db3b18
06-24 01:00:32.599 D/dalvikvm(5386): Added shared lib /data/app-lib/com.example.todo-1/libDefoldGameProject.so 0x41db3b18
06-24 01:00:32.599 D/dalvikvm(5386): No JNI_OnLoad found in /data/app-lib/com.example.todo-1/libDefoldGameProject.so 0x41db3b18, skipping init
06-24 01:00:32.689 I/ActivityManager(765): Displayed com.example.todo/com.dynamo.android.DefoldActivity: +412ms
06-24 01:00:32.699 I/ActivityManager(765): Timeline: Activity_windows_visible id: ActivityRecord{426cbbe0 u0 com.example.todo/com.dynamo.android.DefoldActivity t122} time:101650690
06-24 01:00:33.319 V/ActivityManager(765): Finishing activity token=Token{424da950 ActivityRecord{426cbbe0 u0 com.example.todo/com.dynamo.android.DefoldActivity t122}} r=, result=0, data=null, reason=app-request
06-24 01:00:33.319 V/ActivityManager(765): Moving to PAUSING: ActivityRecord{426cbbe0 u0 com.example.todo/com.dynamo.android.DefoldActivity t122 f}
06-24 01:00:33.359 W/InputDispatcher(765): channel '42beb8d0 com.example.todo/com.dynamo.android.DefoldActivity (server)' ~ Consumer closed input channel or an error occurred.  events=0x9
06-24 01:00:33.359 E/InputDispatcher(765): channel '42beb8d0 com.example.todo/com.dynamo.android.DefoldActivity (server)' ~ Channel is unrecoverably broken and will be disposed!
06-24 01:00:33.499 W/InputDispatcher(765): Attempted to unregister already unregistered input channel '42beb8d0 com.example.todo/com.dynamo.android.DefoldActivity (server)'
06-24 01:00:33.499 I/WindowState(765): WIN DEATH: Window{42beb8d0 u0 com.example.todo/com.dynamo.android.DefoldActivity}
06-24 01:00:33.599 I/ActivityManager(765): Process com.example.todo (pid 5386) has died.
06-24 01:00:33.599 V/ActivityManager(765): Moving to DESTROYED: ActivityRecord{426cbbe0 u0 com.example.todo/com.dynamo.android.DefoldActivity t122 f} (removed from history)
06-24 01:00:33.599 V/ActivityManager(765): Moving to DESTROYED: ActivityRecord{426cbbe0 u0 com.example.todo/com.dynamo.android.DefoldActivity t122 f} (cleaning up)
06-24 01:00:40.949 I/ActivityManager(1594): Timeline: Activity_launch_request id:com.example.todo time:101658948
06-24 01:00:40.949 I/ActivityManager(765): START u0 {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=com.example.todo/com.dynamo.android.DefoldActivity} from pid 1594
06-24 01:00:40.999 D/ActivityManager(765): resumeTopActivityLocked: Restarting ActivityRecord{42a53f90 u0 com.example.todo/com.dynamo.android.DefoldActivity t123}
06-24 01:00:41.019 I/ActivityManager(765): Start proc com.example.todo for activity com.example.todo/com.dynamo.android.DefoldActivity: pid=5471 uid=10216 gids={50216, 3003, 1028, 1015, 1023}
06-24 01:00:41.219 I/SystemUI(765): visibility=0x0, pkg=com.example.todo
06-24 01:00:41.219 V/ActivityManager(765): Moving to RESUMED: ActivityRecord{42a53f90 u0 com.example.todo/com.dynamo.android.DefoldActivity t123} (starting new instance)
06-24 01:00:41.309 I/MultiDex(5471): MultiDexExtractor.load(/data/app/com.example.todo-1.apk, false)
06-24 01:00:41.339 D/dalvikvm(5471): Trying to load lib /data/app-lib/com.example.todo-1/libDefoldGameProject.so 0x41db4ae8
06-24 01:00:41.339 D/dalvikvm(5471): Added shared lib /data/app-lib/com.example.todo-1/libDefoldGameProject.so 0x41db4ae8
06-24 01:00:41.339 D/dalvikvm(5471): No JNI_OnLoad found in /data/app-lib/com.example.todo-1/libDefoldGameProject.so 0x41db4ae8, skipping init
06-24 01:00:41.439 I/ActivityManager(765): Displayed com.example.todo/com.dynamo.android.DefoldActivity: +437ms
06-24 01:00:41.439 I/ActivityManager(765): Timeline: Activity_windows_visible id: ActivityRecord{42a53f90 u0 com.example.todo/com.dynamo.android.DefoldActivity t123} time:101659436
06-24 01:00:42.019 V/ActivityManager(765): Finishing activity token=Token{42adf218 ActivityRecord{42a53f90 u0 com.example.todo/com.dynamo.android.DefoldActivity t123}} r=, result=0, data=null, reason=app-request
06-24 01:00:42.019 V/ActivityManager(765): Moving to PAUSING: ActivityRecord{42a53f90 u0 com.example.todo/com.dynamo.android.DefoldActivity t123 f}
06-24 01:00:42.069 W/InputDispatcher(765): channel '42ce1100 com.example.todo/com.dynamo.android.DefoldActivity (server)' ~ Consumer closed input channel or an error occurred.  events=0x9
06-24 01:00:42.069 E/InputDispatcher(765): channel '42ce1100 com.example.todo/com.dynamo.android.DefoldActivity (server)' ~ Channel is unrecoverably broken and will be disposed!
06-24 01:00:42.199 W/InputDispatcher(765): Attempted to unregister already unregistered input channel '42ce1100 com.example.todo/com.dynamo.android.DefoldActivity (server)'
06-24 01:00:42.199 I/WindowState(765): WIN DEATH: Window{42ce1100 u0 com.example.todo/com.dynamo.android.DefoldActivity}
06-24 01:00:42.349 I/ActivityManager(765): Process com.example.todo (pid 5471) has died.
06-24 01:00:42.349 V/ActivityManager(765): Moving to DESTROYED: ActivityRecord{42a53f90 u0 com.example.todo/com.dynamo.android.DefoldActivity t123 f} (removed from history)
06-24 01:00:42.349 V/ActivityManager(765): Moving to DESTROYED: ActivityRecord{42a53f90 u0 com.example.todo/com.dynamo.android.DefoldActivity t123 f} (cleaning up)

#2

Using latest debug build from here http://d.defold.com/stable/ works, bundled apk something is wrong. Not using a custom AndroidManifest.


#3

The bundled release (correction it was a debug) apk is working on an higher end Android device. Lower end device only works with debug build (to be clear it was debug engine downloaded from d.defold.com) still.


#4

More info…

We both were using engine 4f2478d053dd63a6fcaa794b994256e7b0b25038 builds on mine worked but not on his copy of editor.

I was doing release builds with a cert setup. He was doing debug builds without cert setup. He says maybe he was doing release builds at the start but then unchecked the box when testing bundled apks.

I tested making bundled version with debug and with cert+key removed. He tested debug with cert. Both crash on his test device. Cert had nothing to do with it. Only native extension being used is DefOS but all of its functionality should be pass through. Again it works on release but not debug on Android on this device.

Low end test device is LGE LG LS620 Android version 4.4.2

I also tested two blank projects one which included DefOS and the other which included QRCode and neither crashes on test device.

Any ideas?


#5

My first thought when seeing this, and you mentioning the project is large, I assume it’s a large java code base with native extensions?

You can read about MultiDex support here.


#6

The project is large mostly graphicly / script wise. Not native extension wise.

We found that one of the tutorials when built as debug also crashes on launch when bundled and ran on the lower end device. Will have more info soon if we can isolate the cause as empty projects don’t crash…


#7

Whoa! That definitely sounds bad. Awesome if you find a minimal case.


#8

Don’t have a minimal case. I think we solved it but I forgot to post. Was related to cert + debug mode? Unfortunately I don’t remember right now… may come up again in the future though.

It may have just been low end phone + debug mode enabled.