If you are using Internet Explorer, please remove blackberry.com from your compatibility view settings.

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
Contributor
rrenna
Posts: 13
Registered: ‎05-02-2012
My Device: Playbook
My Carrier: Rogers

Cascades app crashes on Debug (but not run) in Simulator

I'm trying to setup native Cascades development, and I've gotten to the point where my hello world app runs on the new BB10 Simulator in vmwareFusion. The roadblock I'm not facing is a crash (ntox86-gdb.exe) when trying to debug the same app in the simulator. The Console prints this out: 
 

MsgNak received - resending
Remote target is little-endian
No inferior.
warning: Corrupted shared library list: 0x0 != 0x882e800
warning: Could not load shared library symbols for 9 libraries, e.g. libQtDeclarative.so.4.
Use the "info sharedlibrary" command to see the complete listing.
Do you need "set solib-search-path" or "set sysroot"?
../../gdb/utils.c:1246: internal-error: virtual memory exhausted: can't allocate 1647386432 bytes.
A problem internal to GDB has been detected,
further debugging may prove unreliable.
Quit this debugging session? (y or n) [answered Y; input not from terminal]
../../gdb/utils.c:1246: internal-error: virtual memory exhausted: can't allocate 1647386432 bytes.
A problem internal to GDB has been detected,
further debugging may prove unreliable.
Create a core file of GDB?
This application has requested the Runtime to terminate it in an unusual way.
Please contact the application's support team for more information.

 

Then the app crashes in the simulator. Is anyone else experiencing this? any tips?

Please use plain text.
Visitor
jfewer
Posts: 1
Registered: ‎04-21-2012
My Device: Torch 9800
My Carrier: Rogers

Re: Cascades app crashes on Debug (but not run) in Simulator

Try adding all the missing Qt libs in assets so the bar descriptor has correct paths.. Encountered this error tonight. You are probably seeing a empty shell app start up in the simulator with just the BlackBerry watermark. 

 

I'll post more detail tomorrow. 

 

John 

Please use plain text.
New Developer
prabhjot85
Posts: 13
Registered: ‎02-04-2012
My Device: Playbook 32GB
My Carrier: NA

Re: Cascades app crashes on Debug (but not run) in Simulator

Has anyone got solution to this? I'm also stuck with same error.

Please use plain text.
Administrator
MSohm
Posts: 14,362
Registered: ‎07-09-2008
My Device: BlackBerry Z30, BlackBerry PlayBook
My Carrier: Bell

Re: Cascades app crashes on Debug (but not run) in Simulator

This is caused by an issue with the Cascades SDK.  Our development team is aware of the problem and is working on a fix.  I'll post here when I have more information to share.

Mark Sohm
BlackBerry Development Advisor

Please refrain from posting new questions in solved threads.
Problem solved? Click the Accept As Solution button.
Found a bug? Report it using Issue Tracker
Please use plain text.
Administrator
MSohm
Posts: 14,362
Registered: ‎07-09-2008
My Device: BlackBerry Z30, BlackBerry PlayBook
My Carrier: Bell

Re: Cascades app crashes on Debug (but not run) in Simulator

A new KB article has just been created that should provide the fix for this issue.

 

ntox86-gdb.exe Stops Responding when Debugging a Cascades Application

 

Please give that a try and let me know your results.

Mark Sohm
BlackBerry Development Advisor

Please refrain from posting new questions in solved threads.
Problem solved? Click the Accept As Solution button.
Found a bug? Report it using Issue Tracker
Please use plain text.
Contributor
A7omic
Posts: 48
Registered: ‎11-03-2011
My Device: Playbook
My Carrier: None

Re: Cascades app crashes on Debug (but not run) in Simulator

[ Edited ]

I tried this without success. I am able to step though until I hit my code to open a db. 



 mDb = QSqlDatabase::addDatabase("QSQLITE") 

 

This worked fine in the example app quotes. 

 

Here is my console output: 

 

