Thanks. Here’s what I did:
- Open file in text editor
- Search for “DefoldActivity”
- The first line mentioning “DefoldActivity” was this:
01-06 18:19:26.081 501 3101 I ActivityTaskManager: START u0 {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10000000 pkg=com.companyname.app1 cmp=com.companyname.app1/com.dynamo.android.DefoldActivity} from uid 10122
This tells me that DefoldActivity is about to be launched. A few lines later I see:
01-06 18:19:26.126 501 530 I ActivityManager: Start proc 10702:com.companyname.app1/u0a168 for pre-top-activity {com.companyname.app1/com.dynamo.android.DefoldActivity}
This tells me the process id for your app: 10702
With the process id known I can easily follow the log until I find the last few log entries mentioning 10702:
01-06 18:20:28.501 10702 10702 V threaded_app: NativeWindowDestroyed: 0xb400006fd92f04f0 -- 0xb4000070992fa860
01-06 18:20:28.501 10702 10731 V threaded_app: APP_CMD_TERM_WINDOW
01-06 18:20:28.501 10702 10731 V glfw-android: handleCommand (looper thread): APP_CMD_TERM_WINDOW
01-06 18:20:28.501 10702 10731 V glfw-android: destroy_gl_surface
01-06 18:20:28.508 10702 10731 V glfw-android: iconified: YES (resume: no, focus: no, surface: no)
01-06 18:20:28.508 10702 10731 V threaded_app: APP_CMD_TERM_WINDOW
01-06 18:20:28.508 10702 10702 V threaded_app: Stop: 0xb400006fd92f04f0
01-06 18:20:28.508 10702 10731 V threaded_app: activityState=14
01-06 18:20:28.508 10702 10731 V glfw-android: handleCommand (looper thread): APP_CMD_STOP
01-06 18:20:28.509 10702 10702 V threaded_app: SaveInstanceState: 0xb400006fd92f04f0
01-06 18:20:28.549 10702 10731 V glfw-android: handleCommand (looper thread): APP_CMD_SAVE_STATE
01-06 18:20:28.549 10702 10731 V threaded_app: APP_CMD_SAVE_STATE
01-06 18:20:28.568 10702 10734 V glfw-android: handleCommand (main thread): APP_CMD_TERM_WINDOW
01-06 18:20:28.568 10702 10734 V glfw-android: handleCommand (main thread): APP_CMD_STOP
01-06 18:20:28.568 10702 10734 V glfw-android: handleCommand (main thread): APP_CMD_SAVE_STATE
This tells us that something shut down the app “APP_CMD_TERM_WINDOW”, “destroy_gl_surface” etc. The error is somewhere above this. It’s about 600 lines of logs from the first to the last line so it’s doable to look through it in search of clues.
There is however nothing really obvious standing out in between the app starting until it shuts down. Can you please share some more info about your project. Are you using any extensions?
Relevant log entries attached:
Terminal Saved Output 2.txt (66.6 KB)