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 229340 - AssertionError: startOffset=1318 > endOffset=1317, fold=[code-block] E1 <1318,1317>, desc='{...}', hash=0x69a23777, [1318, 1317] {1319, 1316}
Summary: AssertionError: startOffset=1318 > endOffset=1317, fold=[code-block] E1 <1318...
Status: RESOLVED INCOMPLETE
Alias: None
Product: editor
Classification: Unclassified
Component: Code folding (show other bugs)
Version: 7.4
Hardware: All All
: P2 normal (vote)
Assignee: Svata Dedic
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-05-03 23:46 UTC by tomjnsn
Modified: 2014-03-15 06:07 UTC (History)
8 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 200403


Attachments
stacktrace (2.07 KB, text/plain)
2013-05-03 23:46 UTC, tomjnsn
Details
stacktrace (2.33 KB, text/plain)
2013-07-31 04:01 UTC, MackSix
Details
stacktrace (2.33 KB, text/plain)
2013-07-31 07:34 UTC, MackSix
Details
stacktrace (2.34 KB, text/plain)
2013-08-04 20:50 UTC, MackSix
Details
stacktrace (2.01 KB, text/plain)
2013-08-09 04:59 UTC, brettryan
Details
stacktrace (1.19 KB, text/plain)
2014-01-27 16:13 UTC, brettryan
Details

Note You need to log in before you can comment on or make changes to this bug.
Description tomjnsn 2013-05-03 23:46:56 UTC
Build: NetBeans IDE Dev (Build 201305022300)
VM: Java HotSpot(TM) 64-Bit Server VM, 23.6-b04, Java(TM) SE Runtime Environment, 1.7.0_10-b18
OS: Mac OS X

User Comments:
tomjnsn: editing javascript




Stacktrace: 
java.lang.AssertionError: startOffset=1318 > endOffset=1317, fold=[code-block] E1 <1318,1317>, desc='{...}', hash=0x69a23777, [1318, 1317] {1319, 1316}
   at org.netbeans.modules.editor.fold.FoldHierarchyTransactionImpl.updateAffectedOffsets(FoldHierarchyTransactionImpl.java:1031)
   at org.netbeans.modules.editor.fold.FoldHierarchyTransactionImpl.removeFoldFromHierarchy(FoldHierarchyTransactionImpl.java:943)
   at org.netbeans.modules.editor.fold.FoldHierarchyTransactionImpl.removeFold(FoldHierarchyTransactionImpl.java:461)
   at org.netbeans.modules.editor.fold.FoldHierarchyExecution.remove(FoldHierarchyExecution.java:482)
   at org.netbeans.modules.editor.fold.FoldOperationImpl.removeFromHierarchy(FoldOperationImpl.java:204)
   at org.netbeans.modules.editor.fold.FoldOperationImpl$Refresher.run(FoldOperationImpl.java:654)
Comment 1 tomjnsn 2013-05-03 23:46:58 UTC
Created attachment 134097 [details]
stacktrace
Comment 2 MackSix 2013-07-31 04:01:02 UTC
Created attachment 138027 [details]
stacktrace

Testing Ctrl+Delete/Ctrl+Backspace on CamelCase Type Name.
Comment 3 MackSix 2013-07-31 07:34:02 UTC
Created attachment 138035 [details]
stacktrace

1. Used Source>>Organize Members on test file with modified member organization settings in Options.
2. Constructors were copied instead of moved so there were 2 copies of them.
3. I clicked Undo and this Error happend.
Comment 4 MackSix 2013-08-04 20:50:10 UTC
Created attachment 138258 [details]
stacktrace

1. Did a Source>>Organize Members on TS sample project. (It takes 3 times to finish the sorting because of flawed Organize Members algorithm.)
2. Clicked Undo 3 times. 
This AssertionError happened
Comment 5 brettryan 2013-08-09 04:59:16 UTC
Created attachment 138476 [details]
stacktrace

Used Redo (CMD+SHIFT+Z).
Comment 6 Quality Engineering 2013-08-09 10:47:41 UTC
Integrated into 'main-silver', will be available in build *201308090746* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/fc4254b26c7d
User: Svata Dedic <sdedic@netbeans.org>
Log: #229340: corrected typo in logs
Comment 7 MackSix 2013-08-20 02:03:26 UTC
It happened again in a newer build when I was undoing some changes done by Source >> "Organize Members" and History View >> History List Context Menu: "Revert from History".

Exception report:

http://statistics.netbeans.org/analytics/exception.do?id=687034

Product Version: NetBeans IDE Dev (Build 201308182300)
Java: 1.7.0_40-ea; Java HotSpot(TM) 64-Bit Server VM 24.0-b55
Runtime: Java(TM) SE Runtime Environment 1.7.0_40-ea-b38
System: Windows 7 version 6.1 running on amd64; Cp1252; en_US (nb)
Comment 8 brettryan 2014-01-27 16:13:09 UTC
Created attachment 144421 [details]
stacktrace

Used "Undo" command.
Comment 9 Alexander Simon 2014-02-21 18:22:37 UTC
24 reports => P2
Comment 10 Svata Dedic 2014-03-04 16:27:25 UTC
I did not reproduce the defect, however I've changed the checking from assert to LOG.warning() + introduced a 'damaged' flag in the hierarchy, so after the hierarchy becomes damaged and the damage will be compensate, extensive logging will start on the document - after each subsequent damage to the hieararchy, original + next hierarchy state + document contents will be logged.

Resolving as INCOMPLETE, waiting for logs to come for final solution - jet-main#46baa7217b92
Comment 11 Quality Engineering 2014-03-15 06:07:36 UTC
Integrated into 'main-silver', will be available in build *201403150001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/46baa7217b92
User: Svata Dedic <sdedic@netbeans.org>
Log: #229340: asserts turned into log, verbose logging from damaged hierarchy