View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0001858 | NoesisGUI | C++ SDK | public | 2020-12-11 12:39 | 2020-12-11 12:49 |
Reporter | daldegam | Assigned To | |||
Priority | normal | Severity | crash | Reproducibility | always |
Status | new | Resolution | open | ||
Product Version | 3.0.8 | ||||
Target Version | Fixed in Version | ||||
Summary | 0001858: 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: - Noesis.so linked but without exceptions; - Noesis.se not linked with or without exceptions; I tried to find out for myself what is happening, but without success. I did a test project so that you can reproduce the problem. In the file NativeEngine.cpp there is this code snippet: try { throw std::runtime_error("Noesis Team, look here!"); } catch (const std::exception &exp) { __android_log_print(ANDROID_LOG_ERROR, "Game", "Normal exception: %s", exp.what()); } In the CMakeList.txt file I placed the link for lib 3.0.8 as follows: ${CMAKE_CURRENT_SOURCE_DIR}../../app/src/main/jniLibs/${CMAKE_ANDROID_ARCH_ABI}/libNoesis.so So to reproduce, just leave the lib linked and the exception enabled. | ||||
Tags | armeabi-v7a, C++, OpenGL | ||||
Platform | |||||
This issue was duplicated when the error occurred to send the sample project. Please can delete/close it. The new issue is: https://www.noesisengine.com/bugs/view.php?id=1859 |
|
Date Modified | Username | Field | Change |
---|---|---|---|
2020-12-11 12:39 | daldegam | New Issue | |
2020-12-11 12:39 | daldegam | Tag Attached: armeabi-v7a | |
2020-12-11 12:39 | daldegam | Tag Attached: C++ | |
2020-12-11 12:39 | daldegam | Tag Attached: OpenGL | |
2020-12-11 12:47 | daldegam | Relationship added | duplicate of 0001859 |
2020-12-11 12:49 | daldegam | Note Added: 0006887 |