Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

qt app crash on iphone(iOS 8 & 10)



  • Qt app run MAC is ok, but run iphone crash.

    QSettings settings("params.ini", QSettings::IniFormat);
    QString group1 = "A";
    QString group2 = "B";
    settings.beginGroup(group1);
    if(settings.allKeys().isEmpty()) <------------------------------------- crash !!!!
    {}

    console log:
    malloc: *
    ** error for object 0x170009c00: Invalid pointer dequeued from free list
    *** set a breakpoint in malloc_error_break to debug

    What is the reason for this mistake?
    What does the phrase "Invalid pointer dequeued from free list" mean?
    Why is there no problem running on MAC, Is the configuration on iPhone wrong?


Log in to reply