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
Developer
MikePembo951
Posts: 107
Registered: ‎02-15-2012
My Carrier: Virgin Mobile

error 12 and Unable to determine returned PID from launch.

[ Edited ]

Can someone explain what these error are exactly, and how I can fix them?

It happens really often when Im trying to debug.

This is on an actual device and not a simulator

 

On playbook:

Unable to start due to Error 12

 

In SDK:

Error in final launch sequence
Cannot prepare and download the binary
Unable to determine returned PID from launch.

Please use plain text.
Developer
BryceMcMurter
Posts: 32
Registered: ‎05-21-2012
My Carrier: Telus

Re: error 12 and Unable to determine returned PID from launch.

Does this occur after your program crashes/ shuts down improperly?

 

I only ask because I sometimes get "Unable to determine returned PID from launch." on my dev alpha when the program crashed or I end the program while debugging.

 

Also, when I get this error, the icon on the dev alpha is see through meaning the program it still running/closing

 

A simple restart of the device always clears it up for me.

Please use plain text.
Developer
MikePembo951
Posts: 107
Registered: ‎02-15-2012
My Carrier: Virgin Mobile

Re: error 12 and Unable to determine returned PID from launch.

Yes it is similar but this is playbook not dev alpha device. Also the error occurs just after the app launches e.g. A few milliseconds. And yes i find that reboot device fixes it temporarily but its still annoying. Also yes the app doesnt close properly since the app icon is still transparent

Please use plain text.
Developer
BryceMcMurter
Posts: 32
Registered: ‎05-21-2012
My Carrier: Telus

Re: error 12 and Unable to determine returned PID from launch.

If this happens often I would have to guess that there is probably a small bug in your code that's causing it. Unfortunately it could be one of many problems.

Sorry I couldn't be of more help

Please use plain text.
Developer
MikePembo951
Posts: 107
Registered: ‎02-15-2012
My Carrier: Virgin Mobile

Re: error 12 and Unable to determine returned PID from launch.

Its defo not a problem with my code. The error occurs before the code in main() starts. It happens when debugging when the app is launched after being uploaded

Please use plain text.
Developer
BGmot
Posts: 1,061
Registered: ‎11-24-2011
My Carrier: x

Re: error 12 and Unable to determine returned PID from launch.

usr/include/errno.h error 12  is ENOMEM.

Please use plain text.
Developer
MikePembo951
Posts: 107
Registered: ‎02-15-2012
My Carrier: Virgin Mobile

Re: error 12 and Unable to determine returned PID from launch.

Guessing "No Memory"?

Doesnt make sense, I checked RAM usage and checked flash storage space and all is fine. 

I noticed that it may be something to do with assets last time I tried to tackle this problem.

My directories arnt deep, not too many files/folder etc.

Please use plain text.
Developer
BGmot
Posts: 1,061
Registered: ‎11-24-2011
My Carrier: x

Re: error 12 and Unable to determine returned PID from launch.

If you see an icon semi-transparent then your app is still running and in Debug perspective you should see these hung thread and you should be able to terminate your app from there. It's true - new instance of your app will never be started if the old one is still 'running'.

Please use plain text.
Administrator
MSohm
Posts: 14,065
Registered: ‎07-09-2008
My Carrier: Bell

Re: error 12 and Unable to determine returned PID from launch.

This error occurs if the permissions screen shown when your application first launches is not dismissed before a timeout period.  It doesn't indicate an error in your application and is something we'll be fixing in a future release.

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.
Developer
MikePembo951
Posts: 107
Registered: ‎02-15-2012
My Carrier: Virgin Mobile

Re: error 12 and Unable to determine returned PID from launch.

Thanks. Any chance you could say whether the fix will be in 2.1 or will it be some later update?

Please use plain text.