Doodle3D / doodle3d-firmware

The API of the Doodle3D WiFi box. This can for example talk to print3d, save settings, update the firmware etc.
www.doodle3d.com
GNU General Public License v2.0
13 stars 9 forks source link

Error: "could not open IPC socket (No such file or directory)" one time when a printer is connected #9

Closed peteruithoven closed 8 years ago

peteruithoven commented 11 years ago

When a printer is just connected an info/status request sometimes returns an error once. The second time it returns success with printerstate set to idle.

This seems be caused by a moment where printDriver.getPrinter() returns "3D-printer[ttyACM0]" instead of nil. But then printer:getState() returns "nil" with the message "could not open IPC socket (No such file or directory)". On the second request the rinter:getState() returns "idle"

Summary:

  1. Not connected: printDriver.getPrinter() > nil
  2. Connected: printDriver.getPrinter() > "3D-printer[ttyACM0]" printer:getState() > nil error response: "could not open IPC socket (No such file or directory)"
  3. Still connected: printDriver.getPrinter() > "3D-printer[ttyACM0]" printer:getState() > "idle"

It's as if print3D is running but the socket needs a bit more time to start.

In the current the client printer.state is "unkown" for a moment, which we ignore.

companje commented 8 years ago

solved with issue https://github.com/Doodle3D/doodle3d-client/issues/101

peteruithoven commented 8 years ago

I'm not sure this was solved.