Avalonia
Avalonia copied to clipboard
11.1.0-beta1 breaks app near startup on Android Emulator
Describe the bug
Upgrading from 11.0.7 to 11.1.0-beta1 causes my app to crash. The last lines in the debug output window are:
[monodroid-assembly] open_from_bundles: failed to load assembly Nerdbank.Bitcoin.dll
Loaded assembly: /data/data/com.Nerdbank.eZcash.App/files/.__override__/Nerdbank.Bitcoin.dll
Resolved pending breakpoint at 'ImportAccountViewModel.cs:62,1' to void Nerdbank.Zcash.App.ViewModels.ImportAccountViewModel.set_Key (string value) [0x00000].
Resolved pending breakpoint at 'ImportAccountViewModel.cs:129,1' to void Nerdbank.Zcash.App.ViewModels.ImportAccountViewModel.set_BirthdayHeight (ulong value) [0x00000].
[bank.eZcash.App] Explicit concurrent copying GC freed 6495(355KB) AllocSpace objects, 0(0B) LOS objects, 49% free, 3229KB/6458KB, paused 358us,61us total 8.818ms
[libc] Fatal signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x7ec769f4b000 in tid 7332 (bank.eZcash.App), pid 7332 (bank.eZcash.App)
To Reproduce
The repro app in question isn't open source, and I don't know what element about it causes the crash. Any suggestions?
Expected behavior
No crash
Avalonia version
11.1.0-beta1
OS
No response
Additional context
No response
Are there any useful stacktraces in logcat maybe? Also, you can try to listen for AndroidEnvironment.UnhandledExceptionRaiser (android specific) or Dispatcher.UnhandledExceptions (avalonia specific).
Neither of the event handlers you suggested I add were invoked for this crash. But thanks for them anyway as I'm sure they'll be useful to keep an eye on.
Here is my logcat log:
logcat.txt
You may find logs relevant to my app by searching for nerdbank
.
Here are some potentially interesting ones, though more logs follow it, so I don't know if this represents the actual crash:
03-16 10:07:22.062 pixel_5_-_api_33_more_ram Error 293 tombstoned Tombstone written to: tombstone_06
03-16 10:07:22.051 pixel_5_-_api_33_more_ram Error 28109 DEBUG backtrace:
#00 pc 00000000001e54d8 /data/app/~~kpBhPwtif7hxBmDu1mfrtQ==/com.Nerdbank.eZcash.App-F4mi8cmm2tG0hUAgDIRikg==/lib/x86_64/libmonosgen-2.0.so (BuildId: 3ba63d5dff93e8a5b8060abc931774c8e0eb59ae)
#01 pc 00000000001e9809 /data/app/~~kpBhPwtif7hxBmDu1mfrtQ==/com.Nerdbank.eZcash.App-F4mi8cmm2tG0hUAgDIRikg==/lib/x86_64/libmonosgen-2.0.so (BuildId: 3ba63d5dff93e8a5b8060abc931774c8e0eb59ae)
#02 pc 00000000001ea30e /data/app/~~kpBhPwtif7hxBmDu1mfrtQ==/com.Nerdbank.eZcash.App-F4mi8cmm2tG0hUAgDIRikg==/lib/x86_64/libmonosgen-2.0.so (BuildId: 3ba63d5dff93e8a5b8060abc931774c8e0eb59ae)
#03 pc 000000000000e035 <anonymous:4134e000>
03-16 10:07:22.048 pixel_5_-_api_33_more_ram Error 28109 DEBUG signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x00007ec7689b1000
rax 00007ec7689a1000 rbx 00007ec962495b18 rcx 0000000000000059 rdx 000000000000ffff
r8 00007ec7689a0f70 r9 00007ec962495b1a r10 00007ec9614159e0 r11 0000000000000000
r12 00007ec7689a1000 r13 00007ffcc53aca60 r14 00007ec7689a1000 r15 00007ec84f4d66d8
rdi 00007ec7689a1020 rsi 0000000000000000
rbp 00007ffcc5424b80 rsp 00007ffcc53aca00 rip 00007ec76b46a4d8
03-16 10:07:22.048 pixel_5_-_api_33_more_ram Error 28109 DEBUG uid: 10169
03-16 10:07:22.047 pixel_5_-_api_33_more_ram Error 28109 DEBUG pid: 27946, tid: 27946, name: bank.eZcash.App >>> com.Nerdbank.eZcash.App <<<
03-16 10:07:22.047 pixel_5_-_api_33_more_ram Error 28109 DEBUG Cmdline: com.Nerdbank.eZcash.App
03-16 10:07:22.047 pixel_5_-_api_33_more_ram Error 28109 DEBUG Process uptime: 31s
03-16 10:07:22.047 pixel_5_-_api_33_more_ram Error 28109 DEBUG Timestamp: 2024-03-16 10:07:21.809750700-0600
03-16 10:07:22.046 pixel_5_-_api_33_more_ram Error 28109 DEBUG ABI: 'x86_64'
03-16 10:07:22.046 pixel_5_-_api_33_more_ram Error 28109 DEBUG Revision: '0'
03-16 10:07:22.046 pixel_5_-_api_33_more_ram Error 28109 DEBUG Build fingerprint: 'google/sdk_gphone_x86_64/emu64xa:13/TE1A.220922.034/10940250:userdebug/dev-keys'
03-16 10:07:22.046 pixel_5_-_api_33_more_ram Error 28109 DEBUG *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
03-15 22:20:10.153 pixel_5_-_api_33_more_ram Info 0 logd logdr: UID=10169 GID=10169 PID=28109 n tail=0 logMask=1 pid=27946 start=0ns deadline=0ns
03-15 22:20:10.148 pixel_5_-_api_33_more_ram Info 0 logd logdr: UID=10169 GID=10169 PID=28109 n tail=0 logMask=8 pid=27946 start=0ns deadline=0ns
03-16 10:07:21.804 pixel_5_-_api_33_more_ram Info 28109 crash_dump64 performing dump of process 27946 (target tid = 27946)
03-16 10:07:21.803 pixel_5_-_api_33_more_ram Info 293 tombstoned received crash request for pid 27946
03-16 10:07:21.801 pixel_5_-_api_33_more_ram Info 28109 crash_dump64 obtaining output fd from tombstoned, type: kDebuggerdTombstoneProto
03-16 10:07:21.743 pixel_5_-_api_33_more_ram Debug 788 EGL_emulation app_time_stats: avg=796.94ms min=2.15ms max=6647.32ms count=9
03-16 10:07:21.732 pixel_5_-_api_33_more_ram Error 27946 libc Fatal signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x7ec7689b1000 in tid 27946 (bank.eZcash.App), pid 27946 (bank.eZcash.App)
03-16 10:07:21.701 pixel_5_-_api_33_more_ram Info 27946 bank.eZcash.App Explicit concurrent copying GC freed 14237(835KB) AllocSpace objects, 0(0B) LOS objects, 49% free, 3242KB/6484KB, paused 423us,65us total 9.001ms
The repro app in question isn't open source, and I don't know what element about it causes the crash. Any suggestions?
You can request paid support in this case, so we can handle closed source also. Otherwise try to create a minimal sample
I've faced the same issue with Android Emulator ... @maxkatz6 For me issue happens for Android SDK API 35, all older version like API 32, 33, 34 looks like works fine
I'm on 11.1.0-rc2 now and it works fine for me. But I'm using Android API 34. Feel free to close, or keep open for @redradist's sake.
@redradist which Avalonia version do you use?
@redradist which Avalonia version do you use?
@timunie Version 11.1.1