|
From: Doug B. <do...@cl...> - 2004-03-26 14:05:45
|
Ok - I found that when I disabled BufferTabs (but left it installed), this problem went away. Doug Doug Breaux wrote: > I've just noticed this on pre11, but it's possible it was happening in > an earlier release too. > > With the Sessions plugin, when I switch to certain Sessions, I get this > Exception logged (and I see some symptoms of session-switching and > buffer-loading not quite completing): > > [error] AWT-EventQueue-0: java.lang.NullPointerException > [error] AWT-EventQueue-0: at > org.gjt.sp.jedit.Buffer.markTokens(Buffer.java:2116) > [error] AWT-EventQueue-0: at > org.gjt.sp.jedit.textarea.ChunkCache.lineToChunkList(ChunkCache.java:752) > [error] AWT-EventQueue-0: at > org.gjt.sp.jedit.textarea.ChunkCache.updateChunksUpTo(ChunkCache.java:627) > [error] AWT-EventQueue-0: at > org.gjt.sp.jedit.textarea.ChunkCache.getLineInfo(ChunkCache.java:248) > [error] AWT-EventQueue-0: at > org.gjt.sp.jedit.textarea.JEditTextArea.recalculateLastPhysicalLine(JEditTextArea.java:6000) > > [error] AWT-EventQueue-0: at > org.gjt.sp.jedit.textarea.DisplayManager.init(DisplayManager.java:572) > [error] AWT-EventQueue-0: at > org.gjt.sp.jedit.textarea.JEditTextArea.setBuffer(JEditTextArea.java:302) > [error] AWT-EventQueue-0: at > org.gjt.sp.jedit.EditPane.setBuffer(EditPane.java:105) > [error] AWT-EventQueue-0: at > org.gjt.sp.jedit.View.setBuffer(View.java:961) > [error] AWT-EventQueue-0: at sessions.Session.open(Session.java:270) > [error] AWT-EventQueue-0: at sessions.Session.open(Session.java:221) > [error] AWT-EventQueue-0: at > sessions.SessionManager.setCurrentSession(SessionManager.java:147) > [error] AWT-EventQueue-0: at > sessions.SessionSwitcher.itemStateChanged(SessionSwitcher.java:178) > [error] AWT-EventQueue-0: at > javax.swing.JComboBox.fireItemStateChanged(JComboBox.java:1162) > [error] AWT-EventQueue-0: at > javax.swing.JComboBox.selectedItemChanged(JComboBox.java:1219) > [error] AWT-EventQueue-0: at > javax.swing.JComboBox.contentsChanged(JComboBox.java:1266) > [error] AWT-EventQueue-0: at > javax.swing.AbstractListModel.fireContentsChanged(AbstractListModel.java:100) > > [error] AWT-EventQueue-0: at > javax.swing.DefaultComboBoxModel.setSelectedItem(DefaultComboBoxModel.java:88) > > [error] AWT-EventQueue-0: at > javax.swing.JComboBox.setSelectedItem(JComboBox.java:551) > [error] AWT-EventQueue-0: at > javax.swing.JComboBox.setSelectedIndex(JComboBox.java:597) > [error] AWT-EventQueue-0: at > javax.swing.plaf.basic.BasicComboPopup$ListMouseHandler.mouseReleased(BasicComboPopup.java:749) > > [error] AWT-EventQueue-0: at > java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:232) > [error] AWT-EventQueue-0: at > java.awt.Component.processMouseEvent(Component.java:5100) > [error] AWT-EventQueue-0: at > javax.swing.plaf.basic.BasicComboPopup$2.processMouseEvent(BasicComboPopup.java:452) > > [error] AWT-EventQueue-0: at > java.awt.Component.processEvent(Component.java:4897) > [error] AWT-EventQueue-0: at > java.awt.Container.processEvent(Container.java:1569) > [error] AWT-EventQueue-0: at > java.awt.Component.dispatchEventImpl(Component.java:3615) > [error] AWT-EventQueue-0: at > java.awt.Container.dispatchEventImpl(Container.java:1627) > [error] AWT-EventQueue-0: at > java.awt.Component.dispatchEvent(Component.java:3477) > [error] AWT-EventQueue-0: at > java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:3483) > [error] AWT-EventQueue-0: at > java.awt.LightweightDispatcher.processMouseEvent(Container.java:3198) > [error] AWT-EventQueue-0: at > java.awt.LightweightDispatcher.dispatchEvent(Container.java:3128) > [error] AWT-EventQueue-0: at > java.awt.Container.dispatchEventImpl(Container.java:1613) > [error] AWT-EventQueue-0: at > java.awt.Window.dispatchEventImpl(Window.java:1606) > [error] AWT-EventQueue-0: at > java.awt.Component.dispatchEvent(Component.java:3477) > [error] AWT-EventQueue-0: at > java.awt.EventQueue.dispatchEvent(EventQueue.java:456) > [error] AWT-EventQueue-0: at > java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:201) > > [error] AWT-EventQueue-0: at > java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151) > > [error] AWT-EventQueue-0: at > java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:145) > [error] AWT-EventQueue-0: at > java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:137) > [error] AWT-EventQueue-0: at > java.awt.EventDispatchThread.run(EventDispatchThread.java:100) > > This does not happen with all Sessions, but I can tell no obvious > differences between the Sessions for which it happens and those for > which it does not. > > Can anyone tell from the stack trace what is a likely cause? Sessions > is doing no more than view.setBuffer(buffer), so something about the > current Buffer seems to be upsetting jEdit. The line in Buffer.java > actually throwing the Exception is: > > context = tokenMarker.markTokens(prevContext, > (i == lineIndex ? tokenHandler > : DummyTokenHandler.INSTANCE),seg); > > which means that tokenMarker is null. What does that mean, and why > would it be that way for certain Buffers? > > I'm willing to work on Sessions if the problem is there, or to manually > clean up a property somewhere if necessary. I just need some help > finding the root cause. Thanks. |