Game crashes on user's devices (SOLVED)

1.2.140 better than 138, but still has a lot of crashes (
But I am not sure, because after 1.2.140 we paused our UA company

I would recommend going with 1.2.141 directly since it only contains a hot fix of a font crash issue introduced in 1.2.140.

2 Likes

I’ll try today later

1 Like

yeah, somehow in various chats folks sneakily complain about Defold .135 being the last stable. But it is so hard to inspire them go post something here, because “something crashes somewhere and we don’t know where and what”.

Defold users, we do need your bugreports and do value your opinions, even if you don’t know the root of the problem,

8 Likes

This night I’ve updated build at stores with 1.2.141 and got first reports.

java.lang.ClassNotFoundException
dalvik.system.BaseDexClassLoader.findClass

and description sorted by Android version:

|Android 6.0|3|42.9%|
|Android 4.4|3|42.9%|
|Android 5.1|1|14.3%|

Lenovo TB3-710I (TB3-710I), Android 5.1

java.lang.RuntimeException: 
  at android.app.ActivityThread.handleReceiver (ActivityThread.java:2804)
  at android.app.ActivityThread.access$1700 (ActivityThread.java:178)
  at android.app.ActivityThread$H.handleMessage (ActivityThread.java:1547)
  at android.os.Handler.dispatchMessage (Handler.java:111)
  at android.os.Looper.loop (Looper.java:194)
  at android.app.ActivityThread.main (ActivityThread.java:5637)
  at java.lang.reflect.Method.invoke (Native Method)
  at java.lang.reflect.Method.invoke (Method.java:372)
  at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run (ZygoteInit.java:960)
  at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:755)
Caused by: java.lang.ClassNotFoundException: 
  at dalvik.system.BaseDexClassLoader.findClass (BaseDexClassLoader.java:56)
  at java.lang.ClassLoader.loadClass (ClassLoader.java:511)
  at java.lang.ClassLoader.loadClass (ClassLoader.java:469)
  at android.app.ActivityThread.handleReceiver (ActivityThread.java:2799)
|Android 7.0|5|83.3%|
|Android 7.1|1|16.7%|

Huawei P8 lite 2017 (HWPRA-H), Android 7.0
Report 1

java.lang.RuntimeException: 
  at android.app.ActivityThread.handleReceiver (ActivityThread.java:3158)
  at android.app.ActivityThread.-wrap18 (ActivityThread.java)
  at android.app.ActivityThread$H.handleMessage (ActivityThread.java:1653)
  at android.os.Handler.dispatchMessage (Handler.java:105)
  at android.os.Looper.loop (Looper.java:156)
  at android.app.ActivityThread.main (ActivityThread.java:6523)
  at java.lang.reflect.Method.invoke (Native Method)
  at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run (ZygoteInit.java:942)
  at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:832)
Caused by: java.lang.ClassNotFoundException: 
  at dalvik.system.BaseDexClassLoader.findClass (BaseDexClassLoader.java:56)
  at java.lang.ClassLoader.loadClass (ClassLoader.java:380)
  at java.lang.ClassLoader.loadClass (ClassLoader.java:312)
  at android.app.ActivityThread.handleReceiver (ActivityThread.java:3153)
|Android 8.1|3|75.0%|
|Android 8.0|1|25.0%|

OnePlus OnePlus3T (OnePlus3T), Android 8.0
Report 1 of 4

java.lang.RuntimeException: 
  at android.app.ActivityThread.handleReceiver (ActivityThread.java:3390)
  at android.app.ActivityThread.-wrap17 (Unknown Source)
  at android.app.ActivityThread$H.handleMessage (ActivityThread.java:1772)
  at android.os.Handler.dispatchMessage (Handler.java:105)
  at android.os.Looper.loop (Looper.java:164)
  at android.app.ActivityThread.main (ActivityThread.java:6798)
  at java.lang.reflect.Method.invoke (Native Method)
  at com.android.internal.os.Zygote$MethodAndArgsCaller.run (Zygote.java:240)
  at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:767)
Caused by: java.lang.ClassNotFoundException: 
  at dalvik.system.BaseDexClassLoader.findClass (BaseDexClassLoader.java:93)
  at java.lang.ClassLoader.loadClass (ClassLoader.java:379)
  at java.lang.ClassLoader.loadClass (ClassLoader.java:312)
  at android.app.ActivityThread.handleReceiver (ActivityThread.java:3385)

