Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Native Development

Reply
Highlighted
Developer
Posts: 74
Registered: ‎05-31-2013
My Device: BlackBerry Z30
Accepted Solution

Asynchronous loading of "asset" schema is unsupported

My app was compiling just fine, and then suddenly, I get this error.

 

bb::cascades::QmlDocument: error when loading QML from: /main.qml: asynchronous loading of "asset" schema is unsupported

 Anyone know what it means?



Like this answer? Give it a
Visit my blog for programming help, guides and common issues.
Developer
Posts: 6,473
Registered: ‎12-08-2010
My Device: PlayBook, Z10
My Carrier: none

Re: Asynchronous loading of "asset" schema is unsupported

You presumably switched the url for something from a local file (asset: or fileSmiley Happy to a remote one (http: or similar). That requires that the file be loaded "asynchronously", and Cascades doesn't support that yet. Does that help?

Peter Hansen -- (BB10 and dev-related blog posts at http://peterhansen.ca.)
Author of White Noise and Battery Guru for BB10 and for PlayBook | Get more from your battery!
Developer
Posts: 74
Registered: ‎05-31-2013
My Device: BlackBerry Z30

Re: Asynchronous loading of "asset" schema is unsupported

That was my guess, but everything that is referenced (aside from what's in the WebView) is either asset:///... or "contact.qml"

Or do you think the webview is what's causing the issue?


Like this answer? Give it a
Visit my blog for programming help, guides and common issues.
Developer
Posts: 6,473
Registered: ‎12-08-2010
My Device: PlayBook, Z10
My Carrier: none

Re: Asynchronous loading of "asset" schema is unsupported

I wouldn't think the WebView could be responsible as it's more than capable of async loading.

I guess you have to start removing pieces until the message goes away, then add in the last piece you removed (which was probably the cause) and start experimenting with why it's a problem.

Peter Hansen -- (BB10 and dev-related blog posts at http://peterhansen.ca.)
Author of White Noise and Battery Guru for BB10 and for PlayBook | Get more from your battery!
Developer
Posts: 74
Registered: ‎05-31-2013
My Device: BlackBerry Z30

Re: Asynchronous loading of "asset" schema is unsupported

I have a tabbedPane loading several QML files. Is that being loaded asynchronously?


Like this answer? Give it a
Visit my blog for programming help, guides and common issues.
Developer
Posts: 74
Registered: ‎05-31-2013
My Device: BlackBerry Z30

Re: Asynchronous loading of "asset" schema is unsupported

I found the problem. I have a TabbedPane with several tabs. One of those tabs somehow had a reference for hte parent.

 

In the parent, there was

//Home.qml
{...}
Tab {
   Child {
   }
}

//Child.qml
{...}
attachedObjects: [
   Home {
   }
]

 I'm not sure how that happened, as I don't remember doing it or for what purpose. Basically, it was trying to load the child, which loaded the parent, which loaded the child, etc.

 

(at least that's how I understand what's happening)

 

This was the only result that came up on google, so I hope this helps out anyone who might hit this issue in the future.



Like this answer? Give it a
Visit my blog for programming help, guides and common issues.