clariusdev / solum

APIs for OEMs to Create Standalone Applications
https://www.clarius.com
BSD 3-Clause "New" or "Revised" License
16 stars 10 forks source link

Solum Crash Android #39

Closed SeeDeePee closed 1 year ago

SeeDeePee commented 1 year ago

Describe the bug I have followed the instructions in placing the Solum initialization inside a Service seeing that reinitializing Solum multiple times causes the app to crash. When my fragment loads up my SolumService is started which initializes the Solum package. Then when the fragment gets destroyed I call (solum.discnnect() and solum.release() ) and I unbind the service.

When the fragment is loaded up a second time I get the following error: 2023-08-16 10:11:04.023 26251-26251 DEBUG crash_dump64 A Cmdline: com.example.loginregister 2023-08-16 10:11:04.023 26251-26251 DEBUG crash_dump64 A pid: 25554, tid: 26208, name: QtThread >>> com.example.loginregister <<< 2023-08-16 10:11:04.024 26251-26251 DEBUG crash_dump64 A #01 pc 00000000063493cc /data/app/~~_vkTStNKG7Pwex7f2iPqKg==/com.example.loginregister-CdRT-GnUi6LFzpK0rEIsZw==/lib/arm64/libsolum_android.so (BuildId: ad81d69710ff6fa5c23aa97e7e3592c64e726ac7) 2023-08-16 10:11:04.024 26251-26251 DEBUG crash_dump64 A #02 pc 0000000006345d4c /data/app/~~_vkTStNKG7Pwex7f2iPqKg==/com.example.loginregister-CdRT-GnUi6LFzpK0rEIsZw==/lib/arm64/libsolum_android.so (BuildId: ad81d69710ff6fa5c23aa97e7e3592c64e726ac7) 2023-08-16 10:11:04.024 26251-26251 DEBUG crash_dump64 A #03 pc 00000000063440dc /data/app/~~_vkTStNKG7Pwex7f2iPqKg==/com.example.loginregister-CdRT-GnUi6LFzpK0rEIsZw==/lib/arm64/libsolum_android.so (BuildId: ad81d69710ff6fa5c23aa97e7e3592c64e726ac7) 2023-08-16 10:11:04.024 26251-26251 DEBUG crash_dump64 A #04 pc 0000000006344aa4 /data/app/~~_vkTStNKG7Pwex7f2iPqKg==/com.example.loginregister-CdRT-GnUi6LFzpK0rEIsZw==/lib/arm64/libsolum_android.so (BuildId: ad81d69710ff6fa5c23aa97e7e3592c64e726ac7) 2023-08-16 10:11:04.024 26251-26251 DEBUG crash_dump64 A #05 pc 0000000006343b58 /data/app/~~_vkTStNKG7Pwex7f2iPqKg==/com.example.loginregister-CdRT-GnUi6LFzpK0rEIsZw==/lib/arm64/libsolum_android.so (BuildId: ad81d69710ff6fa5c23aa97e7e3592c64e726ac7) 2023-08-16 10:11:04.024 26251-26251 DEBUG crash_dump64 A #06 pc 0000000006343b78 /data/app/~~_vkTStNKG7Pwex7f2iPqKg==/com.example.loginregister-CdRT-GnUi6LFzpK0rEIsZw==/lib/arm64/libsolum_android.so (BuildId: ad81d69710ff6fa5c23aa97e7e3592c64e726ac7) 2023-08-16 10:11:04.024 26251-26251 DEBUG crash_dump64 A #07 pc 0000000006342744 /data/app/~~_vkTStNKG7Pwex7f2iPqKg==/com.example.loginregister-CdRT-GnUi6LFzpK0rEIsZw==/lib/arm64/libsolum_android.so (BuildId: ad81d69710ff6fa5c23aa97e7e3592c64e726ac7) 2023-08-16 10:11:04.024 26251-26251 DEBUG crash_dump64 A #08 pc 00000000063368f0 /data/app/~~_vkTStNKG7Pwex7f2iPqKg==/com.example.loginregister-CdRT-GnUi6LFzpK0rEIsZw==/lib/arm64/libsolum_android.so (BuildId: ad81d69710ff6fa5c23aa97e7e3592c64e726ac7) 2023-08-16 10:11:04.024 26251-26251 DEBUG crash_dump64 A #09 pc 0000000006351ce8 /data/app/~~_vkTStNKG7Pwex7f2iPqKg==/com.example.loginregister-CdRT-GnUi6LFzpK0rEIsZw==/lib/arm64/libsolum_android.so (BuildId: ad81d69710ff6fa5c23aa97e7e3592c64e726ac7) 2023-08-16 10:11:04.024 26251-26251 DEBUG crash_dump64 A #10 pc 00000000065b3478 /data/app/~~_vkTStNKG7Pwex7f2iPqKg==/com.example.loginregister-CdRT-GnUi6LFzpK0rEIsZw==/lib/arm64/libsolum_android.so (BuildId: ad81d69710ff6fa5c23aa97e7e3592c64e726ac7) 2023-08-16 10:11:04.024 26251-26251 DEBUG crash_dump64 A #11 pc 00000000065b2eb0 /data/app/~~_vkTStNKG7Pwex7f2iPqKg==/com.example.loginregister-CdRT-GnUi6LFzpK0rEIsZw==/lib/arm64/libsolum_android.so (BuildId: ad81d69710ff6fa5c23aa97e7e3592c64e726ac7) 2023-08-16 10:11:04.024 26251-26251 DEBUG crash_dump64 A #12 pc 00000000065b3ee4 /data/app/~~_vkTStNKG7Pwex7f2iPqKg==/com.example.loginregister-CdRT-GnUi6LFzpK0rEIsZw==/lib/arm64/libsolum_android.so (BuildId: ad81d69710ff6fa5c23aa97e7e3592c64e726ac7) 2023-08-16 10:11:04.024 26251-26251 DEBUG crash_dump64 A #13 pc 00000000004e9044 /data/app/~~_vkTStNKG7Pwex7f2iPqKg==/com.example.loginregister-CdRT-GnUi6LFzpK0rEIsZw==/lib/arm64/libQt6Core_arm64-v8a.so (BuildId: b53aeb414486fcda063009f854d99c13299bf8c4) 2023-08-16 10:11:04.024 26251-26251 DEBUG crash_dump64 A #14 pc 00000000063a0fd8 /data/app/~~_vkTStNKG7Pwex7f2iPqKg==/com.example.loginregister-CdRT-GnUi6LFzpK0rEIsZw==/lib/arm64/libsolum_android.so (BuildId: ad81d69710ff6fa5c23aa97e7e3592c64e726ac7) 2023-08-16 10:11:04.024 26251-26251 DEBUG crash_dump64 A #15 pc 00000000067a02f0 /data/app/~~_vkTStNKG7Pwex7f2iPqKg==/com.example.loginregister-CdRT-GnUi6LFzpK0rEIsZw==/lib/arm64/libsolum_android.so (BuildId: ad81d69710ff6fa5c23aa97e7e3592c64e726ac7) 2023-08-16 10:11:04.024 26251-26251 DEBUG crash_dump64 A #16 pc 000000000672b250 /data/app/~~_vkTStNKG7Pwex7f2iPqKg==/com.example.loginregister-CdRT-GnUi6LFzpK0rEIsZw==/lib/arm64/libsolum_android.so (BuildId: ad81d69710ff6fa5c23aa97e7e3592c64e726ac7) 2023-08-16 10:11:04.024 26251-26251 DEBUG crash_dump64 A #17 pc 00000000004b4448 /data/app/~~_vkTStNKG7Pwex7f2iPqKg==/com.example.loginregister-CdRT-GnUi6LFzpK0rEIsZw==/lib/arm64/libQt6Core_arm64-v8a.so (BuildId: b53aeb414486fcda063009f854d99c13299bf8c4) 2023-08-16 10:11:04.024 26251-26251 DEBUG crash_dump64 A #18 pc 00000000004b43c4 /data/app/~~_vkTStNKG7Pwex7f2iPqKg==/com.example.loginregister-CdRT-GnUi6LFzpK0rEIsZw==/lib/arm64/libQt6Core_arm64-v8a.so (QCoreApplication::notifyInternal2(QObject, QEvent)+176) (BuildId: b53aeb414486fcda063009f854d99c13299bf8c4) 2023-08-16 10:11:04.024 26251-26251 DEBUG crash_dump64 A #19 pc 00000000004b508c /data/app/~~_vkTStNKG7Pwex7f2iPqKg==/com.example.loginregister-CdRT-GnUi6LFzpK0rEIsZw==/lib/arm64/libQt6Core_arm64-v8a.so (QCoreApplicationPrivate::sendPostedEvents(QObject, int, QThreadData)+508) (BuildId: b53aeb414486fcda063009f854d99c13299bf8c4) 2023-08-16 10:11:04.024 26251-26251 DEBUG crash_dump64 A #20 pc 0000000000591d30 /data/app/~~_vkTStNKG7Pwex7f2iPqKg==/com.example.loginregister-CdRT-GnUi6LFzpK0rEIsZw==/lib/arm64/libQt6Core_arm64-v8a.so (QEventDispatcherUNIX::processEvents(QFlags)+76) (BuildId: b53aeb414486fcda063009f854d99c13299bf8c4) 2023-08-16 10:11:04.024 26251-26251 DEBUG crash_dump64 A #21 pc 00000000004bb4cc /data/app/~~_vkTStNKG7Pwex7f2iPqKg==/com.example.loginregister-CdRT-GnUi6LFzpK0rEIsZw==/lib/arm64/libQt6Core_arm64-v8a.so (QEventLoop::exec(QFlags)+332) (BuildId: b53aeb414486fcda063009f854d99c13299bf8c4) 2023-08-16 10:11:04.025 26251-26251 DEBUG crash_dump64 A #22 pc 000000000055c9d0 /data/app/~~_vkTStNKG7Pwex7f2iPqKg==/com.example.loginregister-CdRT-GnUi6LFzpK0rEIsZw==/lib/arm64/libQt6Core_arm64-v8a.so (QThread::exec()+128) (BuildId: b53aeb414486fcda063009f854d99c13299bf8c4) 2023-08-16 10:11:04.025 26251-26251 DEBUG crash_dump64 A #23 pc 000000000626e9ac /data/app/~~_vkTStNKG7Pwex7f2iPqKg==/com.example.loginregister-CdRT-GnUi6LFzpK0rEIsZw==/lib/arm64/libsolum_android.so (BuildId: ad81d69710ff6fa5c23aa97e7e3592c64e726ac7) 2023-08-16 10:11:04.025 26251-26251 DEBUG crash_dump64 A #24 pc 0000000000595f50 /data/app/~~_vkTStNKG7Pwex7f2iPqKg==/com.example.loginregister-CdRT-GnUi6LFzpK0rEIsZw==/lib/arm64/libQt6Core_arm64-v8a.so (BuildId: b53aeb414486fcda063009f854d99c13299bf8c4)

Note This error occurs on a Samsung talet running Android 13 and SDK 33. The error does not occur on my Samsung tablet running Android 12 SDK 31

SeeDeePee commented 1 year ago

I have resolved this issue. For anyone struggling with this in the future I did the following:

julien-l commented 1 year ago

Probably related to https://github.com/clariusdev/solum/issues/35 and already addressed in the future release this autumn.

Note: your workaround is the preferred way of using Solum (in a service, decoupled from the fragment's lifecycle). The reason this example app keeps initializing/releasing Solum is to detect potential bugs, like the one you found. Thanks for reporting!