This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

File: (null), Line: 0, Error code: 4

I'm using Python bindings 0.5.0 and the connectivity app. On one of our machines that is running tests with the satck/dongle we see it fail a lot with a scrolling of this message from the DLL (our registered handler in python gets it with a severity code of 4)

What is this error? It's not recoverable

Parents
  • so if I understand this correctly the DLL doesn't have enough memory allocated for incoming message buffers, correct? Why isn't this configurable since on most PCs memory is a lot cheaper than on embedded systems. Is there a spec on how long python can take to get events out of the DLL? I can move some code around on my python to queue events from the DLL and then on a separate python thread manage the data, however python is a single threaded system. Only one real thread and the python interpreter schedules a slice of byte code from each python thread to execute. At some point things are going to slow down enough for this fail spiral to hit. I'm thinking that the one computer that this is happening to has slow down issues. When that happens I start getting one of these messages every connection interval flooding my database.

Reply
  • so if I understand this correctly the DLL doesn't have enough memory allocated for incoming message buffers, correct? Why isn't this configurable since on most PCs memory is a lot cheaper than on embedded systems. Is there a spec on how long python can take to get events out of the DLL? I can move some code around on my python to queue events from the DLL and then on a separate python thread manage the data, however python is a single threaded system. Only one real thread and the python interpreter schedules a slice of byte code from each python thread to execute. At some point things are going to slow down enough for this fail spiral to hit. I'm thinking that the one computer that this is happening to has slow down issues. When that happens I start getting one of these messages every connection interval flooding my database.

Children
No Data
Related