Author Topic: The Queue had twice the specified data  (Read 57 times)

dave

  • Newbie
  • *
  • Posts: 6
    • View Profile
The Queue had twice the specified data
« on: February 01, 2023, 07:15:01 pm »
Hi, am am periodically getting an error "The Queue had twice the specified data -Disconnected  Decrease the rate the data is sent"

I continue to get it even after slowing the data rate down substantially.  Can you provide some tips on how to debug this?

Thanks,
Dave.
The data packets are pretty simple per below , and I've reduced the baud from 115200 to 9600, still getting the error.
31:44.0   41.06       1695.78   86   115   0   8   15.17   61   2.2   502

Share on Facebook Share on Twitter


Martin Hebel, Developer

  • Administrator
  • Full Member
  • *****
  • Posts: 113
    • View Profile
Re: The Queue had twice the specified data
« Reply #1 on: February 01, 2023, 07:37:02 pm »
Hi Dave, thanks for posting.

Can you tell use what the serial data progress bar is doing? It’s the top progress bar on the lower right of the serial control right below the connect button.

Does it appear to be growing in size while data is arriving?

Does your plotted data seem lagging in time any?

There’s a property in the serial control (maxBufferSize) that if you have a lot of data coming in you could increase.

The rate isn’t necessarily just the baud, but how fast (samples per second) you’re are sending to be processed. Depending on your interface, a single string of data may need time to be processed, though that normally shows in the processing queue filling (bottom progress bar).

Also, ensure your incoming strings end with a carriage return or new line (ascii 13 or 10) as that indicated the end of a string to be processed.

You can monitor incoming data using the Debug/CLI and checking boxes at the bottom.

I hope one of these suggestions helps you out? Please let us know, especially if they don’t help and you can provide us any more information.

Sincerely,
- Martin

dave

  • Newbie
  • *
  • Posts: 6
    • View Profile
Re: The Queue had twice the specified data
« Reply #2 on: February 12, 2023, 03:03:35 pm »
Thanks for the reply.
It seems to happen when I don't have click focused on maker plot.  I have two applications and when I have focus on the other one, makerplot gets laggy, then when I click back on it, it has the error.

I lowered the baud a little and gave it higher priority in Windows.
I'll keep you posted.
Thanks,
Dave.

 

Martin Hebel, Developer

  • Administrator
  • Full Member
  • *****
  • Posts: 113
    • View Profile
Re: The Queue had twice the specified data
« Reply #3 on: February 12, 2023, 04:42:54 pm »
Interesting. Was it minimized or just not have focus? Thank you.

dave

  • Newbie
  • *
  • Posts: 6
    • View Profile
Re: The Queue had twice the specified data
« Reply #4 on: February 14, 2023, 06:56:26 pm »
No focus, it is not minimized.  I'll work some more on this, something is not making sense. 
Any additional suggestions?

Martin Hebel, Developer

  • Administrator
  • Full Member
  • *****
  • Posts: 113
    • View Profile
Re: The Queue had twice the specified data
« Reply #5 on: February 14, 2023, 07:11:10 pm »
I’ve not been able to reproduce the issue yet.

How long had MPJ been running? How fast is data coming in? I’ve tested 1Mbps with no delays.

Are you running much event code are logging data, snapshots, etc?

Any info I could use to reproduce the issue would be helpful. I’ve not noticed any changes when not focused, but it could be a RAM issue or drive swapping?

I’ll dig around the expert sites, see if there’s a history with Java doing this.

Appreciate it.