Skip to content

Facing com.starmicronics.stario10.StarIO10InUseException: The device is in use by another host. errorCode: None #57

@zaibniazinnowi

Description

@zaibniazinnowi
  • Description

I am facing a very unusual and unexpected issue. So far, three instances have been identified over the past one and a half months, but the root cause has not yet been determined.

I pulled the Star SDK logs and will share the details here.

First instance:
2026/05/08 11:16:32.505

Second instance:
2026/05/16 13:06:14.365

Third instance:
2026/05/21 18:08:49.298

What happens is that the printer works fine initially, but whenever the printer remains in an idle state for more than 30 minutes or some cases 2-3 hours, this issue occurs.

I have included the timestamps from the Star SDK logs, which I am also attaching for reference.

I also had a call with the customer to understand how the printer recovered from the issue. According to them, they simply rebooted the printer (turned it off and then back on), after which it started working normally again.

I am using a single printer instance throughout the entire application lifecycle.

Your device where the bug occurs

  • Device:
    Android Elo Touch Solutions 15in-I-Series-4
  • OS:
    14 or 15

Your printer

  • Model Names:

    • mC_Print3 MCP31 (STR-001)[001162347168]*
  • Sdks:

    • implementation("com.starmicronics:stario:2.14.0")*
    • implementation("com.starmicronics:stario10:1.11.2")*
    • implementation("com.starmicronics:starioextension:1.17.0")*
  • Interface:
    Ethernet
    Getting Star printer old instance openTimeout : 10000, getStatusTimeout : 5000, printTimeout : 90000, connectionSettings : {interfaceType : Lan, identifier : 001162347168, autoSwitchInterface : false}, information : {model : mC_Print3, emulation : StarPRNT, detail: [ lan : [ ipAddress : null macAddress : null ] bluetooth : [ address : null deviceName : null ] usb : [ portName : null usbSerialNumber : null ] ] reserved : [ {bluetoothAddress=null, macAddress=null, specifiedIdentifier=null, usbSerialNumber=null, wlanMacAddress=null, isModelEstimated=false, isFallbackModel=false} ]} with interfaceType Lan and hashcode is 240840720 with mac 001162347168

log_20260506141146128.txt
log_20260515131947921.txt
log_20260518182249440.txt

Metadata

Metadata

Labels

Status: work in progressCurrently working on this issueTarget: stario10Issues related to the API and other StarIO10 library.Type: bugSomething isn't working

Type

No fields configured for Bug.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions