View Issue Details

IDProjectCategoryView StatusLast Update
0001858NoesisGUIC++ SDKpublic2020-12-11 12:49
ReporterdaldegamAssigned To 
Status newResolutionopen 
Product Version3.0.8 
Target VersionFixed in Version 
Summary0001858: NativeSDK - Exception Crash - ARM
DescriptionWhenever 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 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:
- linked but without exceptions;
- 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:

So to reproduce, just leave the lib linked and the exception enabled.
Tagsarmeabi-v7a, C++, OpenGL


duplicate of 0001859 assignedjsantos NativeSDK - Exception Crash - ARM 




2020-12-11 12:49

reporter   ~0006887

This issue was duplicated when the error occurred to send the sample project.

Please can delete/close it.

The new issue is:

Issue History

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