This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 183393 - Unnecessary floppy disk drive access whenever Netbeans gains focus
Summary: Unnecessary floppy disk drive access whenever Netbeans gains focus
Status: RESOLVED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Filesystems (show other bugs)
Version: 6.x
Hardware: PC Windows XP
: P4 normal (vote)
Assignee: Jaroslav Tulach
URL:
Keywords:
: 183458 186002 186141 (view as bug list)
Depends on:
Blocks:
 
Reported: 2010-04-02 10:56 UTC by hari_seldon
Modified: 2010-05-17 04:51 UTC (History)
5 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description hari_seldon 2010-04-02 10:56:49 UTC
When I switch to the Netbeans window, the floppy disk drive signals an access. This happens no matter whether a project is open or not.

See also Bug 125822

Product Version = NetBeans IDE Dev (Build 201004020200) [PHP edition]
Operating System = Windows XP version 5.1 running on x86
Java; VM; Vendor = 1.6.0_19
Runtime = Java HotSpot(TM) Client VM 16.2-b04
Comment 1 Jaroslav Tulach 2010-04-13 09:15:55 UTC
Does it still happen in recent 6.9 builds? I've made some changes to the focus related code recently in bug 182801 & co.
Comment 2 hari_seldon 2010-04-14 12:24:40 UTC
It still happens in build 201004140201.
Comment 3 hari_seldon 2010-04-14 12:31:00 UTC
*** Bug 183458 has been marked as a duplicate of this bug. ***
Comment 4 Jaroslav Tulach 2010-04-16 06:19:01 UTC
Too bad, reopening then.
Comment 5 Jaroslav Tulach 2010-04-16 21:09:22 UTC
New bright idea: Would you give http://wiki.netbeans.org/ScanOnDemand module a try? That will prevent the automatic refresh all together. The module should have been available since 6.7. OK?
Comment 6 emiddio 2010-04-17 00:18:57 UTC
unacceptable -- i dont want to use the scan on demand module;

this issue did not happen in nb68
Comment 7 hari_seldon 2010-04-17 13:11:00 UTC
At least the module resolves the issue. Strangely the "Refresh All" command does not provoke a floppy scan.
Comment 8 emiddio 2010-04-18 18:17:40 UTC
this is a nb69dev build issue; above it says nb67; this does not happen in nb68
Comment 9 Jaroslav Tulach 2010-04-19 11:10:32 UTC
Guys, can you help me debug the problem? Start another NetBeans IDE in debug mode:
-J-Xdebug -J-Xrunjdwp:transport=dt_socket,suspend=n,server=y,address=${debug.port}

and connect to it from another NetBeans IDE. Place method breakpoint to java.io.File class (all method or maybe just "exists") with condition path.startsWith("A:\\") or something similar. When the breakpoint is hit, copy the stacktrace and paste it here.
Comment 10 Jaroslav Tulach 2010-04-22 14:39:37 UTC
Any results?
Comment 11 emiddio 2010-04-22 18:53:47 UTC
have not been able to get to it yet -- but you went just asking me only to try this ?
Comment 12 momotaro 2010-04-25 15:31:19 UTC
I have tried to get the stack trace at java.io.File.exists with condition path.startsWith("A:\\") on my environment:
  -NetBeans 6.9 Beta (japanese)
  -Windows Vista SP2 (64bit)
  -Java HotSpot(TM) Client VM (build 16.0-b13, mixed mode, sharing)

The results are :
"Default RequestProcessor"
java.io.File.exists(File.java:729)
org.netbeans.modules.masterfs.filebasedfs.utils.FileChangedManager.exists(FileChangedManager.java:118)
org.netbeans.modules.masterfs.filebasedfs.utils.FileInfo.exists(FileInfo.java:102)
org.netbeans.modules.masterfs.filebasedfs.utils.FileInfo.isConvertibleToFileObject(FileInfo.java:138)
org.netbeans.modules.masterfs.filebasedfs.fileobjects.FileObjectFactory.getInstance(FileObjectFactory.java:108)
org.netbeans.modules.masterfs.filebasedfs.fileobjects.FileObjectFactory.getInstance(FileObjectFactory.java:96)
org.netbeans.modules.masterfs.filebasedfs.FileBasedFileSystem.getFileObject(FileBasedFileSystem.java:128)
org.netbeans.modules.masterfs.filebasedfs.FileBasedURLMapper.getFileObjects(FileBasedURLMapper.java:131)
org.netbeans.modules.masterfs.MasterURLMapper.getFileObjects(MasterURLMapper.java:62)
org.openide.filesystems.URLMapper.findFileObject(URLMapper.java:213)
org.openide.filesystems.FileUtil.toFileObject(FileUtil.java:1008)
org.netbeans.core.ui.warmup.MenuWarmUpTask$NbWindowsAdapter.run(MenuWarmUpTask.java:216)
org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1369)
org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:1907)
Comment 13 Jaroslav Tulach 2010-04-26 08:50:58 UTC
Thanks for the stacktrace. I changed the code and the touch shall be gone in core-main#b19acc296647
Comment 14 Quality Engineering 2010-04-27 04:20:57 UTC
Integrated into 'main-golden', will be available in build *201004270201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/
User: 
Log:
Comment 15 Marian Mirilovic 2010-05-13 08:56:11 UTC
*** Bug 186002 has been marked as a duplicate of this bug. ***
Comment 16 Jaroslav Tulach 2010-05-17 04:51:45 UTC
*** Bug 186141 has been marked as a duplicate of this bug. ***