Defold 1.2.181 BETA

#21

I’ve made partial roll out my game on Android with 1.2.181 and new AdMob extension (https://github.com/defold/extension-admob/tree/new-admob). Works fine.

4 Likes

#22

Thanks for the info!
Hopefully the latest http-fixes will help reduce the number of crashes for the app.
I’m curious to know the stats once the users have started to use the latest version for a little while.

4 Likes

#23

Hi @Mathias_Westerdahl … I had downloaded this around a few days ago for a test drive. It still doesn’t solve the issue I had on Ubuntu 20.04. Did I need to set the export MESA_GL_VERSION_OVERRIDE=2.1 environment variable still? Or it was meant to resolve that issue?

0 Likes

#24

@britzl Is it possible to resolve #5703?

It’s also about require() detecting and can help me to share with community the way how to debug the code and run projects in VSCode without Defold Editor.

1 Like

#25

Yes, maybe. I’ve added some comments to the issue on GH.

0 Likes

#26

Use case:
Editor: 1.2.181. PC, Windows 10. I catched a script error in my game, after that I folded an editor and dmengine windows and leave pc for a hour. When return saw that in console:
Assertion failed: size <= Capacity() D:\a\defold\defold\tmp\dynamo_home\sdk\include\dmsdk/dlib/array.h, line 472

Perhaps dmengine memory leak?

WARNING:DLIB: Profiler Engine.Sim took 4.844 seconds
WARNING:DLIB: Profiler Engine.Frame took 4.849 seconds
DEBUG:SCRIPT: focus lost on mycamera
DEBUG:SCRIPT: Sending 7 hit(s) to Google Analytics
ERROR:DLIB: Trying to cache an entry with no tag and max-age set to 0
DEBUG:SCRIPT: Nothing to send
DEBUG:SCRIPT: Window resized: 	0	0	 z=	1440
Assertion failed: size <= Capacity(), file D:\a\defold\defold\tmp\dynamo_home\sdk\include\dmsdk/dlib/array.h, line 472
INFO:CRASH: Successfully wrote Crashdump to file: C:\Users\isunt\AppData\Roaming\Defold/_crash
ERROR:CRASH: CALL STACK:

 0 0x7FF77A8E33A0 _snscanf_s <unknown>:0
 1 0x7FF77AA03DE0 LZ4MaxCompressedSize <unknown>:0
 2 0x7FF77AA03DE0 LZ4MaxCompressedSize <unknown>:0
 3 0x7FF77AA03DE0 LZ4MaxCompressedSize <unknown>:0
 4 0x7FF77AA03DE0 LZ4MaxCompressedSize <unknown>:0
 5 0x7FF77A94E960 DecryptXTeaCTR <unknown>:0
 6 0x7FF77A94E960 DecryptXTeaCTR <unknown>:0
 7 0x7FF77AA03DE0 LZ4MaxCompressedSize <unknown>:0
 8 0x7FF77A94E960 DecryptXTeaCTR <unknown>:0
 9 0x7FF77A94E960 DecryptXTeaCTR <unknown>:0
10 0x7FF77A94E960 DecryptXTeaCTR <unknown>:0
11 0x7FF77A94E960 DecryptXTeaCTR <unknown>:0
12 0x7FF77A8F6490 dmHashReverseErase64 <unknown>:0
13 0x7FF77A9BB0D0 Particle_Hash <unknown>:0
14 0x7FF77A8F6490 dmHashReverseErase64 <unknown>:0
15 0x7FF77A8F6490 dmHashReverseErase64 <unknown>:0
16 0x7FF77A8F6490 dmHashReverseErase64 <unknown>:0
17 0x7FF77A8F6490 dmHashReverseErase64 <unknown>:0
18 0x7FF77A8BDC30 sprintf <unknown>:0
19 0x7FF77AA03DE0 LZ4MaxCompressedSize <unknown>:0
20 0x7FFD1DFF7020 BaseThreadInitThunk <unknown>:0
21 0x7FFD1E322630 RtlUserThreadStart <unknown>:0

Crashdump is unformative :frowning:

2 Likes

#27

Thanks @Dragosha!

Yes, that callstack is indeed broken (e.g. there’s no way C’s sprintf is calling our dmHashReverseErase64 function)

There should be a file C:\Users\isunt\AppData\Roaming\Defold/_crash.dmp too, is that available?

Are you using native extensions?
If so I also need the dmengine.pdb from your build folder to go with the .dmp file.

If the .pdb is missing, you can try to bundle onece, and selecting “With debug symbols” (I should make this options default).

If you can give me these two files, I should be able to debug the callstack.

C:\Users\isunt\AppData\Roaming\Defold/_crash
dmengine.pdb

0 Likes

#28

unfortunately, no. I continued work on project and crash dump file is lost as i see.
I have not made a bundle, just builded (ctrl+b) project from an editor, so, no sure here is native extensions at dmengine. (also as I understand admob, gpgs and iap extensions are building for mobile, not PC).

0 Likes

#29

also as I understand admob, gpgs and iap extensions are building for mobile, not PC

If you have native extensions, they’ll be sent to the build server and you’ll get a custom built engine back. This is regardless of if the extension is implemented to work on the platform (e.g. gpgs on Win32).

unfortunately, no. I continued work on project and crash dump file is lost as i see.

Ok.
Btw, the crash dump isn’t removed automatically. If it’s not there, it wasn’t created. :thinking:

0 Likes

#30

But I saw dump and open the file in text editor. It looked like 0000 0000 0100 0000 etc. And not deleted it manually. Mystic :confused:

0 Likes

#31

The .dmpfile is a windows format, and you can open it with Visual Studio and press F5 to debug it. However, you also need the engine and the debug symbols to do it.

0 Likes

#32

So, I have first results. As I can see ares__sortaddrinfo crash is still in 1.2.181, but a little less often. 8 crashes detected for now.

backtrace:
  #00  pc 00000000001d4f74  /data/app/com.dragosha.hamster-1/lib/arm/libLookYourLoot.so (ares__sortaddrinfo) (SourceCode: /Users/mawe/work/defold/external/cares/build/../package/c-ares-1.17.1/src/lib/ares__sortaddrinfo.c:491)
  #00  pc 00000000001cc474  /data/app/com.dragosha.hamster-1/lib/arm/libLookYourLoot.so (end_hquery) (SourceCode: /Users/mawe/work/defold/external/cares/build/../package/c-ares-1.17.1/src/lib/ares_getaddrinfo.c:405)
  #00  pc 00000000001d24ac  /data/app/com.dragosha.hamster-1/lib/arm/libLookYourLoot.so (qcallback) (SourceCode: /Users/mawe/work/defold/external/cares/build/../package/c-ares-1.17.1/src/lib/ares_query.c)
  #00  pc 00000000001d1618  /data/app/com.dragosha.hamster-1/lib/arm/libLookYourLoot.so (end_query) (SourceCode: /Users/mawe/work/defold/external/cares/build/../package/c-ares-1.17.1/src/lib/ares_process.c:1493)
  #00  pc 00000000001d204c  /data/app/com.dragosha.hamster-1/lib/arm/libLookYourLoot.so (process_answer) (SourceCode: /Users/mawe/work/defold/external/cares/build/../package/c-ares-1.17.1/src/lib/ares_process.c:669)
  #00  pc 00000000001d0828  /data/app/com.dragosha.hamster-1/lib/arm/libLookYourLoot.so (read_udp_packets) (SourceCode: /Users/mawe/work/defold/external/cares/build/../package/c-ares-1.17.1/src/lib/ares_process.c:533)
  #00  pc 00000000001d0828  /data/app/com.dragosha.hamster-1/lib/arm/libLookYourLoot.so (processfds) (SourceCode: /Users/mawe/work/defold/external/cares/build/../package/c-ares-1.17.1/src/lib/ares_process.c:132)
  #00  pc 00000000001d00d8  /data/app/com.dragosha.hamster-1/lib/arm/libLookYourLoot.so (ares_process) (SourceCode: /Users/mawe/work/defold/external/cares/build/../package/c-ares-1.17.1/src/lib/ares_process.c:142)
  #00  pc 000000000016ba54  /data/app/com.dragosha.hamster-1/lib/arm/libLookYourLoot.so (dmDNS::GetHostByName(char const*, dmSocket::Address*, dmDNS::Channel*, int, bool, bool)) (SourceCode: /home/runner/work/defold/defold/engine/dlib/build/../src/dlib/dns.cpp:414)
  #00  pc 000000000016c7b4  /data/app/com.dragosha.hamster-1/lib/arm/libLookYourLoot.so (dmConnectionPool::DoDial(dmConnectionPool::ConnectionPool*, char const*, unsigned short, dmDNS::Channel*, bool, int, unsigned int*, dmSocket::Result*, bool, bool)) (SourceCode: /home/runner/work/defold/defold/engine/dlib/build/../src/dlib/connection_pool.cpp:350)
  #00  pc 000000000016cea8  /data/app/com.dragosha.hamster-1/lib/arm/libLookYourLoot.so (dmConnectionPool::Dial(dmConnectionPool::ConnectionPool*, char const*, unsigned short, dmDNS::Channel*, bool, int, unsigned int*, dmSocket::Result*)) (SourceCode: /home/runner/work/defold/defold/engine/dlib/build/../src/dlib/connection_pool.cpp:429)
  #00  pc 000000000013d07c  /data/app/com.dragosha.hamster-1/lib/arm/libLookYourLoot.so (dmHttpClient::Response::Connect(char const*, unsigned short, bool, int)) (SourceCode: /home/runner/work/defold/defold/engine/dlib/build/../src/dlib/http_client.cpp:196)
  #00  pc 000000000013d984  /data/app/com.dragosha.hamster-1/lib/arm/libLookYourLoot.so (dmHttpClient::DoRequest(dmHttpClient::Client*, char const*, char const*)) (SourceCode: /home/runner/work/defold/defold/engine/dlib/build/../src/dlib/http_client.cpp:1015)
  #00  pc 00000000000f72d0  /data/app/com.dragosha.hamster-1/lib/arm/libLookYourLoot.so
  #00  pc 00000000000f7584  /data/app/com.dragosha.hamster-1/lib/arm/libLookYourLoot.so
  #00  pc 000000000014d760  /data/app/com.dragosha.hamster-1/lib/arm/libLookYourLoot.so (dmMessage::InternalDispatch(unsigned long long, void (*)(dmMessage::Message*, void*), void*, bool)) (SourceCode: /home/runner/work/defold/defold/engine/dlib/build/../src/dlib/message.cpp:497)
  #00  pc 000000000014d974  /data/app/com.dragosha.hamster-1/lib/arm/libLookYourLoot.so (dmMessage::DispatchBlocking(unsigned long long, void (*)(dmMessage::Message*, void*), void*)) (SourceCode: /home/runner/work/defold/defold/engine/dlib/build/../src/dlib/message.cpp:529)
  #00  pc 00000000000f7788  /data/app/com.dragosha.hamster-1/lib/arm/libLookYourLoot.so
  #00  pc 00000000001568dc  /data/app/com.dragosha.hamster-1/lib/arm/libLookYourLoot.so (dmThread::ThreadStartProxy(void*)) (SourceCode: /home/runner/work/defold/defold/engine/dlib/build/../src/dlib/thread.cpp:42)
  #00  pc 0000000000047063  /system/lib/libc.so (__pthread_start(void*)+22)
  #00  pc 0000000000019ded  /system/lib/libc.so (__start_thread+6)
2 Likes

#33

I see that this bug was fixed in c-ares less than a month ago:

2 Likes

#34

Thanks for the info @Dragosha and @aglitchman!

The original issue was that those lingering requests were producing ANR’s at shutdown, and we added c-ares to remedy that.
However, we’ve since reconsidered that solution, and we have another solution in mind now, which allows us to remove c-ares. I believe for 1.2.182, we’ve removed it.

6 Likes

#35

Not sure if it’s related to d8 but I don’t see any other changes on extender.

If I build the latest FB extension using 1.2.181 I get the following crash on app start:

java.lang.RuntimeException: Unable to get provider com.facebook.internal.FacebookInitProvider: java.lang.ClassNotFoundException: Didn't find class "com.facebook.internal.FacebookInitProvider" on path: DexPathList[[zip file "/data/app/com.example.todo-1/base.apk"],nativeLibraryDirectories=[/data/app/com.example.todo-1/lib/arm64, /data/app/com.example.todo-1/base.apk!/lib/arm64-v8a, /vendor/lib64, /system/lib64]]
	at android.app.ActivityThread.installProvider(ActivityThread.java:5534)
	at android.app.ActivityThread.installContentProviders(ActivityThread.java:5060)
	at android.app.ActivityThread.handleBindApplication(ActivityThread.java:5000)
	at android.app.ActivityThread.access$1800(ActivityThread.java:178)
	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1578)
	at android.os.Handler.dispatchMessage(Handler.java:111)
	at android.os.Looper.loop(Looper.java:207)
	at android.app.ActivityThread.main(ActivityThread.java:5845)
	at java.lang.reflect.Method.invoke(Native Method)
	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:907)
	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:768)
