# Crash on android

**URL:** <https://forum.defold.com/t/crash-on-android/65190>\
**Category:** Questions\
**Created:** [May 19, 2020, 3:04pm UTC](https://forum.defold.com/t/crash-on-android/65190 "2020-05-19T15:04:34Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![roccosaienz](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/roccosaienz/32/19991_2.png) [@roccosaienz](https://forum.defold.com/u/roccosaienz)\
**Post date:** [May 19, 2020, 3:04pm UTC](https://forum.defold.com/t/crash-on-android/65190/1 "2020-05-19T15:04:34Z")

</div>

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!

---

<div class="post-metadata">

**Author:** ![Mathias\_Westerdahl](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/mathias_westerdahl/32/228_2.png) [@Mathias\_Westerdahl](https://forum.defold.com/u/Mathias_Westerdahl)\
**Post date:** [May 19, 2020, 3:15pm UTC](https://forum.defold.com/t/crash-on-android/65190/2 "2020-05-19T15:15:13Z")

</div>

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):

> **[Getting the crash log from a device - Debugging native code in Defold](https://defold.com/manuals/debugging-native-code/#getting-the-crash-log-from-a-device)**
>
> Defold is well tested and should very rarely crash under normal circumstances. It is however impossible to guarantee that it will never crash, especially if your game uses native extensions. If you run into problems with crashes or native code that...

---

<div class="post-metadata">

**Author:** ![roccosaienz](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/roccosaienz/32/19991_2.png) [@roccosaienz](https://forum.defold.com/u/roccosaienz)\
**Post date:** [May 19, 2020, 3:22pm UTC](https://forum.defold.com/t/crash-on-android/65190/3 "2020-05-19T15:22:12Z")

</div>

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!

---

<div class="post-metadata">

**Author:** ![Mathias\_Westerdahl](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/mathias_westerdahl/32/228_2.png) [@Mathias\_Westerdahl](https://forum.defold.com/u/Mathias_Westerdahl)\
**Post date:** [May 19, 2020, 3:29pm UTC](https://forum.defold.com/t/crash-on-android/65190/4 "2020-05-19T15:29:04Z")

</div>

> [@roccosaienz](#):
>
> com.defold.example

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.

---

<div class="post-metadata">

**Author:** ![roccosaienz](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/roccosaienz/32/19991_2.png) [@roccosaienz](https://forum.defold.com/u/roccosaienz)\
**Post date:** [May 19, 2020, 3:32pm UTC](https://forum.defold.com/t/crash-on-android/65190/5 "2020-05-19T15:32:16Z")

</div>

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!

---

<div class="post-metadata">

**Author:** ![Mathias\_Westerdahl](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/mathias_westerdahl/32/228_2.png) [@Mathias\_Westerdahl](https://forum.defold.com/u/Mathias_Westerdahl)\
**Post date:** [May 19, 2020, 3:36pm UTC](https://forum.defold.com/t/crash-on-android/65190/6 "2020-05-19T15:36:12Z")

</div>

Yes, you can change that.

---

<div class="post-metadata">

**Author:** ![roccosaienz](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/roccosaienz/32/19991_2.png) [@roccosaienz](https://forum.defold.com/u/roccosaienz)\
**Post date:** [May 19, 2020, 3:39pm UTC](https://forum.defold.com/t/crash-on-android/65190/7 "2020-05-19T15:39:42Z")

</div>

Thanks for your support!

---

<div class="post-metadata">

**Author:** ![roccosaienz](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/roccosaienz/32/19991_2.png) [@roccosaienz](https://forum.defold.com/u/roccosaienz)\
**Post date:** [May 19, 2020, 4:09pm UTC](https://forum.defold.com/t/crash-on-android/65190/8 "2020-05-19T16:09:06Z")

</div>

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!
