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

Cascades Development

Reply
Regular Contributor
CrozyBB
Posts: 83
Registered: ‎07-19-2012
My Carrier: Koodo

App Wont Launch

I changed the icon in bar descriptor file and after I went to launch the app it failed an I got the following response

 

result::failure 812 /var/tmp/bar_867506: duplicate member name

 

Even after changing my icon back to the default icon I get the same error.

 

I really have no idea why this happening. There's nothing wrong with launching any other app either.

Please use plain text.
Developer
peter9477
Posts: 5,636
Registered: ‎12-08-2010
My Carrier: none

Re: App Wont Launch

Did you know the .bar file is merely a zip file with a different file extension? You can unzip it and inspect the contents. Actually, if there's truly a duplicate name inside (though I wouldn't have thought the zip format would even allow that), you could tell by just doing a listing on the contents rather than unzipping (e.g. "unzip -t yourpackage.bar", if you have the unzip program on your system.

If you do unzip it, the most critical file is the META-INF/MANIFEST.MF file, which includes among other things a list with every file that's bundled into the package. Check there for oddities, or in the unzip folders, and maybe you'll see something strange which, if you fix it, will resolve the problem.

Peter Hansen -- (PlayBook and dev-related blog posts at http://peterhansen.ca.)
Author of White Noise and Battery Guru for BB10 and for PlayBook | Get more from your battery!
Please use plain text.
Developer
smartek
Posts: 274
Registered: ‎05-31-2012
My Carrier: o2

Re: App Wont Launch

where to find the bar file?

Plase "+Like" my post if it was helpful.
Please use plain text.
Developer
peter9477
Posts: 5,636
Registered: ‎12-08-2010
My Carrier: none

Re: App Wont Launch

If you're using Momentics, it generally ends up in the arm/o.le-v7 subfolder of your project, or similar places. Use a search tool to find it below your project...

Peter Hansen -- (PlayBook and dev-related blog posts at http://peterhansen.ca.)
Author of White Noise and Battery Guru for BB10 and for PlayBook | Get more from your battery!
Please use plain text.
Regular Contributor
CrozyBB
Posts: 83
Registered: ‎07-19-2012
My Carrier: Koodo

Re: App Wont Launch

No duplicated files found in the Manifest. I just decided to copy everything to a new Cascades project and it works fine now. I must have accidentally changed something in the bar descriptor or aomething like that :s

Please use plain text.