MsgNak received - resending
Remote target is little-endian
No source file named quotesdbhelper.cpp.
warning: Corrupted shared library list: 0x0 != 0x8c87800
warning: Could not load shared library symbols for 9 libraries, e.g. libQtDeclarative.so.4.
Use the "info sharedlibrary" command to see the complete listing.
Do you need "set solib-search-path" or "set sysroot"?
warning: Corrupted shared library list: 0x0 != 0x8c87800
warning: Corrupted shared library list: 0x0 != 0x8c87800
warning: Corrupted shared library list: 0x0 != 0x8c87800
warning: Corrupted shared library list: 0x0 != 0x8c87800
warning: Corrupted shared library list: 0x0 != 0x8c87800
warning: Corrupted shared library list: 0x0 != 0x8c87800
warning: Corrupted shared library list: 0x0 != 0x8c87800
warning: Corrupted shared library list: 0x0 != 0x8c87800
[New pid 609525855 tid 2]
[New pid 609525855 tid 3]
[New pid 609525855 tid 4]
warning: Corrupted shared library list: 0x0 != 0x8c87800
warning: Could not load shared library symbols for libHwEGL.so.
Do you need "set solib-search-path" or "set sysroot"?
warning: Corrupted shared library list: 0x0 != 0x8c87800
warning: Could not load shared library symbols for 3 libraries, e.g. libegl_gallium.so.
Use the "info sharedlibrary" command to see the complete listing.
Do you need "set solib-search-path" or "set sysroot"?
warning: Corrupted shared library list: 0x0 != 0x8c87800
warning: Could not load shared library symbols for libHwGLESv2.so.
Do you need "set solib-search-path" or "set sysroot"?
[New pid 609525855 tid 5]
[New pid 609525855 tid 6]
[New pid 609525855 tid 7]
warning: Corrupted shared library list: 0x0 != 0x8c87800
warning: Could not load shared library symbols for libqsqlite.so.
Do you need "set solib-search-path" or "set sysroot"? 

Please use plain text.
Administrator
MSohm
Posts: 14,362
Registered: ‎07-09-2008
My Device: BlackBerry Z30, BlackBerry PlayBook
My Carrier: Bell

Re: Cascades app crashes on Debug (but not run) in Simulator

It looks like there are a number of corrupt libraries.  Could you try to re-install the BlackBerry NDK, rebuild and try debugging again?

Mark Sohm
BlackBerry Development Advisor

Please refrain from posting new questions in solved threads.
Problem solved? Click the Accept As Solution button.
Found a bug? Report it using Issue Tracker
Please use plain text.
Visitor
dmeetrich
Posts: 1
Registered: ‎05-11-2012
My Device: BB Playbook
My Carrier: MTS

Re: Cascades app crashes on Debug (but not run) in Simulator

I have the same issue... Here is my output:

 