Caused by: java.lang.ClassNotFoundException: Didn't find class "com.facebook.internal.FacebookInitProvider" on path: DexPathList[[zip file "/data/app/com.example.todo-1/base.apk"],nativeLibraryDirectories=[/data/app/com.example.todo-1/lib/arm64, /data/app/com.example.todo-1/base.apk!/lib/arm64-v8a, /vendor/lib64, /system/lib64]]
	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.installProvider(ActivityThread.java:5519)
	... 10 more
	Suppressed: java.lang.ClassNotFoundException: com.facebook.internal.FacebookInitProvider
		at java.lang.Class.classForName(Native Method)
		at java.lang.BootClassLoader.findClass(ClassLoader.java:781)
		at java.lang.BootClassLoader.loadClass(ClassLoader.java:841)
		at java.lang.ClassLoader.loadClass(ClassLoader.java:504)
		... 12 more
	Caused by: java.lang.NoClassDefFoundError: Class not found using the boot class loader; no stack trace available

For Fb+Push:

 java.lang.RuntimeException: Unable to get provider com.google.firebase.provider.FirebaseInitProvider: java.lang.ClassNotFoundException: Didn't find class "com.google.firebase.provider.FirebaseInitProvider" on path: DexPathList[[zip file "/data/app/com.example.todo-1/base.apk"],nativeLibraryDirectories=[/data/app/com.example.todo-1/lib/arm64, /data/app/com.example.todo-1/base.apk!/lib/arm64-v8a, /vendor/lib64, /system/lib64]]
	at android.app.ActivityThread.installProvider(ActivityThread.java:5534)
	at android.app.ActivityThread.installContentProviders(ActivityThread.java:5060)
	at android.app.ActivityThread.handleBindApplication(ActivityThread.java:5000)
	at android.app.ActivityThread.access$1800(ActivityThread.java:178)
	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1578)
	at android.os.Handler.dispatchMessage(Handler.java:111)
	at android.os.Looper.loop(Looper.java:207)
	at android.app.ActivityThread.main(ActivityThread.java:5845)
	at java.lang.reflect.Method.invoke(Native Method)
	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:907)
	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:768)