Also in this build I enabled the crash reports for Google Analytic. Most of them is totally uninformed and looks like a

#0 0xe3014724 #1 0xe2ff3aac #2 0xe2ff3f4c #3 0xe2f701c4 #4 0xe2fdc4b4 #5 0xe2f72744 #6 0xe2f727e8 #7 0xe2f6ed60 #8 0xe2f6ecb4 #9 0xe30a79b4 #10 0xe2f6ecdc #11 0xe30a828c #12 0xf72f6feb #13 0xf72f501f

but someone is much more seem to be a dump:

0 dmengine 0x000000010f8149fa _ZN7dmCrash7OnCrashEi + 74 1 libsystem_platform.dylib 0x00007fff6ad39f5a _sigtramp + 26 2 libsystem_malloc.dylib 0x00007fff6ac61384 tiny_malloc_from_free_list + 431 3 dmengine 0x000000010f5c9d98 _ZN12dmGameObject16CreateComponentsEPNS_10CollectionEPNS_8InstanceE + 392 4 dmengine 0x000000010f5daa96 _ZN12dmGameObject19ResCollectionCreateERKN10dmResource20ResourceCreateParamsE + 1174 5 dmengine 0x000000010f5e2475 _ZN10dmResource3GetEPNS_16SResourceFactoryEPKcPPv + 2501 6 dmengine 0x000000010f5ee448 _ZN12dmGameSystem28CompCollectionProxyOnMessageERKN12dmGameObject24ComponentOnMessageParamsE + 600 7 dmengine 0x000000010f5cf50e _ZN12dmGameObject24DispatchMessagesFunctionEPN9dmMessage7MessageEPv + 2174 8 dmengine 0x000000010f777e64 _ZN9dmMessage16InternalDispatchEyPFvPNS_7MessageEPvES2_b + 436 9 dmengine 0x000000010f5cd7f1 _ZN12dmGameObject16DispatchMessagesEPNS_10CollectionEPyj + 257 10 dmengine 0x000000010f5cca7a _ZN12dmGameObject4InitEPNS_10CollectionE + 394 11 dmengine 0x000000010f5bd802 _ZN8dmEngine4InitEPNS_6EngineEiPPc + 6962 12 dmengine 0x000000010f5bf1b0 _ZN8dmEngineL7InitRunEPN15dmEngineService13EngineServiceEiPPcPFvPNS_6EngineEPvES9_S7_ + 128 13 dmengine 0x000000010f5bf06f _ZN8dmEngine6LaunchEiPPcPFvPNS_6EngineEPvES6_S4_ + 111 14 dmengine 0x000000010f5bf316 _Z11engine_mainiPPc + 118 15 dmengine 0x000000010f5bb404 start + 52 16 ??? 0x0000000000000001 0x0 + 1
0 LookYourLoot 0x001d5619 LookYourLoot + 1488409 1 libsystem_platform.dylib 0x1c8e326d _sigtramp + 24 2 LookYourLoot 0x0012c769 LookYourLoot + 796521 3 LookYourLoot 0x0012c769 LookYourLoot + 796521 4 LookYourLoot 0x0007354b LookYourLoot + 38219 5 LookYourLoot 0x000733c3 LookYourLoot + 37827 6 LookYourLoot 0x00073b2b LookYourLoot + 39723 7 GameCenterFoundation 0x2a83c3cb <redacted> + 84 8 libdispatch.dylib 0x1c731097 <redacted> + 10 9 libdispatch.dylib 0x1c731083 <redacted> + 22 10 libdispatch.dylib 0x1c7355fd _dispatch_main_queue_callback_4CF + 890 11 CoreFoundation 0x1d045a17 <redacted> + 8 12 CoreFoundation 0x1d043cff <redacted> + 1422 13 CoreFoundation 0x1cf93073 CFRunLoopRunSpecific + 486 14 CoreFoundation 0x1cf92e81 CFRunLoopRunInMode + 104 15 LookYourLoot 0x001c37a9 LookYourLoot + 1415081 16 LookYourLoot 0x000f67f3 LookYourLoot + 575475 17 LookYourLoot 0x00070ac9 LookYourLoot + 27337 18 LookYourLoot 0x000f63a3 LookYourLoot + 574371 19 LookYourLoot 0x00071107 LookYourLoot + 28935 20 LookYourLoot 0x00070ff1 LookYourLoot + 28657 21 LookYourLoot 0x000711e3 LookYourLoot + 29155 22 libdyld.dylib 0x1c75e50b <redacted> + 2
0 LookYourLoot 0x0021f619 LookYourLoot + 1488409 1 libsystem_platform.dylib 0x1d150259 _sigtramp + 24 2 LookYourLoot 0x001cf047 LookYourLoot + 1159239 3 LookYourLoot 0x000e85b7 LookYourLoot + 214455 4 LookYourLoot 0x000baab9 LookYourLoot + 27321 5 LookYourLoot 0x001403a3 LookYourLoot + 574371 6 LookYourLoot 0x000bb107 LookYourLoot + 28935 7 LookYourLoot 0x000baff1 LookYourLoot + 28657 8 LookYourLoot 0x000bb1e3 LookYourLoot + 29155 9 libdyld.dylib 0x1cfca4eb <redacted> + 2
5 Likes

