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
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

navigator_invoke_invocation_send fails with ETIMEDOUT

I'm working on a fairly large game port that's completely native (C/C++, NOT Cascades). I setup BPS, a screen, and swap buffers (seems that if I don't do that, nothing ever happens). I then send my invoke (email card).

 

What's weird is that if I'm debugging and I put a breakpoint on the invoke send, 9/10 times the invoke opens. If I don't put a breakpoint on it, ~3/10 times the invoke opens. If I run it without debugging, the invoke never opens. When I check errno as to what the error is, I get ETIMEDOUT from errno.

 

If more information is needed, the project is somewhat private right now and also very large, so I can post snippits of code, but not everything.

---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: 1,524
Registered: ‎12-18-2012
My Device: Z30, Z10 LE, DevAlpha C, PlayBook

Re: navigator_invoke_invocation_send fails with ETIMEDOUT

Hi,
Is the event loop running? (bps_get_event / bps_handle_event)

Andrey Fidrya, @zmeyc on twitter
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: navigator_invoke_invocation_send fails with ETIMEDOUT

I've tried both with and without (before the loop starts, and after the loop has started). Both have the same results as I described earlier.

---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.
BlackBerry Development Advisor
Posts: 249
Registered: ‎07-14-2008
My Device: Not Specified

Re: navigator_invoke_invocation_send fails with ETIMEDOUT

I have tried to find out what that error means but it turns out to be a low level error that could happen for several reasons. Would you be able to share a minimal sample app that reproduces the issue?

 

Also, is your app in the foreground when the invoke happens?

 

Shadid

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: navigator_invoke_invocation_send fails with ETIMEDOUT

I'll see what I can do about a test app. I had been recommended this by someone else, but worried about the size of the codebase. It won't be small, I can say that.

 

Yes, the app is in the foreground when it happens.

---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.