warning: Corrupted shared library list: 0x0 != 0x8851800
warning: Could not load shared library symbols for 2 libraries, e.g. libQtGui.so.4.
Use the "info sharedlibrary" command to see the complete listing.
Do you need "set solib-search-path" or "set sysroot"?
warning: Corrupted shared library list: 0x0 != 0x8851800
warning: Corrupted shared library list: 0x0 != 0x8851800
warning: Corrupted shared library list: 0x0 != 0x8851800
warning: Corrupted shared library list: 0x0 != 0x8851800
warning: Corrupted shared library list: 0x0 != 0x8851800
warning: Corrupted shared library list: 0x0 != 0x8851800
warning: Corrupted shared library list: 0x0 != 0x8851800
warning: Corrupted shared library list: 0x0 != 0x8851800
info sharedlibrary
warning: Corrupted shared library list: 0x0 != 0x8851800
From To Syms Read Shared Object Library
0xb117b000 0xb1204670 Yes C:/bbndk-10.0.099/target/qnx6/x86/usr/lib/ldqnx.so.2
0xb8ba3000 0xb8bd58e0 Yes C:/bbndk-10.0.099/target/qnx6/x86/lib/libm.so.2
0xb83d0000 0xb83fd7c8 Yes C:/bbndk-10.0.099/target/qnx6/x86/lib/libsocket.so.3
0xb8323000 0xb839f438 Yes C:/bbndk-10.0.099/target/qnx6/x86/usr/lib/libsqlite3.so.1
0xb826b000 0xb8295464 Yes C:/bbndk-10.0.099/target/qnx6/x86/usr/lib/libbps.so.3
0xb8240000 0xb8251114 Yes C:/bbndk-10.0.099/target/qnx6/x86/usr/lib/libscreen.so.1
0xb8217000 0xb823d408 Yes C:/bbndk-10.0.099/target/qnx6/x86/usr/lib/libpng14.so.0
0xb8200000 0xb821512c Yes C:/bbndk-10.0.099/target/qnx6/x86/usr/lib/libz.so.2
No libQtGui.so.4
No libQtCore.so.4
0xb829a000 0xb8301a58 Yes C:/bbndk-10.0.099/target/qnx6/x86/lib/libcpp.so.4
0xb8555000 0xb86f3598 Yes C:/bbndk-10.0.099/target/qnx6/x86/usr/lib/libicui18n.so.46
0xb8256000 0xb825b0e4 Yes C:/bbndk-10.0.099/target/qnx6/x86/lib/libpps.so.1
0xb843d000 0xb85170c8 Yes C:/bbndk-10.0.099/target/qnx6/x86/usr/lib/libiconv.so.1
0xb8a50000 0xb8b7b420 Yes C:/bbndk-10.0.099/target/qnx6/x86/usr/lib/libicuuc.so.46
0xbac00000 0xbbaa21c8 Yes C:/bbndk-10.0.099/target/qnx6/x86/usr/lib/libicudata.so.46
0xb8be3000 0xb8c439f8 Yes C:/bbndk-10.0.099/target/qnx6/x86/lib/libcpp-ne.so.4

Please use plain text.
Contributor
A7omic
Posts: 48
Registered: ‎11-03-2011
My Device: Playbook
My Carrier: None

Re: Cascades app crashes on Debug (but not run) in Simulator

Uninstalled, deleted remaing files, Installed again, Cleaned Project, Built Project

I still got the same errors. I am getting them on the example projects I loaded as, the only difference is my project is bombing and the example does not. The bombing could of course be something I did but there errors obviously are not.
Please use plain text.
Contributor
A7omic
Posts: 48
Registered: ‎11-03-2011
My Device: Playbook
My Carrier: None

Re: Cascades app crashes on Debug (but not run) in Simulator

 I am now running other programs like the tutorial I built and it is now failing too when it worked before.  

 

What is strange though is that it is dumping warnings on files that are from my other projects:

 

MsgNak received - resending
Remote target is little-endian
No source file named trackerapp.cpp.
No source file named quotesdbhelper.cpp.
No source file named trackerapp.cpp.
warning: Corrupted shared library list: 0x0 != 0x8e48800
warning: Could not load shared library symbols for 9 libraries, e.g. libQtDeclarative.so.4.
Use the "info sharedlibrary" command to see the complete listing.
Do you need "set solib-search-path" or "set sysroot"?

This application has requested the Runtime to terminate it in an unusual way.
Please contact the application's support team for more information.
../../gdb/utils.c:1246: internal-error: virtual memory exhausted: can't allocate 1647943488 bytes.
A problem internal to GDB has been detected,
further debugging may prove unreliable.
Quit this debugging session? (y or n) [answered Y; input not from terminal]
../../gdb/utils.c:1246: internal-error: virtual memory exhausted: can't allocate 1647943488 bytes.
A problem internal to GDB has been detected,
further debugging may prove unreliable.
Create a core file of GDB? (y or n) [answered Y; input not from terminal]
 

Please use plain text.