GNOME Bugzilla – Bug 301261
No Disk Error on Win32 on call of gtk_init_check
Last modified: 2005-04-21 21:58:36 UTC
This is a major bug that affects GIMP, Gaim, and all other GTK+ based applications I was able to test on Windows. I am running Windows XP SP2 with GTK+ 2.6.7, but I believe this bug has larger scope, including all GTK 2.4, GTK 2.6 and WinNT-based systems. The synopsis of this bug is that upon the launch of any GTK+ program the error message immediately appears: "Windows - No Disk", "There is no disk in the drive. Please insert a disk into drive (some windows device)." Pressing cancel or continue will allow the application to start. Gaim shows this error dialog twice, as does gtk-demo.exe. I have verified that the error is triggered in Gaim when the functions gtk_widget_get_accessible or gtk_init_check are called. In the case of gtk_widget_get_accessible, it is called several dozen times in Gaim, and the error only occurs at the first call; never after that. gtk_init_check logically is only called once. As for the conditions which cause this problem: Typically a Windows system which has a USB card reader or other removal USB device connected that does not currently contain media at the time of application startup will cause the No Disk message. I found that in my device manager I have a device heirarchy: USB Root Hub - USB Composite Device - USB Mass Storage Device - Canon MP Memory Card USB Device - Generic Volume Disabling the Generic Volume (or any higher device which disables it in turn) or removing the drive letter mapping in the Disk Management administration tool stops the error from occurring, but for many users this prospect is not acceptable. This is 100% reproducible, definitely occurs within the GTK codebase, and troubles a lot of Gaim and GIMP users.
Component -> win32, and GNOME Version -> Unspecified, my mistakes. This is of course basically bug 170948 (didn't show up in a normal search since NEEDINFO isn't searched by default), but I think this one is demonstrable evidence that this is a GTK+ problem, not an application problem, and it needs to be fixed here.
Posting some additional information for general consumption. Floppy and Zip drives without disks as well as card readers that are empty will return this same error dialog when you attempt to access them using the new file picker (from the list on the left side).
*** This bug has been marked as a duplicate of 170948 ***