Caused by: java.lang.ClassNotFoundException: Didn't find class "com.google.firebase.provider.FirebaseInitProvider" on path: DexPathList[[zip file "/data/app/com.example.todo-1/base.apk"],nativeLibraryDirectories=[/data/app/com.example.todo-1/lib/arm64, /data/app/com.example.todo-1/base.apk!/lib/arm64-v8a, /vendor/lib64, /system/lib64]]
	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.installProvider(ActivityThread.java:5519)
	... 10 more
	Suppressed: java.lang.ClassNotFoundException: com.google.firebase.provider.FirebaseInitProvider
		at java.lang.Class.classForName(Native Method)
		at java.lang.BootClassLoader.findClass(ClassLoader.java:781)
		at java.lang.BootClassLoader.loadClass(ClassLoader.java:841)
		at java.lang.ClassLoader.loadClass(ClassLoader.java:504)
		... 12 more
	Caused by: java.lang.NoClassDefFoundError: Class not found using the boot class loader; no stack trace available

iap + push work fine, as well as all these combinations on 1.2.180.

Test project:
fb push.zip (68.2 KB)

2 Likes

Several Android-specific questions, while integrating Ads Mediation (15+ networks)
#36

Seems, there is a new type of network crashes.
Google console call it as “abort”
net_sockets.c:665
Samsung Galaxy A51, Android 11 (SDK 30)

*** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
pid: 0, tid: 0 >>> com.dragosha.hamster <<<

backtrace:
  #00  pc 0000000000089c90  /apex/com.android.runtime/lib64/bionic/libc.so (abort+164)
  #00  pc 000000000008e130  /apex/com.android.runtime/lib64/bionic/libc.so (fdsan_error(char const*, ...)+588)
  #00  pc 000000000008de2c  /apex/com.android.runtime/lib64/bionic/libc.so (android_fdsan_close_with_tag+740)
  #00  pc 000000000008e594  /apex/com.android.runtime/lib64/bionic/libc.so (close+16)
  #00  pc 00000000001e9cac  /data/app/~~uvCv5FnCv4gpHG3AqF676g==/com.dragosha.hamster-Jr6B7XA1-vkt3CJF2hyqmg==/split_config.arm64_v8a.apk!lib/arm64-v8a/libLookYourLoot.so (offset 0x1000) (mbedtls_net_free) (SourceCode: /home/runner/work/defold/defold/engine/dlib/build/../src/mbedtls/library/net_sockets.c:665)
  #00  pc 0000000000164bd4  /data/app/~~uvCv5FnCv4gpHG3AqF676g==/com.dragosha.hamster-Jr6B7XA1-vkt3CJF2hyqmg==/split_config.arm64_v8a.apk!lib/arm64-v8a/libLookYourLoot.so (offset 0x1000) (dmSSLSocket::Delete(dmSSLSocket::SSLSocket*)) (SourceCode: /home/runner/work/defold/defold/engine/dlib/build/../src/dlib/sslsocket.cpp:361)
  #00  pc 000000000017e86c  /data/app/~~uvCv5FnCv4gpHG3AqF676g==/com.dragosha.hamster-Jr6B7XA1-vkt3CJF2hyqmg==/split_config.arm64_v8a.apk!lib/arm64-v8a/libLookYourLoot.so (offset 0x1000) (dmConnectionPool::DoClose(dmConnectionPool::ConnectionPool*, dmConnectionPool::Connection*)) (SourceCode: /home/runner/work/defold/defold/engine/dlib/build/../src/dlib/connection_pool.cpp:217)
  #00  pc 000000000017e86c  /data/app/~~uvCv5FnCv4gpHG3AqF676g==/com.dragosha.hamster-Jr6B7XA1-vkt3CJF2hyqmg==/split_config.arm64_v8a.apk!lib/arm64-v8a/libLookYourLoot.so (offset 0x1000) (dmConnectionPool::PurgeExpired(dmConnectionPool::ConnectionPool*)) (SourceCode: /home/runner/work/defold/defold/engine/dlib/build/../src/dlib/connection_pool.cpp:229)
  #00  pc 000000000017e86c  /data/app/~~uvCv5FnCv4gpHG3AqF676g==/com.dragosha.hamster-Jr6B7XA1-vkt3CJF2hyqmg==/split_config.arm64_v8a.apk!lib/arm64-v8a/libLookYourLoot.so (offset 0x1000) (dmConnectionPool::DoDial(dmConnectionPool::ConnectionPool*, char const*, unsigned short, dmDNS::Channel*, bool, int, unsigned int*, dmSocket::Result*, bool, bool)) (SourceCode: /home/runner/work/defold/defold/engine/dlib/build/../src/dlib/connection_pool.cpp:373)
  #00  pc 000000000017ed08  /data/app/~~uvCv5FnCv4gpHG3AqF676g==/com.dragosha.hamster-Jr6B7XA1-vkt3CJF2hyqmg==/split_config.arm64_v8a.apk!lib/arm64-v8a/libLookYourLoot.so (offset 0x1000) (dmConnectionPool::Dial(dmConnectionPool::ConnectionPool*, char const*, unsigned short, dmDNS::Channel*, bool, int, unsigned int*, dmSocket::Result*)) (SourceCode: /home/runner/work/defold/defold/engine/dlib/build/../src/dlib/connection_pool.cpp:415)
  #00  pc 000000000014ca68  /data/app/~~uvCv5FnCv4gpHG3AqF676g==/com.dragosha.hamster-Jr6B7XA1-vkt3CJF2hyqmg==/split_config.arm64_v8a.apk!lib/arm64-v8a/libLookYourLoot.so (offset 0x1000) (dmHttpClient::Response::Connect(char const*, unsigned short, bool, int)) (SourceCode: /home/runner/work/defold/defold/engine/dlib/build/../src/dlib/http_client.cpp:196)
  #00  pc 000000000014d2b0  /data/app/~~uvCv5FnCv4gpHG3AqF676g==/com.dragosha.hamster-Jr6B7XA1-vkt3CJF2hyqmg==/split_config.arm64_v8a.apk!lib/arm64-v8a/libLookYourLoot.so (offset 0x1000) (dmHttpClient::DoRequest(dmHttpClient::Client*, char const*, char const*)) (SourceCode: /home/runner/work/defold/defold/engine/dlib/build/../src/dlib/http_client.cpp:1015)
  #00  pc 00000000000f9ca8  /data/app/~~uvCv5FnCv4gpHG3AqF676g==/com.dragosha.hamster-Jr6B7XA1-vkt3CJF2hyqmg==/split_config.arm64_v8a.apk!lib/arm64-v8a/libLookYourLoot.so (offset 0x1000) (dmHttpService::HandleRequest(dmHttpService::Worker*, dmMessage::URL const*, dmHttpDDF::HttpRequest*)) (SourceCode: /home/runner/work/defold/defold/engine/script/build/../src/http_service.cpp:243)
  #00  pc 00000000000f9ec8  /data/app/~~uvCv5FnCv4gpHG3AqF676g==/com.dragosha.hamster-Jr6B7XA1-vkt3CJF2hyqmg==/split_config.arm64_v8a.apk!lib/arm64-v8a/libLookYourLoot.so (offset 0x1000) (dmHttpService::Dispatch(dmMessage::Message*, void*)) (SourceCode: /home/runner/work/defold/defold/engine/script/build/../src/http_service.cpp:272)
  #00  pc 000000000015e154  /data/app/~~uvCv5FnCv4gpHG3AqF676g==/com.dragosha.hamster-Jr6B7XA1-vkt3CJF2hyqmg==/split_config.arm64_v8a.apk!lib/arm64-v8a/libLookYourLoot.so (offset 0x1000) (dmMessage::InternalDispatch(unsigned long, void (*)(dmMessage::Message*, void*), void*, bool)) (SourceCode: /home/runner/work/defold/defold/engine/dlib/build/../src/dlib/message.cpp:497)
  #00  pc 00000000000fa088  /data/app/~~uvCv5FnCv4gpHG3AqF676g==/com.dragosha.hamster-Jr6B7XA1-vkt3CJF2hyqmg==/split_config.arm64_v8a.apk!lib/arm64-v8a/libLookYourLoot.so (offset 0x1000) (dmHttpService::Loop(void*)) (SourceCode: /home/runner/work/defold/defold/engine/script/build/../src/http_service.cpp:329)
  #00  pc 0000000000165b20  /data/app/~~uvCv5FnCv4gpHG3AqF676g==/com.dragosha.hamster-Jr6B7XA1-vkt3CJF2hyqmg==/split_config.arm64_v8a.apk!lib/arm64-v8a/libLookYourLoot.so (offset 0x1000) (dmThread::ThreadStartProxy(void*)) (SourceCode: /home/runner/work/defold/defold/engine/dlib/build/../src/dlib/thread.cpp:42)
  #00  pc 00000000000eb768  /apex/com.android.runtime/lib64/bionic/libc.so (__pthread_start(void*)+64)
  #00  pc 000000000008bc4c  /apex/com.android.runtime/lib64/bionic/libc.so (__start_thread+64)

