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

Java Development

Reply
Developer
Posts: 21
Registered: ‎10-17-2009
My Device: Not Specified
Accepted Solution

Error - Secure API - OpenGL

Good day,

 

I am trying to test an OpenGL app on a 9520 and I get the following error when I start it: "Error starting XYZ: Module XYZ attemps to access a secure API." However, I _did_ sign the app and under Options->Applications->XYZ->Module, I see that it is signed with RBB and RCR.

 

I have developed numerous other application and signed them so I know it should be working. Is there something obvious that I am missing here? Should I have other IDs than RBB and RCR for that?

 

The error happens at: "net_rim_bb_framework_api-1 (4A45AF25) ApplicationEntryPoint run 0x374C

 

Cheers,

AD

Highlighted
Developer
Posts: 1,807
Registered: ‎04-28-2009
My Device: Z10 (STL100-4)-10.3.2.858, Z10 (STL100-3)-10.3.1.2576, Z30 (STA100-5)-10.3.1.2582, Passport (SQW100-1)-10.3.1.2576, PlayBook (16GB)-2.1.0.1917
My Carrier: Verizon

Re: Error - Secure API - OpenGL

Look at the event log to find what class requires the secure API.

---Spends time in #blackberrydev on freenode (IRC)----
Three simple rules:
1. Please use the search bar before making new posts.
2. "Like" posts that you find helpful.
3. If a solution has been found for your post, mark it as solved.
--I code too much. Well, too bad.
Developer
Posts: 21
Registered: ‎10-17-2009
My Device: Not Specified

Re: Error - Secure API - OpenGL

Sorry, I am new to the event log and I don't quite know what to look for. 

 

I have spotte a few errors related to my application:

- Error starting XYZ: Module XYZ attemps to access a secure API

- Linker error: 'VerifyError' for XYZ

- Module XYZ attend to access a secure API

- module 3907 cannot reference javax.microedition.khronos.egl.EGL11

- VM:Link XYZ

 

Maybe the real error is the module 3907 thing?

Developer
Posts: 21
Registered: ‎10-17-2009
My Device: Not Specified

Re: Error - Secure API - OpenGL

Ok... I looked around for the reference error and it seems that it happens when one tries to run an opengl program on a device that doesn't support it.

 

I have a 9520 v5.0.0.138 (platform 4.3.0.28), shouldn't it be able to run there?

 

Developer
Posts: 1,807
Registered: ‎04-28-2009
My Device: Z10 (STL100-4)-10.3.2.858, Z10 (STL100-3)-10.3.1.2576, Z30 (STA100-5)-10.3.1.2582, Passport (SQW100-1)-10.3.1.2576, PlayBook (16GB)-2.1.0.1917
My Carrier: Verizon

Re: Error - Secure API - OpenGL

You are correct, the 9520 should support it.

 

Try GLUtils.isSupported() to see if the device supports it, if it returns true then I am not exactly sure why it is not working, try restarting the device.

 

If it returns false then that is why it is not working.

---Spends time in #blackberrydev on freenode (IRC)----
Three simple rules:
1. Please use the search bar before making new posts.
2. "Like" posts that you find helpful.
3. If a solution has been found for your post, mark it as solved.
--I code too much. Well, too bad.
Developer
Posts: 21
Registered: ‎10-17-2009
My Device: Not Specified

Re: Error - Secure API - OpenGL

I changed the OS and it work now. I went with 4.2.0.220/5.0.0.497 in case that could be useful to anyone. Thanks for the help rcmaniac25.