Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. XmlListModel - Loading large XML file causes crash
Forum Updated to NodeBB v4.3 + New Features

XmlListModel - Loading large XML file causes crash

Scheduled Pinned Locked Moved QML and Qt Quick
3 Posts 2 Posters 1.8k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    Sypter
    wrote on last edited by
    #1

    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.

    1 Reply Last reply
    0
    • K Offline
      K Offline
      koahnig
      wrote on last edited by
      #2

      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.

      Vote the answer(s) that helped you to solve your issue(s)

      1 Reply Last reply
      0
      • S Offline
        S Offline
        Sypter
        wrote on last edited by
        #3

        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".

        1 Reply Last reply
        0

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved