Ticket #2482 (assigned bug)

Opened 5 months ago

Last modified 5 months ago

Panic while automounting usb stick

Reported by: emitrax Owned by: mmlr
Priority: normal Milestone: R1
Component: - General Version: R1 development
Cc: Blocked By:
Platform: All Blocking:

Description

It seems it happens only on first boot, but I'm not sure whether it is a coincidence, those a race condition, or not.

See screenshots attached.

Attachments

AutoMounter.4.jpg (161.9 kB) - added by emitrax 5 months ago.
add_poses.jpg (151.2 kB) - added by emitrax 5 months ago.

Change History

Changed 5 months ago by emitrax

Changed 5 months ago by emitrax

Changed 5 months ago by mmlr

  • owner changed from axeld to mmlr
  • status changed from new to assigned

This is not a race condition or anything, it's a plain simple timeout that happens. The device does not respond quickly enough therefore usb_disk will abort and return a timeout error ("error: Operation timed out"). The timeout I (arbitrarily) set is 2 seconds right now, which might just not be enough. Please increase the timeout in src/add-ons/kernel/drivers/disk/usb/usb_disk/usb_disk.cpp line 145 by a second until you don't see this happening anymore and report how much it needs. Other subsystems seem to use timeouts of up to 20 seconds, but I don't really want to increase it that much. Maybe 3 or 5 seconds would be acceptable though.

Note: See TracTickets for help on using tickets.