Crash on Android device on start (SOLVED)

#1

apk crashes on android device on start:

10-08 15:17:07.544: D/Launcher.CellLayout(1681): touch item:ShortcutInfo, id=69, itemType=0, user=UserHandle{0}, mIconType=0, pkgName=com.low_entropy.words, className=com.dynamo.android.DefoldActivity, screenId=2, container=-100, cellX=0, cellY=4, spanX=1, spanY=1, isLandscapePos=false
10-08 15:17:07.607: I/ActivityTaskManager(1185): START u0 {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=com.low_entropy.words/com.dynamo.android.DefoldActivity bnds=[48,912][170,1034] (has extras)} from uid 10084
10-08 15:17:07.621: D/PowerHalWrapper(1185): <amsBoostResume> last:com.miui.home, next:com.low_entropy.words 
10-08 15:17:07.636: D/PowerHalWrapper(1185): amsBoostProcessCreate package:com.low_entropy.words 
10-08 15:17:07.655: I/BufferQueueConsumer(584): [Splash Screen com.low_entropy.words#0](this:0xefc12000,id:152,api:0,p:-1,c:584) setConsumerName: Splash Screen com.low_entropy.words#0
10-08 15:17:07.655: I/BufferQueueConsumer(584): [Splash Screen com.low_entropy.words#0](this:0xefc12000,id:152,api:0,p:-1,c:584) setDefaultBufferSize: width=1 height=1
10-08 15:17:07.655: D/Boost(1185): hostingType=activity, hostingName={com.low_entropy.words/com.dynamo.android.DefoldActivity}, callerPackage=com.miui.home, isSystem=true, isBoostNeeded=false.
10-08 15:17:07.656: D/OemNetd(519): setPidForPackage: packageName=com.low_entropy.words, pid=25020, pid=10225
10-08 15:17:07.657: I/ActivityManager(1185): Start proc 25020:com.low_entropy.words/u0a225 for activity {com.low_entropy.words/com.dynamo.android.DefoldActivity} caller=com.miui.home
10-08 15:17:07.660: I/BufferQueueConsumer(584): [Splash Screen com.low_entropy.words#0](this:0xefc12000,id:152,api:0,p:-1,c:584) setDefaultBufferSize: width=720 height=1600
10-08 15:17:07.667: I/BufferQueueProducer(584): [Splash Screen com.low_entropy.words#0](this:0xefc12000,id:152,api:2,p:1185,c:584) connect(P): api=2 producer=(1185:system_server) producerControlledByApp=false
10-08 15:17:07.735: D/PowerHalWrapper(1185): amsBoostNotify pid:25020,activity:com.dynamo.android.DefoldActivity, package:com.low_entropy.words, mProcessCreatePackcom.low_entropy.words 
10-08 15:17:07.737: I/libPowerHal(544): [perfNotifyAppState] foreground:com.low_entropy.words, pid:25020, uid:10225
10-08 15:17:07.738: I/UxUtility(544): notifyForegroundApp pack:com.low_entropy.words, uid:10225
10-08 15:17:07.738: I/powerd(544): [powerd_req] POWER_MSG_NOTIFY_STATE, pc:1, com.miui.home => com.low_entropy.words
10-08 15:17:08.029: D/libMEOW(25020): applied 0 plugin for [com.low_entropy.words].
10-08 15:17:08.060: D/View(25020): com.low_entropy.words initForcedUseForceDark: 1
10-08 15:17:08.160: D/libMEOW(25020): applied 0 plugin for [com.low_entropy.words].
10-08 15:17:08.172: I/WindowManager(1185): Relayout Window{477f525 u0 com.low_entropy.words/com.dynamo.android.DefoldActivity}: oldVis=4 newVis=0 focusMayChange = true
10-08 15:17:08.173: I/BufferQueueConsumer(584): [com.low_entropy.words/com.dynamo.android.DefoldActivity#0](this:0xeddb5000,id:153,api:0,p:-1,c:584) setConsumerName: com.low_entropy.words/com.dynamo.android.DefoldActivity#0
10-08 15:17:08.173: I/BufferQueueConsumer(584): [com.low_entropy.words/com.dynamo.android.DefoldActivity#0](this:0xeddb5000,id:153,api:0,p:-1,c:584) setDefaultBufferSize: width=1 height=1
10-08 15:17:08.177: I/BufferQueueConsumer(584): [com.low_entropy.words/com.dynamo.android.DefoldActivity#0](this:0xeddb5000,id:153,api:0,p:-1,c:584) setDefaultBufferSize: width=720 height=1545
10-08 15:17:08.208: I/Timeline(1185): Timeline: Activity_windows_visible id: ActivityRecord{8506e42 u0 com.low_entropy.words/com.dynamo.android.DefoldActivity t30} time:7795539
10-08 15:17:08.211: I/BufferQueueProducer(584): [Splash Screen com.low_entropy.words#0](this:0xefc12000,id:152,api:2,p:1185,c:584) disconnect(P): api 2
10-08 15:17:08.212: I/ActivityTaskManager(1185): Displayed com.low_entropy.words/com.dynamo.android.DefoldActivity: +601ms
10-08 15:17:08.235: I/defold(25020): INFO:DLIB: Writing log to: /storage/emulated/0/Android/data/com.low_entropy.words/files/log.txt
10-08 15:17:08.236: D/libMEOW(25020): applied 0 plugin for [com.low_entropy.words].
10-08 15:17:08.258: I/BufferQueueProducer(584): [com.low_entropy.words/com.dynamo.android.DefoldActivity#0](this:0xeddb5000,id:153,api:1,p:25020,c:584) connect(P): api=1 producer=(25020:com.low_entropy.words) producerControlledByApp=false
10-08 15:17:08.266: D/libMEOW(25020): applied 0 plugin for [com.low_entropy.words].
10-08 15:17:08.457: I/Finsky(3304): [343] ftc.a(28): com.low_entropy.words: Account from first account - [cOh_5uyLE2nhI9eZgwHu4B5NUtruowWrI_-ei-rrrRI]
10-08 15:17:08.461: I/Finsky(3304): [343] ftc.a(28): com.low_entropy.words: Account from first account - [cOh_5uyLE2nhI9eZgwHu4B5NUtruowWrI_-ei-rrrRI]
10-08 15:17:08.464: I/Finsky(3304): [343] ftc.a(28): com.low_entropy.words: Account from first account - [cOh_5uyLE2nhI9eZgwHu4B5NUtruowWrI_-ei-rrrRI]
10-08 15:17:08.470: I/Finsky(3304): [343] ftc.a(28): com.low_entropy.words: Account from first account - [cOh_5uyLE2nhI9eZgwHu4B5NUtruowWrI_-ei-rrrRI]
10-08 15:17:08.558: I/BufferQueue(584): [Splash Screen com.low_entropy.words#0](this:0xefc12000,id:152,api:2,p:-1,c:-1) ~BufferQueueCore
10-08 15:17:08.633: W/InputDispatcher(1185): channel '477f525 com.low_entropy.words/com.dynamo.android.DefoldActivity (server)' ~ Consumer closed input channel or an error occurred.  events=0x9
10-08 15:17:08.634: E/InputDispatcher(1185): channel '477f525 com.low_entropy.words/com.dynamo.android.DefoldActivity (server)' ~ Channel is unrecoverably broken and will be disposed!
10-08 15:17:08.634: I/BufferQueueProducer(584): [com.low_entropy.words/com.dynamo.android.DefoldActivity#0](this:0xeddb5000,id:153,api:1,p:25020,c:584) disconnect(P): api 1
10-08 15:17:08.635: V/ActivityManager(1185): Death received in com.android.server.am.ActivityManagerService$AppDeathRecipient@3086243 for thread android.os.BinderProxy@b5470c0, mPid:25020,mApp:ProcessRecord{f9be238 25020:com.low_entropy.words/u0a225}
10-08 15:17:08.636: I/ActivityManager(1185): Process com.low_entropy.words (pid 25020) has died: fore TOP 
10-08 15:17:08.636: I/WindowManager(1185): WIN DEATH: Window{477f525 u0 com.low_entropy.words/com.dynamo.android.DefoldActivity}
10-08 15:17:08.636: W/InputDispatcher(1185): Attempted to unregister already unregistered input channel '477f525 com.low_entropy.words/com.dynamo.android.DefoldActivity (server)'
10-08 15:17:08.639: I/BufferQueue(584): [com.low_entropy.words/com.dynamo.android.DefoldActivity#0](this:0xeddb5000,id:153,api:1,p:-1,c:-1) ~BufferQueueCore
10-08 15:17:08.643: D/ProcessManager(1185): skip restart com.low_entropy.words because this device is a lowmemory device!
10-08 15:17:08.645: W/ActivityTaskManager(1185): Force removing ActivityRecord{8506e42 u0 com.low_entropy.words/com.dynamo.android.DefoldActivity t30}: app died, no saved state
10-08 15:17:08.646: I/libPowerHal(544): [perfNotifyAppState] pack:com.low_entropy.words, pid:25020, STATE_DEAD
10-08 15:17:08.658: D/PowerHalWrapper(1185): amsBoostNotify pid:1681,activity:com.miui.home.launcher.Launcher, package:com.miui.home, mProcessCreatePackcom.low_entropy.words 
10-08 15:17:08.659: I/powerd(544): [powerd_req] POWER_MSG_NOTIFY_STATE, pc:0, com.low_entropy.words => com.miui.home
0 Likes

#2

Thanks!

Do you have any more information?
E.g. what Defold version is it?
Is it reproducible?
Does it contain any native extensions? Which ones?
Can you make a small repro case?

Also, what does the log file contain?
("/storage/emulated/0/Android/data/com.low_entropy.words/files/log.txt")

0 Likes

#3

Sorry, found a bug in the application. Recursive dependencies. Didn’t expect it would build the apk in this case.

2 Likes