Hello all,

Since I updated to 5.5, I cannot launch my application by opening an email attachment or such methods, for file extensions that have been registered for my app in info.plist

I can open the documents only if the app is already running.

I can see in the app's log the following message:

(...)
Nov 13 19:03:39 iPad-maitai com.apple.mdt[483] <Notice>: Copy /var/mobile/Library/Mail/imap-xxx...@gmail.com@imap.gmail.com/INBOX.imapmbox/Attachments/2126/2/530_1.KAP -> /private/var/mobile/Containers/Data/Application/53F9684F-8FF2-4A10-A9BD-87A93C97FB11/Documents/Inbox Nov 13 19:03:39 iPad-maitai kernel[0] <Notice>: xpcproxy[484] Container: /private/var/mobile/Containers/Data/Application/53F9684F-8FF2-4A10-A9BD-87A93C97FB11 (sandbox) Nov 13 19:03:39 iPad-maitai qtVlm[484] <Warning>: didFinishLaunchingWithOptions option happen Nov 13 19:03:39 iPad-maitai qtVlm[484] <Warning>: url received: /private/var/mobile/Containers/Data/Application/53F9684F-8FF2-4A10-A9BD-87A93C97FB11/Documents/Inbox/530_1.KAP Nov 13 19:03:40 iPad-maitai kernel[0] <Notice>: Sandbox: qtVlm(484) deny(1) file-read-data /dev/tty Nov 13 19:03:40 iPad-maitai qtVlm[484] <Warning>: qwarning received: starting up nslogmessage Nov 13 19:03:40 iPad-maitai qtVlm[484] <Warning>: qwarning received: step 2 Nov 13 19:03:40 iPad-maitai qtVlm[484] <Warning>: qwarning received: step 3 Nov 13 19:03:40 iPad-maitai qtVlm[484] <Warning>: qwarning received: step 4 Nov 13 19:03:40 iPad-maitai qtVlm[484] <Warning>: <CATransformLayer: 0x15da1ee0> - changing property masksToBounds in transform-only layer, will have no effect Nov 13 19:03:40 iPad-maitai qtVlm[484] <Warning>: <CATransformLayer: 0x15da4680> - changing property masksToBounds in transform-only layer, will have no effect Nov 13 19:03:40 iPad-maitai qtVlm[484] <Warning>: <CATransformLayer: 0x15d50730> - changing property masksToBounds in transform-only layer, will have no effect Nov 13 19:03:40 iPad-maitai qtVlm[484] <Warning>: qwarning received: step 5 just before qApp->exec() Nov 13 19:03:41 iPad-maitai kernel[0] <Notice>: 024305.657672 wlan0.W[123] AWDL MODE: OFF Nov 13 19:03:57 iPad-maitai backboardd[63] <Warning>: CoreAnimation: updates deferred for too long Nov 13 19:03:59 iPad-maitai SpringBoard[48] <Warning>: Forcing crash report of <FBApplicationProcess: 0x192412a0; qtVlm; pid: 484> (reason: 1, description: com.meltemus.qtvlm failed to scene-create after 19.68s (launch took 0.32s of total time limit 20.00s))
(...)

The full story is that I override QIOSApplicationDelegate to be able to manage didFinishLaunchingWithOptions and openUrl methods, but even if I remove my implementations and let Qt regular QIOSApplicationDelegate load, I get the same crash. I can see that main.cpp reaches the point where it calls qApp->exec() and stays stuck there until a timeout of some sort occurs. I can see that didFinishLaunchingWithOptions is called if I activate my own delegate, as you can read from the log. But anyway with or without my own delegate, I get this crash when I launch the app through a file opening. What is this message about CoreAnimation taking too long that I don't get when I launch the app normally?

If I launch the application by clicking on the icon, it works and takes less than 2secs to load, and it will even accept all incoming files through openUrl. didFinishLaunchingWithOptions is called at startup too, but with no url as expected.

I am sure that was working before with qt 5.4.2.

What should I do to make this working? And btw what is the recommended way to override QIOSApplicationDelegate in order not to be annoyed each time a new qt version is released, and still be able to handle openUrl and such?

Thanks in advance
Philippe Lelong
_______________________________________________
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest

Reply via email to