My Qt Quick app crashes on iOS device [Solved]



  • Hi,
    I'm facing a weird problem on iOS. I'm porting an existing app which runs perfectly on Desktop and Android and even iOS Simulator. However on iOS device it crashes immediately after start with the following printout:

    Starting remote process.
    QML debugging is enabled. Only use this in a safe environment.
    libc++abi.dylib: terminating with uncaught exception of type QString
    program received signal 6, thread:2217f;qaddr:39705ad0;00:00000000;01:00000000;02:00000000;03:03000000;04:06000000;05:dc597039;06:40186f39;07:a8739402;08:10615d17;09:6f662074;0a:74006f39;0b:46420f00;0c:48010000;0d:9c739402;0e:97ecef36;0f:f0dde736;10:10000000;metype:5;mecount:2;medata:10003;medata:6;
    program received signal 6, thread:2217f;qaddr:39705ad0;00:00000000;01:00000000;02:00000000;03:ffffffff;04:06000000;05:dc597039;06:40186f39;07:88739402;08:10615d17;09:7990ef36;0a:74006f39;0b:46420f00;0c:48010000;0d:7c739402;0e:97ecef36;0f:f0dde736;10:10000000;metype:5;mecount:2;medata:10003;medata:6;
    program received signal 5, thread:2217f;qaddr:39705ad0;00:00000000;01:00000000;02:00000000;03:01000000;04:98739402;05:ffffffff;06:40186f39;07:a8739402;08:10615d17;09:7990ef36;0a:74006f39;0b:46420f00;0c:30000000;0d:90739402;0e:abc9e136;0f:aac9e136;10:30000040;metype:6;mecount:2;medata:1;medata:defe;
    program received signal 5, thread:2217f;qaddr:39705ad0;00:00000000;01:00000000;02:00000000;03:01000000;04:98739402;05:ffffffff;06:40186f39;07:a8739402;08:10615d17;09:7990ef36;0a:74006f39;0b:46420f00;0c:30000000;0d:90739402;0e:abc9e136;0f:aac9e136;10:30000040;metype:6;mecount:2;medata:1;medata:defe;
    program received signal 5, thread:2217f;qaddr:39705ad0;00:00000000;01:00000000;02:00000000;03:01000000;04:98739402;05:ffffffff;06:40186f39;07:a8739402;08:10615d17;09:7990ef36;0a:74006f39;0b:46420f00;0c:30000000;0d:90739402;0e:abc9e136;0f:aac9e136;10:30000040;metype:6;mecount:2;medata:1;medata:defe;
    program received signal 5, thread:2217f;qaddr:39705ad0;00:00000000;01:00000000;02:00000000;03:01000000;04:98739402;05:ffffffff;06:40186f39;07:a8739402;08:10615d17;09:7990ef36;0a:74006f39;0b:46420f00;0c:30000000;0d:90739402;0e:abc9e136;0f:aac9e136;10:30000040;metype:6;mecount:2;medata:1;medata:defe;
    Run ended.
    

    Any ideas how to fix this? I'm able to run another Qt Quick app on my iOS device without problems (a plain Hello world app). The failing app uses some more Qt modules (multimedia and sql) but the error message doesn't seem to be related to that.
    I'm running Qt 5.4.1 and latest Xcode 6.3 on OS X Yosemite.



  • I think to have the same problem.
    Please have a look:
    https://bugreports.qt.io/browse/QTBUG-44705



  • It turns out that this was error in my code. I was trying to write a file to application's current directory, which isn't possible in iOS. Surprisingly, it's possible in iOS Simulator.

    @mrdebug : I was able to find the problem quite easily thanks to debugger, which seems to work quite well on iOS. Perhaps try to place a breakpoint on the first line in main.cpp and see where it crashes.


Log in to reply
 

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