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: 107
Registered: ‎08-08-2008
My Device: Not Specified
Accepted Solution

(163) queue too large; key/stylus event(s) dropped

Hi,

 

I have an application with separate COD for UI and Library.  Its a Wedge Driver for barcode scanner.  The Library COD where the processing and injection takes place.

 

When scanning 1D barcodes and say (up to 36) characters the driver is working fine. But when scanning 2D barcodes with more than  36 characters i get this error:

 

 

guid:0x97C9F5F641D25E5F time: Wed Dec 16 15:37:50 2009  severity:0 type:2 app:System data:Process WedgeDriver(163) queue too large; key/stylus event(s) dropped

 

 

The log show where this error occurs:

 

guid:0x97C9F5F641D25E5F time: Wed Dec 16 15:37:50 2009  severity:0 type:2 app:System data:CMM: WedgeSDK(4805) no sig from 0x33
guid:0xAFFFF32C2FFFFCFF time: Wed Dec 16 15:37:50 2009  severity:0 type:0 app: data:?4:\x00\x00\x00[
guid:0xAFFFF32C2FFFFCFF time: Wed Dec 16 15:37:50 2009  severity:0 type:0 app: data:?4:\x00\x00\x00)
guid:0xAFFFF32C2FFFFCFF time: Wed Dec 16 15:37:50 2009  severity:0 type:0 app: data:?4:\x00\x00\x00>
guid:0xAFFFF32C2FFFFCFF time: Wed Dec 16 15:37:50 2009  severity:0 type:0 app: data:?4:\x00\x00\x00\x1E
guid:0xAFFFF32C2FFFFCFF time: Wed Dec 16 15:37:50 2009  severity:0 type:0 app: data:?4:\x00\x00\x000
guid:0xAFFFF32C2FFFFCFF time: Wed Dec 16 15:37:50 2009  severity:0 type:0 app: data:?4:\x00\x00\x001
guid:0xAFFFF32C2FFFFCFF time: Wed Dec 16 15:37:50 2009  severity:0 type:0 app: data:?4:\x00\x00\x00\x1D
guid:0xAFFFF32C2FFFFCFF time: Wed Dec 16 15:37:50 2009  severity:0 type:0 app: data:?4:\x00\x00\x000
guid:0xAFFFF32C2FFFFCFF time: Wed Dec 16 15:37:50 2009  severity:0 type:0 app: data:?4:\x00\x00\x002
guid:0xAFFFF32C2FFFFCFF time: Wed Dec 16 15:37:50 2009  severity:0 type:0 app: data:?4:\x00\x00\x009
guid:0xAFFFF32C2FFFFCFF time: Wed Dec 16 15:37:50 2009  severity:0 type:0 app: data:?4:\x00\x00\x002
guid:0xAFFFF32C2FFFFCFF time: Wed Dec 16 15:37:50 2009  severity:0 type:0 app: data:?4:\x00\x00\x006
guid:0xAFFFF32C2FFFFCFF time: Wed Dec 16 15:37:50 2009  severity:0 type:0 app: data:?4:\x00\x00\x001
guid:0xAFFFF32C2FFFFCFF time: Wed Dec 16 15:37:50 2009  severity:0 type:0 app: data:?4:\x00\x00\x004
guid:0xAFFFF32C2FFFFCFF time: Wed Dec 16 15:37:50 2009  severity:0 type:0 app: data:?4:\x00\x00\x00\x1D
guid:0xAFFFF32C2FFFFCFF time: Wed Dec 16 15:37:50 2009  severity:0 type:0 app: data:?4:\x00\x00\x008
guid:0xAFFFF32C2FFFFCFF time: Wed Dec 16 15:37:50 2009  severity:0 type:0 app: data:?4:\x00\x00\x004
guid:0xAFFFF32C2FFFFCFF time: Wed Dec 16 15:37:50 2009  severity:0 type:0 app: data:?4:\x00\x00\x000
guid:0xAFFFF32C2FFFFCFF time: Wed Dec 16 15:37:50 2009  severity:0 type:0 app: data:?4:\x00\x00\x00\x1D
guid:0xAFFFF32C2FFFFCFF time: Wed Dec 16 15:37:50 2009  severity:0 type:0 app: data:?4:\x00\x00\x005
guid:0xAFFFF32C2FFFFCFF time: Wed Dec 16 15:37:50 2009  severity:0 type:0 app: data:?4:\x00\x00\x001
guid:0xAFFFF32C2FFFFCFF time: Wed Dec 16 15:37:50 2009  severity:0 type:0 app: data:?4:\x00\x00\x00\x1D
guid:0xAFFFF32C2FFFFCFF time: Wed Dec 16 15:37:50 2009  severity:0 type:0 app: data:?4:\x00\x00\x009
guid:0xAFFFF32C2FFFFCFF time: Wed Dec 16 15:37:50 2009  severity:0 type:0 app: data:?4:\x00\x00\x008
guid:0xAFFFF32C2FFFFCFF time: Wed Dec 16 15:37:50 2009  severity:0 type:0 app: data:?4:\x00\x00\x005
guid:0xAFFFF32C2FFFFCFF time: Wed Dec 16 15:37:50 2009  severity:0 type:0 app: data:?4:\x00\x00\x008
guid:0xAFFFF32C2FFFFCFF time: Wed Dec 16 15:37:50 2009  severity:0 type:0 app: data:?4:\x00\x00\x002
guid:0xAFFFF32C2FFFFCFF time: Wed Dec 16 15:37:50 2009  severity:0 type:0 app: data:?4:\x00\x00\x009
guid:0xAFFFF32C2FFFFCFF time: Wed Dec 16 15:37:50 2009  severity:0 type:0 app: data:?4:\x00\x00\x000
guid:0xAFFFF32C2FFFFCFF time: Wed Dec 16 15:37:50 2009  severity:0 type:0 app: data:?4:\x00\x00\x002
guid:0xAFFFF32C2FFFFCFF time: Wed Dec 16 15:37:50 2009  severity:0 type:0 app: data:?4:\x00\x00\x007
guid:0xAFFFF32C2FFFFCFF time: Wed Dec 16 15:37:50 2009  severity:0 type:0 app: data:?4:\x00\x00\x002
guid:0xAFFFF32C2FFFFCFF time: Wed Dec 16 15:37:50 2009  severity:0 type:0 app: data:?4:\x00\x00\x009
guid:0xAFFFF32C2FFFFCFF time: Wed Dec 16 15:37:50 2009  severity:0 type:0 app: data:?4:\x00\x00\x005
guid:0xAFFFF32C2FFFFCFF time: Wed Dec 16 15:37:50 2009  severity:0 type:0 app: data:?4:\x00\x00\x000
guid:0xAFFFF32C2FFFFCFF time: Wed Dec 16 15:37:50 2009  severity:0 type:0 app: data:?4:\x00\x00\x002
guid:0x97C9F5F641D25E5F time: Wed Dec 16 15:37:50 2009  severity:0 type:2 app:System data:Process WedgeDriver(163) queue too large; key/stylus event(s) dropped

 

 

Here is my code:

 

for (int i = 0; i < sBarcode.length();)                   {                                                                     
    nByte = sBarcode.charAt(i);                       
    EventInjector.invokeEvent(new EventInjector.KeyCodeEvent(EventInjector.KeyCodeEvent.KEY_DOWN, (char)nByte , nKeypadListener, nDownTime ));
                       
    EventLogger.logEvent(GUID, nByte);  
    i++;                        
}


 

 

I search for (163) queue too large, but could not find anything.

 

Can someone help me on this?

 

Thanks...

Developer
Posts: 4,764
Registered: ‎07-21-2008
My Device: Not Specified

Re: (163) queue too large; key/stylus event(s) dropped

[ Edited ]

I think you need to go back to the driver developer for assistance.

 

There should be a way to throttle the input if it is coming in too fast.

 

 

Developer
Posts: 107
Registered: ‎08-08-2008
My Device: Not Specified

Re: (163) queue too large; key/stylus event(s) dropped

Rex,

 

I am the developer. Well wanabe developer. So your thinking is that I'm over filling the queue and adding some delay between injector code might solve the problem?

 

Thanks.

Developer
Posts: 19,631
Registered: ‎07-14-2008
My Device: Not Specified

Re: (163) queue too large; key/stylus event(s) dropped

[ Edited ]

Think you might find RexDoug's name is actually Doug!

 

I agree with that suggestion.  Give the input Field a chance to process the characters.  Even a Thread.yield() might help.

Highlighted
Developer
Posts: 107
Registered: ‎08-08-2008
My Device: Not Specified

Re: (163) queue too large; key/stylus event(s) dropped

Peter,

 

Thanks for the clarification on the delay and I stand corrected on RexDoug's name.

 

I'll give this a try and report back.

Developer
Posts: 4,764
Registered: ‎07-21-2008
My Device: Not Specified

Re: (163) queue too large; key/stylus event(s) dropped

Sorry - reading your post it sounded like a 3rd party product that you were integrating.

 

So, obviously you are firing keyboard events faster than you are processing them.

 

Might be a coupla reasons for this, hard to say without knowing how you are handling/synchronizing threads.

 

And the name *is* Doug, as Peter suggests - one of the "Rex-Guys"

 

 

 

 

Developer
Posts: 107
Registered: ‎08-08-2008
My Device: Not Specified

Re: (163) queue too large; key/stylus event(s) dropped

[ Edited ]

Doug, Peter,

 

That delay was the fix. I tried "Thread.yield();" and it worked perfectly positing 2D barcodes into Mail and MemoPad without any problems on the 8100s. However on the faster devices such as 8800s that short delay was not enough. I did get more of the barcode data to inject but still missing a few characters.

 

The final solution was to use the delay "Thread.sleep(10);" which seems to be working on all devices.

 

Thank you both for the exellent feedback.

 

The developers on this forum rocks...