I’ve been working with the dwm1001 development boards and the Android APK.
The supplied android APK is working fine, but when compiling from source I have encountered some problems.
Whenever I try to open the Node details menu to assign a tag as anchor for example, the application crashes.
I am now looking into what may be causing this, but I was wondering if anyone has encountered the same problem, and how to resolve it.
I cannot reproduce the same issue, did you have any chance in fixing it ?
I haven’t found what causes this issue yet. I’ll try redownloading the code in case of a corrupt file. If the issue persists I will run the code in an emulator to debug. I will post the results here.
Kind regards, Lori
Did you get anywhere with finding the cause of the crash? I get the same problem when I press on the pencil icon to edit the tag details.
I should mention in addition that I can download a pre-compiled version 14 of the APK from the Decaware website and that works OK. It’s when I use Android Studio to make an APK on my machine that it crashes when I try an edit the config of a discovered tag. Both my version and the downloaded version report as version 14.
The crash report from the debugger is as follows:
--------- beginning of crash
E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.decawave.argomanager, PID: 6979
java.lang.IllegalStateException: must specify node ID in args!
at java.lang.reflect.Method.invoke(Native Method)
I/Process: Sending signal. PID: 6979 SIG: 9
Disconnected from the target VM, address: ‘localhost:8600’, transport: ‘socket’
I’ve tried downloading the source code again and rebuilding, but no joy. Any help would be brilliant.
Hi, I’ve found the cause of the problem is the Long nodeId variable is fetching some number as -2134060293030481 instead of a regular id number. I am still debugging. If you know how to solve it, please let me know too.
This may have been fairly obvious, but I found that this problem was fixed by changing build mode from debug to release. This has solved the problem for me at least.
Make sense. Haven’t tried that until you have mentioned the build mode. Thanks
Further question: are you able to turn “debuggable” feature on when you are switching to release buildType? Once we try to turn that on, the app crashes.