[COCOS2D-X 3.2] HAPPENED ERROR "FATAL SIGNAL 11 (SIGSEGV) AT 0 × 00000000" IN ANDROID

  • Giron042
    Likes 0

    Problem Description

    Im getting a fatal signal 11 Error. In my logcat it says 

    release path = BG-HD.png

    asset Is nullptr

    fatal signal 11 0x00000000. ..

     

    I ran ndk stack and it's pointing my background (BG-HD.Png) setposition in my main menu class for the crash. I do I fix it

  • Giron042
    Likes 0

    *Im import my project from my xcode project to android

  • Sonar Systems admin
    Likes 0

    Did you follow our tutorial?

  • Giron042
    Likes 0

    Yes I did follow your tutorial

  • Sonar Systems admin
    Likes 0

    Which one?

  • Giron042
    Likes 0

    I followed your ebook

  • Sonar Systems admin
    Likes 1

    Could you send us a screenshot of the problem please.

  • Giron042
    Likes 0

    Im not able to. My ndk stack says my crash comes from.

    background→ setPosition(Point(visiblesize.width * 0.5 + delta.x, visiblesize.height * 0.5 + delta.y)); (MainMenu.Cpp)

    Auto layer = MainMenu::create (); (MainMenu.cpp)

    CREATE_FUNC (MainMenu); (MainMenu.h)

    auto scene = MainMenu::createScene (); (AppDelegate.cpp)

    If (! applicationDidFinishLaunching() )

    {

    return 0;

    } (CCApplication);

     

    cocos2d::Application::getInstance()→ run(); (javaactivity.cpp)

     

  • Sonar Systems admin
    Likes 1

    Does a fresh project work? 

  • Giron042
    Likes 0

    Yes it does. I think it maybe memory/address management with a null pointer dealing with my background(BG-HD.png) in my mainmenu Class. Just don't know how to fix the bug

  • Sonar Systems admin
    Likes 1

    Could you send us your main menu code

  • priincemajor
    Likes 0

    I’ve got the same error, but me i have lot of scenes.

     

    It’s working great on windows but on android, when i try to access to the last scene i have this message : 

    03-20 16:02:41.101 22153-22175/Projects.ImpaktGames.Beta A/libc: Fatal signal 11 (SIGSEGV), code 1, fault addr 0x38 in tid 22175 (GLThread 4096)

     

    can you help me please??

    I am using cocos2d-x 3.10 C++


  • Sonar Systems admin
    Likes 0

    Do 2 simple scenes work on Android for you?

Login to reply