[solved]I have just got a thread crashed when I test my app



  • @Thread has crashed: Thread 0x415 has panicked. Category: AlignedBlockAllo; Reason: -4
    Thread has crashed: Thread 0x416 has panicked. Category: AlignedBlockAllo; Reason: -4
    Thread has crashed: Thread 0x41d has panicked. Category: AlignedBlockAllo; Reason: -4
    Thread has crashed: Thread 0x41f has panicked. Category: AlignedBlockAllo; Reason: -4
    Thread has crashed: Thread 0x426 has panicked. Category: AlignedBlockAllo; Reason: -4@

    What is the meaning of this?


  • Moderators

    You have to give a bit more information of what you are doing.

    There has been also a "bug report.":https://bugreports.qt-project.org/browse/QTBUG-18077 See for a correlation with your problem.



  • Thank you. I think I encounter the same situation as the link you provide. Actually I am doing a IAP wrapper in c++, and regist it an QML item. The bug will occur only if I open and close iap page very often. So I guess I can ignore this and leave it alone.

    Thank you.



  • PageStack::pop ( page, immediate ) does not free the memory, so I should not push the qml file each time.



  • I just read the pagestack manual and find that when it pops, it do destory the current page. I am just wondering why there is "Thread has crashed" error. Do I need to handle the c++ item that I add manually?



  • After all consideration, I put the c++ Item out of the page and put them into the main.qml.
    It will slow down the app starting time, but solve the problem as I can only load the c++ item once.


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.