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 180785 - AssertionError at org.openide.text.CloneableEditor$DoInitialize.initNonVisual
Summary: AssertionError at org.openide.text.CloneableEditor$DoInitialize.initNonVisual
Status: RESOLVED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Text (show other bugs)
Version: 6.x
Hardware: All All
: P4 normal (vote)
Assignee: Jaroslav Tulach
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-02-16 06:50 UTC by kawazu428
Modified: 2011-09-14 06:22 UTC (History)
39 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 161168


Attachments
stacktrace (4.40 KB, text/plain)
2010-02-16 06:50 UTC, kawazu428
Details
stacktrace (3.11 KB, text/plain)
2010-04-15 19:22 UTC, Exceptions Reporter
Details
stacktrace (4.80 KB, text/plain)
2010-04-20 11:13 UTC, buzzword
Details
stacktrace (4.46 KB, text/plain)
2010-05-03 12:04 UTC, leonhad
Details
stacktrace (4.46 KB, text/plain)
2010-05-18 09:22 UTC, J Bachorik
Details
stacktrace (4.66 KB, text/plain)
2010-05-18 19:34 UTC, Jesse Glick
Details
stacktrace (4.80 KB, text/plain)
2010-10-13 14:28 UTC, Jaromir Uhrik
Details
stacktrace (4.47 KB, text/plain)
2010-11-18 07:24 UTC, Andrew Krasny
Details
stacktrace (6.19 KB, text/plain)
2011-01-29 15:34 UTC, simpatico
Details
stacktrace (3.10 KB, text/plain)
2011-02-03 05:25 UTC, David Konecny
Details
stacktrace (4.02 KB, text/plain)
2011-02-23 03:34 UTC, maghiel
Details
stacktrace (4.47 KB, text/plain)
2011-03-22 17:03 UTC, Vladimir Kvashin
Details
stacktrace (4.02 KB, text/plain)
2011-05-10 22:51 UTC, maghiel
Details
stacktrace (5.22 KB, text/plain)
2011-05-31 16:41 UTC, Petr Cyhelsky
Details
stacktrace (4.47 KB, text/plain)
2011-06-06 15:42 UTC, Vladimir Kvashin
Details
stacktrace (5.30 KB, text/plain)
2011-06-17 17:26 UTC, Alexander Simon
Details
stacktrace (5.30 KB, text/plain)
2011-06-17 18:08 UTC, Alexander Simon
Details
stacktrace (6.15 KB, text/plain)
2011-07-12 14:01 UTC, Petr Cyhelsky
Details

Note You need to log in before you can comment on or make changes to this bug.
Description kawazu428 2010-02-16 06:50:07 UTC
Build: NetBeans IDE Dev (Build 201002160200)
VM: Java HotSpot(TM) Client VM, 16.0-b13, Java(TM) SE Runtime Environment, 1.6.0_18-b07
OS: Linux

User Comments:
kawazu428: started IDE, waiting for (formerly opened) files to be restored (which fails)

GUEST: just working

azerifire: I removed files manually form localhost while NetBean was open.

GUEST: working.. things are super slowwwww.




Stacktrace: 
java.lang.AssertionError
   at org.openide.text.CloneableEditor$DoInitialize.initNonVisual(CloneableEditor.java:568)
   at org.openide.text.CloneableEditor$DoInitialize.run(CloneableEditor.java:324)
   at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:641)
   at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:1123)
Comment 1 kawazu428 2010-02-16 06:50:13 UTC
Created attachment 94200 [details]
stacktrace
Comment 2 Exceptions Reporter 2010-02-16 06:50:24 UTC
This bug already has 5 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=161168
Comment 3 Exceptions Reporter 2010-04-15 19:22:51 UTC
Created attachment 97479 [details]
stacktrace
Comment 4 buzzword 2010-04-20 11:13:59 UTC
Created attachment 97701 [details]
stacktrace

Click to open a java file, that was changed by an another process.
Comment 5 Exceptions Reporter 2010-04-29 16:08:19 UTC
This bug already has 10 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=161168
Comment 6 leonhad 2010-05-03 12:04:21 UTC
Created attachment 98361 [details]
stacktrace
Comment 7 J Bachorik 2010-05-18 09:22:59 UTC
Created attachment 99121 [details]
stacktrace

Editing a layer.xml
Comment 8 Jesse Glick 2010-05-18 19:34:58 UTC
Created attachment 99158 [details]
stacktrace

