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

XmlListModel - Loading large XML file causes crash



  • Is there any memory limit when using xmllistmodel?
    I need to load a somewhat large xml file(i think - ~4mb) on the first time the app is launched, so i can create a DB and save some of that info.
    The problem is that the app is crashing during the xmllistmodel load (it's status doesnt even get to 'ready').
    I've tried to divide that file in 7-8 smaller files (~500kb) and load them sequentially, but it crashed on the 4º-5º load.
    Any ideas?

    Thank you.



  • welcome to devnet

    You should some more details such as error messages, environment, OS, memory restrictions, ... That might help others to understand better where an issue could be.



  • Thank you.
    I'm using qt 4.7.4 and it works fine in the simulator, it only crashes on the actual devices ( C7 and E7).
    Everytime it crashes the only message i get is "Thread has crashed: Thread XXXX has panicked. Category: USER; Reason: 0".


Log in to reply