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 126143 - Assertion error whenever using Mercurial
Summary: Assertion error whenever using Mercurial
Status: RESOLVED DUPLICATE of bug 125939
Alias: None
Product: versioncontrol
Classification: Unclassified
Component: Mercurial (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: issues@versioncontrol
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-01-28 19:25 UTC by Torbjorn Norbye
Modified: 2008-01-30 11:03 UTC (History)
1 user (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 Torbjorn Norbye 2008-01-28 19:25:27 UTC
This is with a fresh trunk build of Mercurial. I keep hitting this assertion (I looked at the code and it asserts that
the method should only be called off the AWT thread, which is obviously not the case here). The below is from startup,
but I also get this when I try to do checkin-diffs etc.

java.lang.AssertionError
	at org.netbeans.modules.mercurial.util.HgCommand.execEnv(HgCommand.java:2178)
	at org.netbeans.modules.mercurial.util.HgCommand.exec(HgCommand.java:2287)
	at org.netbeans.modules.mercurial.util.HgCommand.getBranchInfo(HgCommand.java:1646)
	at org.netbeans.modules.mercurial.ui.status.VersioningPanel.getRepositoryBranchInfo(VersioningPanel.java:361)
	at org.netbeans.modules.mercurial.ui.status.VersioningPanel.access$300(VersioningPanel.java:89)
[catch] at org.netbeans.modules.mercurial.ui.status.VersioningPanel$1.run(VersioningPanel.java:265)
	at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
	at java.awt.EventQueue.dispatchEvent(EventQueue.java:461)
	at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:269)
	at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:190)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:184)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:176)
	at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
Comment 1 Torbjorn Norbye 2008-01-28 19:48:31 UTC
I tried uncommenting the assertion line. That didn't help - the really needs to not be called on the AWT thread. Trying
to diff my sources now hangs the IDE. This means I'm really stuck, I don't want to do command line diffing - I've
changed dozens of files in complicated ways. This is really P1 one for me. Desperate I tried removing the module I had
built and installd it via the Update Center instead, but I get the same assertion?

Thread t@68867: (state = IN_NATIVE)
 - java.io.FileInputStream.readBytes(byte[], int, int) @bci=0 (Compiled frame; information may be imprecise)
 - java.io.FileInputStream.read(byte[], int, int) @bci=4, line=194 (Compiled frame)
 - java.io.BufferedInputStream.read1(byte[], int, int) @bci=39, line=254 (Compiled frame)
 - java.io.BufferedInputStream.read(byte[], int, int) @bci=49, line=313 (Compiled frame)
 - sun.nio.cs.StreamDecoder$CharsetSD.readBytes() @bci=135, line=411 (Compiled frame)
 - sun.nio.cs.StreamDecoder$CharsetSD.implRead(char[], int, int) @bci=112, line=453 (Compiled frame)
 - sun.nio.cs.StreamDecoder.read(char[], int, int) @bci=180, line=183 (Compiled frame)
 - java.io.InputStreamReader.read(char[], int, int) @bci=7, line=167 (Interpreted frame)
 - java.io.BufferedReader.fill() @bci=145, line=136 (Interpreted frame)
 - java.io.BufferedReader.readLine(boolean) @bci=44, line=299 (Compiled frame)
 - java.io.BufferedReader.readLine() @bci=2, line=362 (Compiled frame)
 - org.netbeans.modules.mercurial.util.HgCommand.execEnv(java.util.List, java.util.List) @bci=316, line=2209
(Interpreted frame)
 - org.netbeans.modules.mercurial.util.HgCommand.exec(java.util.List) @bci=19, line=2287 (Interpreted frame)
 - org.netbeans.modules.mercurial.util.HgCommand.getLastChange(java.io.File, java.io.File, java.lang.String) @bci=86,
line=1746 (Interpreted frame)
 - org.netbeans.modules.mercurial.util.HgCommand.getLastChangeSetId(java.io.File, java.io.File) @bci=4, line=1728
(Interpreted frame)
 - org.netbeans.modules.mercurial.ui.diff.Setup.<init>(java.io.File, java.lang.String, int) @bci=58, line=145
(Interpreted frame)
 - org.netbeans.modules.mercurial.ui.diff.MultiDiffPanel.computeSetups(java.io.File[]) @bci=42, line=556 (Interpreted frame)
 - org.netbeans.modules.mercurial.ui.diff.MultiDiffPanel.refreshSetups() @bci=119, line=498 (Interpreted frame)
 - org.netbeans.modules.mercurial.ui.diff.MultiDiffPanel.<init>(org.netbeans.modules.versioning.spi.VCSContext, int,
java.lang.String) @bci=49, line=143 (Interpreted frame)
 - org.netbeans.modules.mercurial.ui.diff.DiffAction.diff(org.netbeans.modules.versioning.spi.VCSContext, int,
java.lang.String) @bci=7, line=103 (Interpreted frame)
 - org.netbeans.modules.mercurial.ui.diff.DiffAction.actionPerformed(java.awt.event.ActionEvent) @bci=151, line=93
(Interpreted frame)
 - javax.swing.AbstractButton.fireActionPerformed(java.awt.event.ActionEvent) @bci=84, line=1882 (Interpreted frame)
 - javax.swing.AbstractButton$Handler.actionPerformed(java.awt.event.ActionEvent) @bci=5, line=2202 (Interpreted frame)
 - javax.swing.DefaultButtonModel.fireActionPerformed(java.awt.event.ActionEvent) @bci=35, line=420 (Interpreted frame)
 - javax.swing.DefaultButtonModel.setPressed(boolean) @bci=117, line=258 (Interpreted frame)
 - javax.swing.AbstractButton.doClick(int) @bci=98, line=334 (Interpreted frame)
 - javax.swing.plaf.basic.BasicMenuItemUI.doClick(javax.swing.MenuSelectionManager) @bci=53, line=1051 (Interpreted frame)
 - apple.laf.CUIAquaMenuItem.doClick(javax.swing.MenuSelectionManager) @bci=22, line=119 (Interpreted frame)
Comment 2 John Rice 2008-01-28 20:12:31 UTC
The assert has been changed to a diagnostic log, so as not to block folks.

I am trying to get a changeset back for some of these issues, but failing on the push. I have already done a hg fetch,
so not sure what the problem is.
http://www.netbeans.org/nonav/issues/showattachment.cgi/55647/125120-hg.patch

Until I can get changes back we are little stuck. 

Can you give me some steps to reproduce the problem, so we can investigate tomorrow.

Comment 3 John Rice 2008-01-28 21:05:35 UTC
Well got my patches committed to head, which is good, so no more assert in execEnv.

I am running diff against various files I'm changing in the mercurial component from the hg.netbeans.org/main clone. I
did have a few problems if I bring up the Status View and don't give it time to complete the resfresh, but if I do doing
a diff works fine. Need to see if there is some timing issue we are hitting due to the large repo size.
Comment 4 Padraig Obriain 2008-01-30 11:03:09 UTC
I have removed the offending exec calls as part of the fix for #125939.

*** This issue has been marked as a duplicate of 125939 ***