Google Pixel 3 XL, Android 11 (SDK 30)

backtrace:
  #00  pc 000000000004e2cc  /apex/com.android.runtime/lib64/bionic/libc.so (abort+164)
  #00  pc 000000000005276c  /apex/com.android.runtime/lib64/bionic/libc.so (fdsan_error(char const*, ...)+588)
  #00  pc 0000000000052468  /apex/com.android.runtime/lib64/bionic/libc.so (android_fdsan_close_with_tag+740)
  #00  pc 0000000000052bd0  /apex/com.android.runtime/lib64/bionic/libc.so (close+16)
  #00  pc 00000000001630fc  /data/app/~~kqvr5fk4nCSsOnINeDAJNw==/com.dragosha.hamster-Q28UrnkaZFKSVt-2YWVgYg==/split_config.arm64_v8a.apk!lib/arm64-v8a/libLookYourLoot.so (offset 0x1000) (dmSocket::Delete(int)) (SourceCode: /home/runner/work/defold/defold/engine/dlib/build/../src/dlib/socket.cpp:362)
  #00  pc 000000000017eb90  /data/app/~~kqvr5fk4nCSsOnINeDAJNw==/com.dragosha.hamster-Q28UrnkaZFKSVt-2YWVgYg==/split_config.arm64_v8a.apk!lib/arm64-v8a/libLookYourLoot.so (offset 0x1000) (dmConnectionPool::DoClose(dmConnectionPool::ConnectionPool*, dmConnectionPool::Connection*)) (SourceCode: /home/runner/work/defold/defold/engine/dlib/build/../src/dlib/connection_pool.cpp:214)
  #00  pc 000000000017eb90  /data/app/~~kqvr5fk4nCSsOnINeDAJNw==/com.dragosha.hamster-Q28UrnkaZFKSVt-2YWVgYg==/split_config.arm64_v8a.apk!lib/arm64-v8a/libLookYourLoot.so (offset 0x1000) (dmConnectionPool::DoDial(dmConnectionPool::ConnectionPool*, char const*, unsigned short, dmDNS::Channel*, bool, int, unsigned int*, dmSocket::Result*, bool, bool)) (SourceCode: /home/runner/work/defold/defold/engine/dlib/build/../src/dlib/connection_pool.cpp:404)
  #00  pc 000000000017ed08  /data/app/~~kqvr5fk4nCSsOnINeDAJNw==/com.dragosha.hamster-Q28UrnkaZFKSVt-2YWVgYg==/split_config.arm64_v8a.apk!lib/arm64-v8a/libLookYourLoot.so (offset 0x1000) (dmConnectionPool::Dial(dmConnectionPool::ConnectionPool*, char const*, unsigned short, dmDNS::Channel*, bool, int, unsigned int*, dmSocket::Result*)) (SourceCode: /home/runner/work/defold/defold/engine/dlib/build/../src/dlib/connection_pool.cpp:415)
  #00  pc 000000000014ca68  /data/app/~~kqvr5fk4nCSsOnINeDAJNw==/com.dragosha.hamster-Q28UrnkaZFKSVt-2YWVgYg==/split_config.arm64_v8a.apk!lib/arm64-v8a/libLookYourLoot.so (offset 0x1000) (dmHttpClient::Response::Connect(char const*, unsigned short, bool, int)) (SourceCode: /home/runner/work/defold/defold/engine/dlib/build/../src/dlib/http_client.cpp:196)
  #00  pc 000000000014d2b0  /data/app/~~kqvr5fk4nCSsOnINeDAJNw==/com.dragosha.hamster-Q28UrnkaZFKSVt-2YWVgYg==/split_config.arm64_v8a.apk!lib/arm64-v8a/libLookYourLoot.so (offset 0x1000) (dmHttpClient::DoRequest(dmHttpClient::Client*, char const*, char const*)) (SourceCode: /home/runner/work/defold/defold/engine/dlib/build/../src/dlib/http_client.cpp:1015)
  #00  pc 00000000000f9ca8  /data/app/~~kqvr5fk4nCSsOnINeDAJNw==/com.dragosha.hamster-Q28UrnkaZFKSVt-2YWVgYg==/split_config.arm64_v8a.apk!lib/arm64-v8a/libLookYourLoot.so (offset 0x1000) (dmHttpService::HandleRequest(dmHttpService::Worker*, dmMessage::URL const*, dmHttpDDF::HttpRequest*)) (SourceCode: /home/runner/work/defold/defold/engine/script/build/../src/http_service.cpp:243)
  #00  pc 00000000000f9ec8  /data/app/~~kqvr5fk4nCSsOnINeDAJNw==/com.dragosha.hamster-Q28UrnkaZFKSVt-2YWVgYg==/split_config.arm64_v8a.apk!lib/arm64-v8a/libLookYourLoot.so (offset 0x1000) (dmHttpService::Dispatch(dmMessage::Message*, void*)) (SourceCode: /home/runner/work/defold/defold/engine/script/build/../src/http_service.cpp:272)
  #00  pc 000000000015e154  /data/app/~~kqvr5fk4nCSsOnINeDAJNw==/com.dragosha.hamster-Q28UrnkaZFKSVt-2YWVgYg==/split_config.arm64_v8a.apk!lib/arm64-v8a/libLookYourLoot.so (offset 0x1000) (dmMessage::InternalDispatch(unsigned long, void (*)(dmMessage::Message*, void*), void*, bool)) (SourceCode: /home/runner/work/defold/defold/engine/dlib/build/../src/dlib/message.cpp:497)
  #00  pc 00000000000fa088  /data/app/~~kqvr5fk4nCSsOnINeDAJNw==/com.dragosha.hamster-Q28UrnkaZFKSVt-2YWVgYg==/split_config.arm64_v8a.apk!lib/arm64-v8a/libLookYourLoot.so (offset 0x1000) (dmHttpService::Loop(void*)) (SourceCode: /home/runner/work/defold/defold/engine/script/build/../src/http_service.cpp:329)
  #00  pc 0000000000165b20  /data/app/~~kqvr5fk4nCSsOnINeDAJNw==/com.dragosha.hamster-Q28UrnkaZFKSVt-2YWVgYg==/split_config.arm64_v8a.apk!lib/arm64-v8a/libLookYourLoot.so (offset 0x1000) (dmThread::ThreadStartProxy(void*)) (SourceCode: /home/runner/work/defold/defold/engine/dlib/build/../src/dlib/thread.cpp:42)
  #00  pc 00000000000afd4c  /apex/com.android.runtime/lib64/bionic/libc.so (__pthread_start(void*)+64)
  #00  pc 0000000000050288  /apex/com.android.runtime/lib64/bionic/libc.so (__start_thread+64)
2 Likes

#37

also, I added to testing game version the “quit” button again and catch yesterday ANR on exit. Unfortunately without logs, now will try to catch again but with logcat. (1.2.181, Android 11, Google Pixel 2XL)

2 Likes

#38

Although I think I might know what the issue is, I’d also like to reproduce it locally.
I haven’t seen the android_fdsan_... functions before. Do I need to enable some special debugging mode on the Android device?

0 Likes

#39

Not sure, this report from common user’s device, apk downloaded from GooglePlay.

0 Likes

#40

Reverted back to use Android build tools 29.0.3, since the update caused at least two regressions:

  • Android LuaJIT issues
  • Android .dex issues

We’ll delay the release for a day or two so you all can help test/reverify the beta so that it works as expected.

6 Likes