Created Maven quickstart project. Tried to delete the generated src/main/java/<package>; IDE refused, claiming it was read-only. Tried to delete the source file under the package, with no apparent effect. Tried to open the source file in the editor; appeared as an editor tab (read-only) with an error badge, but content area was blank grey and I got this exception. In fact on disk the source file (but not its package) was already gone. I saw no sign of anything actually being read-only.
Comment 9 Jaromir Uhrik 2010-10-13 14:28:36 UTC
Created attachment 102392 [details]
stacktrace

Closed all editor tabs and then opened opened some .java file and the AssetionError appeared...
Comment 10 Andrew Krasny 2010-11-18 07:24:25 UTC
Created attachment 103059 [details]
stacktrace
Comment 11 gemal 2010-11-18 07:57:38 UTC
doubleclicked on a file that was no longer available in the filesystem since it was deleted but the editor wasn't aware of this
Comment 12 simpatico 2011-01-29 15:34:11 UTC
Created attachment 105464 [details]
stacktrace
Comment 13 David Konecny 2011-02-03 05:25:50 UTC
Created attachment 105610 [details]
stacktrace
Comment 14 maghiel 2011-02-23 03:34:57 UTC
Created attachment 106317 [details]
stacktrace

Invoked Close All
Comment 15 Vladimir Kvashin 2011-03-22 17:03:59 UTC
Created attachment 107193 [details]
stacktrace

Open a file that was removed from disk but still existed in files view
Comment 16 maghiel 2011-05-10 22:51:34 UTC
Created attachment 108220 [details]
stacktrace

Switch branch in git, and wanted to click close all on the open file tabs (some open tabs were of files that were in another branch, and were correctly drawn in italic).
Comment 17 Petr Cyhelsky 2011-05-31 16:41:58 UTC
Created attachment 108630 [details]
stacktrace
Comment 18 Vladimir Kvashin 2011-06-06 15:42:03 UTC
Created attachment 108759 [details]
stacktrace

Tried to open a file that was removed, on remote file system.
I experienced the same behavior when exception occurred when reading a file.
Comment 19 Alexander Simon 2011-06-17 17:26:16 UTC
Created attachment 108967 [details]
stacktrace

try to open binary file on remote file system
Comment 20 Alexander Simon 2011-06-17 18:08:17 UTC
Created attachment 108969 [details]
stacktrace
Comment 21 Peter Nabbefeld 2011-06-30 14:33:54 UTC
This issue is over one year old.

Added some details to report #161168 - probably this might help
Comment 22 Petr Cyhelsky 2011-07-12 14:01:49 UTC
Created attachment 109397 [details]
stacktrace
Comment 23 David Strupl 2011-07-25 13:19:22 UTC
I am able to 100% reproduce this! Here are the steps:


1. Copy a e.g. .exe file to some package folder so you can see it in NetBeans explorer and while copying change the extension to e.g. .tmp so the extension is not registered

2. Double click the file to open it in Projects --> Package view (normal NB explorer). You are presented with a dialog asking to confirm that you want to open a binary file.

3. DO NOT answer the dialog (yet) but instead delete the file using the OS (e.g from command line).

4. After you hit "Yes" in the dialog the exception pops up.
Comment 24 David Strupl 2011-07-25 13:25:43 UTC
Correction the previous statement: it is not reproducible always. Using the steps above it happened but not always ... ;-(
Comment 25 David Strupl 2011-07-26 08:27:36 UTC
Ok, after some more experimenting I think I have steps that trigger the exception always (at least it did several times in a row when I tried):

1. touch a.tmp
2. open a.tmp in the editor (double clicking in the explorer)
3. close the editor without saving
3. copy a binary file over a.tmp (e.g. cp foobar.exe a.tmp)
4. double click a.tmp to open it - dialog asking about non-UTF occurs - do not hit anything yet
5. rm a.tmp (and wait until the explorer "notices it")
6. hit yes as whether you want to open the file in the editor --> exception
Comment 26 David Strupl 2011-07-27 13:48:30 UTC
Jarda, can you please have a look? The steps I described lead to the assertion error .... Thanks a lot, David
Comment 27 Jaroslav Tulach 2011-09-13 13:13:29 UTC
ergonomics#7066526d0a7f
Comment 28 Quality Engineering 2011-09-14 06:22:25 UTC
Integrated into 'main-golden'
Changeset: http://hg.netbeans.org/main-golden/rev/7066526d0a7f
User: Jaroslav Tulach <jtulach@netbeans.org>
Log: #180785: No assert when the document is externally removed