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
Regular Contributor
Posts: 51
Registered: ‎08-07-2013
My Device: blackberry z10
My Carrier: asif

Re: image display

when app is crash this error is show

Process 23077093 (image_example) terminated SIGSEGV code=1 fltno=11 ip=797d634c(/base/usr/lib/qt4/lib/libQtCore.so.4.8.5@_ZN9QIODevice5writeEPKcx+0x17) mapaddr=000d634c. ref=0000004c

Regular Contributor
Posts: 56
Registered: ‎06-25-2012
My Device: non-blackberry user
My Carrier: Airtel

Re: image display

Hello asif,

 

Have you registered your WebImageViewer class in your application.cpp file ??

 

Regards,

Regular Contributor
Posts: 51
Registered: ‎08-07-2013
My Device: blackberry z10
My Carrier: asif

Re: image display

yes i m register webimage view class.

qmlRegisterType<WebImageView>("org.labsquare", 1, 0, "WebImageView");

 

when app crash then this error show also

QIODevice::write: ReadOnly device

Regular Contributor
Posts: 56
Registered: ‎06-25-2012
My Device: non-blackberry user
My Carrier: Airtel

Re: image display

hi i am able to use the control without any issues are you sure the problem is not from somewhere else !!
Regular Contributor
Posts: 51
Registered: ‎08-07-2013
My Device: blackberry z10
My Carrier: asif

Re: image display

when we cannot use web image view then app run properly 

 

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

Re: image display

use the debugger to check where the crash occurs.
----------------------------------------------------------
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
Developer
Posts: 6,152
Registered: ‎07-05-2012
My Device: Playbook, Dev Alpha C, Z10 LE, Z30
My Carrier: Orange

Re: image display

May or may not be relevant in this case but there are reports of large images crashing WebView...

 

http://supportforums.blackberry.com/t5/Native-Development/Large-image-in-webview-crashes-app/td-p/26...


If you've been helped click on Like Button, if you've been saved buy the app. Smiley Happy

Developer of stokLocker, Sympatico and Super Sentences.