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: 257
Registered: ‎01-08-2013
My Device: Z10 LE
My Carrier: SiMobil

qmlRegisterUncreatableType crashing with QML live update

I'm using Battery sample. All works well, until I add

qmlRegisterUncreatableType<bb::device::BatteryChargingState>("bb.device", 1, 0, "BatteryChargingState", "");

 At that point whenever I use QML live update (which works well otherwise) app crashes, throwing:

 

Process 1914167538 (someapp) terminated SIGSEGV code=1 fltno=11 ip=786b0ff2(/base/usr/lib/qt4/lib/libQtDeclarative.so.4.8.5@_ZN24QDeclarativeScriptString14setScopeObjectEP7QObject+0xb79) mapaddr=001b0ff2. ref=00000001 bdslot=1

 App compiles and runs normaly until qml update. If I remove that line all works well, but I would like to use that class to keep it readable.

Developer
Posts: 16,992
Registered: ‎07-29-2008
My Device: Z10 LE, Z30, Passport
My Carrier: O2 Germany

Re: qmlRegisterUncreatableType crashing with QML live update

sounds like a bug to me. see if you can reproduce it with a small sample project and report in in jira https://www.blackberry.com/jira/
----------------------------------------------------------
feel free to press the like button on the right side to thank the user that helped you.
please mark posts as solved if you found a solution.
@SimonHain on twitter