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
Posts: 19
Registered: ‎08-08-2012
My Device: Blackberry Z10
My Carrier: Vodafone

Signed app crashes when try to start.

I've made an app using Cascades. Ran it on my Z10 in debug mode. Works great!

Packed it and signed it. All is fine.

Installed it on my Z10 and tried to run it but it doesn't do nothing. It tries to start pushing to the first page on my Z10, crashes and backs up on the page where the app icon is shown.

 

Reistalled the debug version and it works just fine.

 

I am using OS 10.1.0.1880 leacked cause the mobile providers here didn't bother to push any official version of the 10.1 OS.

 

Any ideas?

 

Thanks guys!

Romulus-Iulian LESNIC
Developer
Posts: 410
Registered: ‎06-03-2010
My Device: Z10 Red
My Carrier: Free

Re: Signed app crashes when try to start.

[ Edited ]

Have you tryed to create a new project and copy/paste your code into it?

 

If you have started to develop your project from a long time and updated your SDK, the old project structure can cause a invalid and different compilation between debug and release.

 

Check specificaly your .pro, and your main declaration.

Contributor
Posts: 19
Registered: ‎08-08-2012
My Device: Blackberry Z10
My Carrier: Vodafone

Re: Signed app crashes when try to start.

Thank for the advise but I am using the same SDK.

Also, tried to copy/paste in a new project and same problem.

 

I always save my project in different stages of build. I packed the project for release in a starting stage and installed the .bar on the device. The app works fine, although it's not complite.

 

Any other idea, please!?!

Romulus-Iulian LESNIC
Developer
Posts: 410
Registered: ‎06-03-2010
My Device: Z10 Red
My Carrier: Free

Re: Signed app crashes when try to start.

Contributor
Posts: 19
Registered: ‎08-08-2012
My Device: Blackberry Z10
My Carrier: Vodafone

Re: Signed app crashes when try to start.

[ Edited ]

Ok. Seen that. Quite enlightened me but not so sure if I am right. I am using a read XML and a persistence memory. Guess I need to set shared file permission, yes?

Romulus-Iulian LESNIC
Developer
Posts: 410
Registered: ‎06-03-2010
My Device: Z10 Red
My Carrier: Free

Re: Signed app crashes when try to start.

Only if you need to access files outside your sandbox

Developer
Posts: 133
Registered: ‎05-10-2013
My Device: Blackberry Z10
My Carrier: -

Re: Signed app crashes when try to start.

Could you paste your bar-descriptor.xml file? I had the same problem earlier and solved it.

----------------------------------------
Remember to mark the thread as solved at the post that solved your problem, and if you like a post, like it!
Retired
Posts: 749
Registered: ‎12-16-2008
My Device: BlackBerry Z30
My Carrier: Bell

Re: Signed app crashes when try to start.

Make sure you are not trying to write to a folder you don't have write permission in, like the assets folder. If you packaged an asset into your app and want to be able to edit it in your app, copy it to the data folder first.

Paul Bernhardt
Application Development Consultant
BlackBerry
@PBernhardt

Did this answer your question? Please accept this post as the solution.
Found a bug? Report it to the Developer Issue Tracker
Contributor
Posts: 19
Registered: ‎08-08-2012
My Device: Blackberry Z10
My Carrier: Vodafone

Re: Signed app crashes when try to start.

Here is the bar-descriptor.xml I am using:

 

<?xml version="1.0" encoding="utf-8" standalone="no"?>
<qnx xmlns="http://www.qnx.com/schemas/application/1.0">
<id>com.example.M_W_O</id>
<name>M.W.O</name>
<versionNumber>1.0.0</versionNumber>
<packageLocale>en-CA,en-GB,en-US</packageLocale>
<buildId>1</buildId>
<description>Nice app.</description>
<author>Example Inc.</author>
<icon>
<image>dumb.png</image>
</icon>
<initialWindow>
<aspectRatio>portrait</aspectRatio>
<autoOrients>false</autoOrients>
<systemChrome>none</systemChrome>
<transparent>false</transparent>
</initialWindow>
<configuration name="Device-Debug">
<platformArchitecture>armle-v7</platformArchitecture>
<asset path="arm/o.le-v7-g/M_W_O" entry="true" type="Qnx/Elf">M_W_O</asset>
</configuration>
<configuration name="Device-Release">
<entryPointType>Qnx/Cascades</entryPointType>
<platformArchitecture>armle-v7</platformArchitecture>
<asset path="arm/o.le-v7/M_W_O.so" entry="true" type="Qnx/Elf">M_W_O.so</asset>
</configuration>
<configuration name="Device-Profile">
<platformArchitecture>armle-v7</platformArchitecture>
<asset path="arm-p/o.le-v7-g/M_W_O" entry="true" type="Qnx/Elf">M_W_O</asset>
</configuration>
<configuration name="Simulator-Debug">
<platformArchitecture>x86</platformArchitecture>
<asset path="x86/o-g/M_W_O" entry="true" type="Qnx/Elf">M_W_O</asset>
</configuration>
<asset path="assets">assets</asset>
<asset path="translations" dest="qm">
<include name="*.qm"/>
</asset>
<asset path="C:/Users/Romulus/Desktop/dumb.png">dumb.png</asset>
<permission system="true">run_native</permission>
<env var="LD_LIBRARY_PATH" value="app/native/lib:/usr/lib/qt4/lib"/>
</qnx>

Romulus-Iulian LESNIC
Contributor
Posts: 19
Registered: ‎08-08-2012
My Device: Blackberry Z10
My Carrier: Vodafone

Re: Signed app crashes when try to start.

[ Edited ]

Hello guys,

 

Sorry for not writing any more here in this post I was checking, over checking and over checking again my code.

So, I discovered that I made a mistake in the .cpp as follows:

 

int main(int argc, char **argv)

 

And it had to be:

 

Q_DECL_EXPORT int main(int argc, char **argv)

 

So this problem is solved. Now the IDE packs and signs. The app launches.

 

But before packing is still saying this:

 

 Source file of asset "MyApp" does not exist.

 

Again I am missing something and I don't know what. 

Any ideas please!!!

Romulus-Iulian LESNIC