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 253226

Summary: Throwable: Locked by:
Product: cnd Reporter: petrk
Component: DebuggerAssignee: henk89
Status: RESOLVED FIXED    
Severity: normal    
Priority: P3    
Version: 8.1   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter: 218214
Attachments: stacktrace
Proposed Patch

Description petrk 2015-06-28 23:36:40 UTC
This bug was originally marked as duplicate of bug 247398, that is already resolved. This bug is still valid, so this seems to be another bug, but it might be related.

Build: NetBeans IDE Dev (Build 20150629-869e82459cad)
VM: Java HotSpot(TM) 64-Bit Server VM, 25.11-b03, Java(TM) SE Runtime Environment, 1.8.0_11-b12
OS: Linux

User Comments:
petrk: Clicked on some variables in "Variables" tab during debugging of mixed java/cpp application




Stacktrace: 
java.lang.Throwable: Locked by:
   at org.openide.filesystems.FileLock.<init>(FileLock.java:88)
   at org.openide.filesystems.AbstractFileObject$AfLock.<init>(AbstractFileObject.java:940)
   at org.openide.filesystems.AbstractFileObject.lock(AbstractFileObject.java:273)
   at org.openide.filesystems.FileObject.getOutputStream(FileObject.java:812)
   at org.netbeans.modules.cnd.debugger.common2.debugger.assembly.Disassembly$DisText.save(Disassembly.java:451)
   at org.netbeans.modules.cnd.debugger.gdb2.GdbDisassembly.update(GdbDisassembly.java:203)
Comment 1 petrk 2015-06-28 23:36:42 UTC
Created attachment 154417 [details]
stacktrace
Comment 2 Jaroslav Havlin 2015-07-23 08:42:46 UTC
Created attachment 154813 [details]
Proposed Patch
Comment 3 Jaroslav Havlin 2015-07-23 08:47:34 UTC
I don't know what could be wrong. The code seems to correctly unlock the file.
Maybe we should log all unexpected exceptions to have more information the next time this problem appears again (simple fix in attached patch).

Reassigning to cnd/Debugger. Please consider applying the patch.
Thank you.
Comment 4 henk89 2015-09-03 09:06:06 UTC
Fixed in:
http://hg.netbeans.org/cnd-main/rev/a92f3e31d419

The patch has been applied.
Comment 5 Quality Engineering 2015-09-04 01:25:17 UTC
Integrated into 'main-silver', will be available in build *201509040002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/a92f3e31d419
User: Nikolay Koldunov <henk89@netbeans.org>
Log: Fixed #253226 - Throwable: Locked by: