Menu

#1880 LatextTools is creating gui components in a background thread

None
open
nobody
None
5
2017-06-20
2017-03-20
Alan Ezust
No

I have ContextMenu plugin set to show me an extra menu just before the Help menu depending on what mode I am editing.
This is broken in Substance L&F.
Also, I can't see a Help menu in the main menubar.
Lots of exceptions are thrown in the activity log.

at java.awt.Container.remove(Container.java:1261)
at contextmenu.ContextMenuPlugin.addToMenubar(ContextMenuPlugin.java:188)
at contextmenu.ContextMenuPlugin.addToMenubar(ContextMenuPlugin.java:174)
at contextmenu.ContextMenuPlugin.updateAllViews(ContextMenuPlugin.java:280)
at contextmenu.ContextMenuPlugin.handleMessage(ContextMenuPlugin.java:145)
at org.gjt.sp.jedit.EditBus.dispatch(EditBus.java:246)

Discussion

  • Dale Anson

    Dale Anson - 2017-04-03

    Alan, would you add a little detail, please? The Help menu you mention is the one in the main jEdit menu bar? You can't see it at all? What theme are you using in Substance? I assume you're using the latest Look and Feel plugin (1.9.0) and latest Substance plugin (7.3.1)?

    I don't see the error you're reporting at all, the ContextMenu menu shows up in the main menu bar just to the left of the Help menu when I switch to a buffer with the right mode, and the Help menu is visible at all times. I'm using Substance with the Graphite theme.

     
  • Alan Ezust

    Alan Ezust - 2017-04-03

    I tried switching to Graphite and didn't see the issue until after jEdit restart.
    Issue shows up immediately however, with BusinessBlueSteel.
    And to other questions: yes.
    Activity Log attached.

     
  • Dale Anson

    Dale Anson - 2017-04-03

    I think this is a bug in LaTeXTools. I didn't have that plugin installed, now I do and now I see the error. The exception is telling the right story, LatextTools is creating gui components in a background thread rather than on the event dispatch thread. If I dock the LatexTool dockables, I do see the ContextMenu appear in the main jEdit menu bar and I still see the Help menu. I also see all the errors, though.

     
  • Dale Anson

    Dale Anson - 2017-04-03

    BTW, that BusinessBlueSteel is a very nice looking theme. I'm going to stay with it for a while, I think.

     
  • Dale Anson

    Dale Anson - 2017-06-20
    • summary: ContextMenuPlugin + Substance L&F = bad menubar --> LatextTools is creating gui components in a background thread
    • Group: -->
     
  • Dale Anson

    Dale Anson - 2017-06-20

    Renamed this issue since the bug is actually located in LatexTools rather than ContextMenu or Substance.

     

Log in to post a comment.