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. New to the forum? Please visit the ‘Getting Started’ link below.
inside custom component

Native Development

Reply
New Developer
allan175
Posts: 11
Registered: ‎11-07-2012
My Carrier: Orange

Playbook version ok, BB10 crashes almost immediately (before main)

We have our development system set up to build/install from the command line (in Linux).

 

Playbook development is fine *but* the apps produced crash on a BB10 Dev Alpha device, the strange thing is that they run some code before crashing but the crash occurs before main is reached. It seems to be in the pre-main construction of the globally scoped objects. It mentions an offset from getFacet when it dies with a segmentation violation.

 

Any idea what differences between Playbook/BB10 would cause this?

Please use plain text.
New Developer
allan175
Posts: 11
Registered: ‎11-07-2012
My Carrier: Orange

Re: Playbook version ok, BB10 crashes almost immediately (before main)

Replying to my own post, but I finally found the problem!

 

It turns out that the BB10's version of libstdc++.so.6 was killing the app before it reached main().

 

My solution was to include the NDK version of the library in my bar-descriptor.xml:-

  <asset path="../bbndk-2.1.0/target/qnx6/armle-v7/lib/libstdc++.so.6" type="Qnx/Elf">lib/libstdc++.so.6</asset>

and, to make sure it uses this file:-

  <env var="LD_LIBRARY_PATH" value="app/native/lib"/>

 

Now the BAR file works fine on both Playbook and BB10.

 

Hoepfully this might help someone else!

Please use plain text.