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
jerobarraco
Posts: 17
Registered: ‎06-21-2013
My Device: Z10 STL100-3
Accepted Solution

Crash starting native app that embeds Python interpreter

Hi. 

As the title suggests i'm developing an app that embeds python interpreter.

It worked before, but now it only works on the simulator. 

As i do not posses a physical device it's completely imposible for me to test it.

Sympthom:

When the app starts it crashes. That's all the info i have.

Some have suggested it might be the interpreter trying to create a _pycache_ folder , so i tried setting the current working directory to a tmp_path

 

QDir dir(QCoreApplication::applicationDirPath());
app_path = dir.absolutePath();
tmp_path =  QDir::cleanPath(app_path+ "/../../tmp");
QDir::setCurrent(tmp_path);

it does set the current path to the correct location. it still crashes..

 

Can someone have an idea on how to solve this?

~namida de as.hita ga mienai~
Please use plain text.
Retired
mwoolley
Posts: 571
Registered: ‎06-25-2010
My Device: Z10

Re: Crash starting native app that embeds Python interpreter

If you can provide me with a copy of your application (preferably with source code) I'd be glad to take a look (I work in the Blackberry Developer Relations Group). If you need to make special arrangements, send me a private message with the details.

 

Regards

 

Martin

--------------------------------------------------------------------------------------------
Feel free to press the like button on the right side if you liked my attempts to help :-)
And please mark posts as solved if you think I found the solution or set you on its path. Thanks!
Follow me on Twitter: @mdwrim
Please use plain text.
Developer
jerobarraco
Posts: 17
Registered: ‎06-21-2013
My Device: Z10 STL100-3

Re: Crash starting native app that embeds Python interpreter

Thanks Martin, i just solved it with the help of MadK on the IRC.

Too bad i had to blindly bruteforce the solution with him so it took like 4 hours. 

Next time i'll take you into account for help, thanks.

 

Just to note the solution this was the silly problem:

 

I just had to remove one line that the IDE inserted at the bar-descriptor.xml file only for the device-release configuration

<entryPointType>Qnx/Cascades</entryPointType>

 

~namida de as.hita ga mienai~
Please use plain text.
Retired
mwoolley
Posts: 571
Registered: ‎06-25-2010
My Device: Z10

Re: Crash starting native app that embeds Python interpreter

Great, glad you sorted it out :-)

--------------------------------------------------------------------------------------------
Feel free to press the like button on the right side if you liked my attempts to help :-)
And please mark posts as solved if you think I found the solution or set you on its path. Thanks!
Follow me on Twitter: @mdwrim
Please use plain text.