The last build of my game crashed on Android, for the first time in more than a years…
It is a “release” bundle. Has Defold created a crash file? May I find it on the device somewhere?
Thanks!
The last build of my game crashed on Android, for the first time in more than a years…
It is a “release” bundle. Has Defold created a crash file? May I find it on the device somewhere?
Thanks!
You could either look in the logcat to see if you find anything useful (messages and/or a callstack).
It should also have written a _crash
file, which you should be able to retrieve by using these instructions (modify the package names accordingly):
Thanks for the reply!
Is a release build debuggable? Anyway, have I to replace “com.defold.example” with “jackRedrum” given that the apk file is “jackRedrum.apk”?
$ adb shell “run-as com.defold.example sh -c ‘cat /data/data/com.defold.example/files/_crash’” > ./_crash
If I do so, I get “unknown package” from adb.
I apologize for the really basic questions…
Thanks!
This is the (example) package, and you’ll have something similar in your game.project, under the Android settings.
No, the release build isn’t debuggable by default.
Either bundle a debug build (easiest) or set the android.debuggable
in the game project settings.
Thanks! Indeed now adb says “package not debuggable”…
I am just curious… while the default setting for this is “com.example.todo”? Can I change this as I prefer?
Thanks again!
Yes, you can change that.
Thanks for your support!
I have another question, sorry! I built the game with debug and I get the following output via logcat. However the game is running fine.
05-19 17:59:35.538 18494 18522 W defold : WARNING:CRASH: Number of modules exceeds capacity
05-19 17:59:35.543 18494 18522 I defold : INFO:DLIB: Log server started on port 35225
05-19 17:59:35.581 18494 18522 I defold : INFO:ENGINE: Engine service started on port 8001
05-19 17:59:35.582 18494 18522 I defold : INFO:ENGINE: Defold Engine 1.2.168 (e22f6d2)
05-19 17:59:35.591 18494 18522 I defold : INFO:ENGINE: Loading data from: dmanif:game.dmanifest
05-19 17:59:35.722 18494 18522 I defold : INFO:ENGINE: Initialised sound device ‘default’
05-19 17:59:35.873 18494 18522 W defold : WARNING:ENGINE: Unknown Android input method [KeyEvent], defaulting to key events
05-19 17:59:35.908 18494 18522 I defold : INFO:DLIB: SSDP: Started on address 10.12.113.188
05-19 17:59:36.131 18494 18522 E defold : ERROR:PROFILER: Could not open /proc/stat
05-19 17:59:35.873 18494 18522 W defold : WARNING:ENGINE: Unknown Android input method [KeyEvent], defaulting to key events
Why these WARNINGs and the ERROR? May I safely ignore them?
Thanks!