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.
1) Open a Java file and create a dozen local history points. 2) View History with History button on toolbar. 3) Change Compare Mode to "Diff to previous". 4) Start at top of history list and slowly click on each entry. Eventually the Diff window will hang at "Preparing diff, please wait..." 5) Try clicking on the next and it may or may not display, but eventually if you click more, the Diff window will display. See attached screenshot and messages.log file.
Created attachment 118937 [details] Screenshot
Created attachment 118938 [details] log file
Product Version: NetBeans IDE Dev (Build 201205010400) Java: 1.7.0_04; Java HotSpot(TM) Client VM 23.0-b21 System: Windows Vista version 6.0 running on x86; Cp1252; en_US (nb)
tried to reproduce a couple of times, but without success. please provide a threaddump
Created attachment 118977 [details] thread dump Attached thread dump.
still not sure how to reproduce, but running task cancellation when a new entry is selected is obviously insufficient. will fix that, add some diagnostic and lets see what happens ...
hopefuly fixed in core-main #8b15652b218c feel free to reopen in case the problem should still appear. Please run the IDE with -J-Dorg.netbeans.modules.versioning.ui.history.level=-1 in such a case, reproduce and attach messages.log as well as a thread dump created while the progress bar is still running in the diff view.
Integrated into 'main-golden', will be available in build *201205040400* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/8b15652b218c User: Tomas Stupka <tstupka@netbeans.org> Log: cancel properly Issue #211921 - Local History: Diff to Previous Hangs at "Preparing diff, please wait..."
It seems to be harder to get it to hang now. It seems that I have to click quickly, as soon as the Diff window displays between each line, to get it to hang. If I wait a good second or more between each clicks, it doesn't hang. I will hang and I have attached a new log file with -J-Dorg.netbeans.modules.versioning.ui.history.level=-1 and thread dump. Product Version: NetBeans IDE Dev (Build 201205050400) Java: 1.7.0_04; Java HotSpot(TM) Client VM 23.0-b21 System: Windows Vista version 6.0 running on x86; Cp1252; en_US (nb)
Created attachment 119121 [details] New log file
Created attachment 119122 [details] New thread dump
could reproduce as described above with the addition that it was necessary to click entries which where already once viewed/diffed and therefore cached
fixed in core-main #10be4f819b44
Integrated into 'main-golden', will be available in build *201205160400* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/10be4f819b44 User: Tomas Stupka <tstupka@netbeans.org> Log: Issue #211921 - Local History: Diff to Previous Hangs at "Preparing diff, please wait..."