Hmm, not sure what class it complains about? If that information printed somewhere?
Also, what version did you have before 1.2.141? (Trying to figure out what Android related stuff we’ve changed recently)

Good question! )

1.2.139

1 Like

Have you been able to reproduce it yourself locally? I would love to watch the log file, perhaps it can reveal what class it doesn’t find.

1.2.140:


1.2.141:

2 Likes

@Dragosha: I just downloaded Look You Loot, and I got the same issue! Yay! (or something :/)
“Didn’t find class “com.defold.adtruth.InstallReceiver””
It’s part of an internal extension that we removed this sprint.
Could it be that you have a custom AndroidManifest.xml that references this class?
If so, you should be able to remove it and try again?
Did it it work for you on your phone?

@agulev: Could this be the issue for you as well?

1 Like

yes, I have the same crashes and old manifest.

Do you have a custom AndroidManifest.xml?
With “com.defold.adtruth.InstallReceiver” in it?

yes, I use custom AndroidManifest.xml (some NE required it) with:

<service android:name="com.defold.adtruth.InstallReceiver"/>
        <receiver
            android:name="com.defold.adtruth.InstallReceiver"
            android:exported="true">
          <intent-filter>
            <action android:name="com.android.vending.INSTALL_REFERRER" />
          </intent-filter>
        </receiver>

Seems, I need to remove this strings?

1 Like

Yes, I’m sorry for this hickup. We didn’t really think of the custom manifests you are using.

You can compare with the manifest in the builtins/ folder, where we have removed it.

6 Likes

That’s why AAR support would be useful =)
Would be great if you are writing in version release notes about changes in manifest. Thanks!

Yes, and why we want it. It’s still in the backlog. (/DEF-2544)

Yes, it was just that we missed it this time. Our policy is ofc to always make our users aware of actions they need to take when using a new release or feature.

4 Likes

The thing with AdTruth is that it’s a small King internal extension for use by King games to handle install attribution. It’s been there since day one, but now that we have native extensions we’re able to remove it and let King teams use it as an extension instead. It’s never been documented or used by anyone outside of King and that’s why we simply forgot about custom manifests when we removed it. We’re sorry for this. Our ambition is to always notify you guys of any changes affecting you and your games.

8 Likes

Thank you!
I thought AdTruth was part of Defold analytics install tracking.

2 Likes

0 crashes for me for the last two days (since last update with right AndroidManifest).
Thank you, guys!

6 Likes

Here is my new report for 1.2.141 with truth androidmanifest:
crashes:


seems like a stable release!


signal 11 (SIGSEGV), code 1 (SEGV_MAPERR)
base.apk

10 Nov 12:29 on app version 59
LGE V20 (elsa), Android 8.0
Report 1 of 1
*** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
pid: 0, tid: 0 >>> com.dragosha.hamster <<<

backtrace:
  #00  pc 0000000000e31bfa  /data/app/com.android.chrome-QKOp7l_Y8kbQB83wDK7V8Q==/base.apk
  #01  pc 0000000001195221  /data/app/com.android.chrome-QKOp7l_Y8kbQB83wDK7V8Q==/base.apk

ANR:

5 Likes