View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0001859 | NoesisGUI | C++ SDK | public | 2020-12-11 12:45 | 2026-05-06 21:36 |
| Reporter | daldegam | Assigned To | jsantos | ||
| Priority | normal | Severity | crash | ||
| Status | resolved | Resolution | won't fix | ||
| Product Version | 3.0.8 | ||||
| Summary | 0001859: NativeSDK - Exception Crash - ARM | ||||
| Description | Whenever I use an exception in my project, a crash happens and catch() is not executed. However, this only happens on Android devices armeabi-v7a, on other platforms, it doesn't. Investigating I found that the crash only happens when the Noesis.so library is linked and some exception handled happens. No code is needed to start noesis, just link the library and any exception thrown will make the program close. Cases that do not crash:
I tried to find out for myself what is happening, but without success. I removed Noesis.so for x86_64 because the file got big and Mantis won't let me attach the file with the example. | ||||
| Steps To Reproduce | I'm using Android Studio 4.1.1 to build the sample project. I did a test project so that you can reproduce the problem. In the NativeEngine.cpp file I put a simple exception code: In the CMakeList.txt file I put the link for lib 3.0.8 as follows: So to reproduce, just leave the lib linked and the exception enabled. | ||||
| Attached Files | |||||
| Platform | Android | ||||
|
I made a folder in Google Drive with examples why I can't upload files larger than 5MB here; I compiled the project in three different ways, I also put the project code in the folder. There are then the following APKs: game-noesis-exception.apk (will crash) Link to folder: https://drive.google.com/drive/folders/19Ge7L9h0taIy9wFqpTr07O5dhxJHqA2L?usp=sharing |
|
|
I don't know if this is related to the fact that we compile NoesisGUI without exceptions. I will find time to test this, could you please paste the call stack and the crash information? Thanks! |
|
|
I will attach a screenshot with the content of the callstack, android studio will not let me copy as text. As you can see, when the throw happens, a SIGABRT happens too. Crash details from Android Logcat: 12-11 13:53:46.443 9667-9680/br.com.daldegam.game A/libc: Fatal signal 6 (SIGABRT), code -6 in tid 9680 (GLThread 21503) |
|
|
If you want to compile lib with -fexceptions, I can try and give you feedback if it has been resolved. Thanks! |
|
|
Hi! I would like to know if there is any prediction for this problem to be evaluated and solved. We have the project paused due to this impediment. Thanks in advance. |
|
|
Hi! Unfortunately we cannot enable exceptions in our official builds and this seems to be related to mixing libraries with and without exceptions (it seems to be related to https://github.com/android/ndk/issues/1192 where a workaround is commented but I haven't tried). Having access to the source code will solve this, in fact with the source code you will probably use noesis as a static lib. Not sure at what stage of licensing you are but if you are open to negotiate a license with source code, please let us know. |
|
|
Yes, we are interested, I will contact Andrea by email. |
|
| Date Modified | Username | Field | Change |
|---|---|---|---|
| 2020-12-11 12:45 | daldegam | New Issue | |
| 2020-12-11 12:45 | daldegam | Tag Attached: armeabi-v7a | |
| 2020-12-11 12:45 | daldegam | Tag Attached: C++ | |
| 2020-12-11 12:45 | daldegam | Tag Attached: OpenGL | |
| 2020-12-11 12:45 | daldegam | File Added: gamecore.7z | |
| 2020-12-11 12:47 | daldegam | Relationship added | has duplicate 0001858 |
| 2020-12-11 13:22 | daldegam | Note Added: 0006888 | |
| 2020-12-11 16:28 | jsantos | Assigned To | => jsantos |
| 2020-12-11 16:28 | jsantos | Status | new => assigned |
| 2020-12-11 16:29 | jsantos | Note Added: 0006890 | |
| 2020-12-11 16:29 | jsantos | Status | assigned => feedback |
| 2020-12-11 17:00 | daldegam | File Added: callstack.png | |
| 2020-12-11 17:00 | daldegam | Note Added: 0006892 | |
| 2020-12-11 17:00 | daldegam | Status | feedback => assigned |
| 2020-12-11 17:05 | daldegam | Note Added: 0006893 | |
| 2021-03-24 15:45 | daldegam | Note Added: 0007101 | |
| 2021-03-24 16:39 | jsantos | Note Added: 0007103 | |
| 2021-03-24 16:39 | jsantos | Status | assigned => feedback |
| 2021-03-24 19:20 | daldegam | Note Added: 0007104 | |
| 2021-03-24 19:20 | daldegam | Status | feedback => assigned |
| 2026-05-06 21:36 | jsantos | Status | assigned => resolved |
| 2026-05-06 21:36 | jsantos | Resolution | open => won't fix |