Closed mergimkrasniqi closed 2 months ago
How are you consuming this package? We have detailed instructions for how to use this sdk on Android devices here. If you're consuming from maven you need to make sure you have the correct dependency: 'software.amazon.awssdk.iotdevicesdk:aws-iot-device-sdk-android:1.20.5'
How are you consuming this package? We have detailed instructions for how to use this sdk on Android devices here. If you're consuming from maven you need to make sure you have the correct dependency:
'software.amazon.awssdk.iotdevicesdk:aws-iot-device-sdk-android:1.20.5'
Yes, I'm consuming from Maven. Since version 1.20.2, I have been experiencing this issue. Versions below 1.20.2 work without any problems.
We don't have NexGo Terminals to reproduce the same issue that you are seeing. Can you help us by providing a dockerfile or minimal reproduction environment that produces the same error that you're seeing? Another useful thing to try would be to run our Android samples with trace level logging. You can do that by setting the verbosity.txt
to trace.
We encountered what seems to be the same problem on multiple Android 10 devices.
The issue can be reproduced with the sample at https://github.com/aws/aws-iot-device-sdk-java-v2/tree/main/samples/Android In our case, the crash has been reproduced on a Nokia 7.1 with Android 10. 1.20.1 does not crash, while the later releases do.
2024-04-26 19:54:13.695 29077-29331 libc software.amazon.awssdk.iotsamples A Fatal signal 4 (SIGILL), code 1 (ILL_ILLOPC), fault addr 0x7b4c770ee4 in tid 29331 (sample_runner), pid 29077 (ssdk.iotsamples)
2024-04-26 19:54:13.847 29334-29334 DEBUG crash_dump64 A pid: 29077, tid: 29331, name: sample_runner >>> software.amazon.awssdk.iotsamples <<<
2024-04-26 19:54:13.928 29077-29185 OpenGLRenderer software.amazon.awssdk.iotsamples D endAllActiveAnimators on 0x7b50933b00 (DropDownListView) with handle 0x7b508742c0
2024-04-26 19:54:14.261 29334-29334 DEBUG crash_dump64 A #00 pc 000000000022bee4 /data/app/software.amazon.awssdk.iotsamples-A_VX3AFmc0FC8YVnjO_lIg==/base.apk!libaws-crt-jni.so (offset 0x50000) (BuildId: a6ccad445d767a68f2c03877ae99987e23423bd5)
2024-04-26 19:54:14.263 29334-29334 DEBUG crash_dump64 A #29 pc 000000000020dc56 [anon:dalvik-classes.dex extracted in memory from /data/app/software.amazon.awssdk.iotsamples-A_VX3AFmc0FC8YVnjO_lIg==/base.apk] (software.amazon.awssdk.crt.CRT.<clinit>+22)
2024-04-26 19:54:14.264 29334-29334 DEBUG crash_dump64 A #39 pc 000000000020e89e [anon:dalvik-classes.dex extracted in memory from /data/app/software.amazon.awssdk.iotsamples-A_VX3AFmc0FC8YVnjO_lIg==/base.apk] (software.amazon.awssdk.crt.CrtResource.<clinit>+98)
2024-04-26 19:54:14.264 29334-29334 DEBUG crash_dump64 A #52 pc 0000000000001752 [anon:dalvik-classes5.dex extracted in memory from /data/app/software.amazon.awssdk.iotsamples-A_VX3AFmc0FC8YVnjO_lIg==/base.apk!classes5.dex] (mqtt5.pubsub.PubSub.main+174)
2024-04-26 19:54:14.265 29334-29334 DEBUG crash_dump64 A #68 pc 0000000000003f88 [anon:dalvik-classes6.dex extracted in memory from /data/app/software.amazon.awssdk.iotsamples-A_VX3AFmc0FC8YVnjO_lIg==/base.apk!classes6.dex] (software.amazon.awssdk.iotsamples.MainActivity$SampleRunnable.run+60)
2024-04-26 19:54:15.633 1374-2274 InputDispatcher system_server E channel 'be64e software.amazon.awssdk.iotsamples/software.amazon.awssdk.iotsamples.MainActivity (server)' ~ Channel is unrecoverably broken and will be disposed!
Thanks for the logs and info!
I've found that this hasn't been caught in our testing because we test on devices using Android Version 13 and it appears to not be a problem there.
I can however reproduce this issue on an Android device using Android Version 10. The issue was introduced when updating the aws-crt-android dependency from 0.29.11 to 0.29.12. We will look into this issue further. In the meanwhile, I recommend using the sdk v1.20.1 as the version upgrades since then do not add any additional android specific functionality.
Latest release v1.20.6 has reverted its android CRT dependency to v0.29.11 until we resolve the issue there. You should be able to use the latest aws-iot-device-sdk-java-v2 version without crashing. We will continue to work on the root issue in aws-crt-java and once it's fixed, will set its latest version as the dependency for the android sdk again. Thanks for bringing this to our attention.
This issue is now closed. Comments on closed issues are hard for our team to see. If you need more assistance, please open a new issue that references this one.
Describe the bug
When attempting to build the AwsIotMqtt5ClientBuilder on NexGo Terminals using version 1.20.2/1.20.4/1.20.5 of the aws-iot-device-sdk-java-v2, the application crashes. The crash log indicates a fatal signal 4 (SIGILL) with fault address 0x7a3703cee4.
Expected Behavior
I expected the AwsIotMqtt5ClientBuilder to be successfully built without causing the application to crash.
Current Behavior
The application crashes with a fatal signal 4 (SIGILL) when attempting to build the AwsIotMqtt5ClientBuilder on NexGo Terminals using version 1.20.2/1.20.4/1.20.5 of the aws-iot-device-sdk-java-v2.
Reproduction Steps
Possible Solution
No response
Additional Information/Context
No response
SDK version used
1.20.2 / 1.20.4 / 1.20.5
Environment details (OS name and version, etc.)
Android 9.0 / NexGo N86 - XAP OS V1.0