bugKawa - Bugs: bug #49522, runtime exception from kawa -w

 
 

bug #49522: runtime exception from kawa -w

Submitted by:  Sudarshan S Chawathe <chaw>
Submitted on:  Thu 03 Nov 2016 01:11:11 PM UTC  
 
Category: Scheme languageSeverity: 3 - Normal
Item Group: Run-time exceptionStatus: Postponed
Privacy: PublicAssigned to: Per Bothner <bothner>
Open/Closed: Open

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Thu 03 Nov 2016 05:55:34 PM UTC, comment #1:

That one is difficult to fix - and probably low priority.

Note this is the old Swing-based console, not the new Javafx/DomTerm-based console. The former does not do terminal emulation, and the input editing is whatever Swing gives you.

To get the new JavaFX/DomTerm-based console you need to have JavaFX. The easiest way to get it is to use Java SE (JDK).

I'm considering how to have -w create a DomTerm window without JavaFX. It's a bit tricky. The idea is to embed a WebSocket server in Kawaa, and then have -w pop up a browser window (optionally in "app" mode). Most of the pieces are available, but hooking them together (in a way that we can use JLine input editing) needs a little bit of head-scratching and coding.

Per Bothner <bothner>
Project AdministratorIn charge of this item.
Thu 03 Nov 2016 01:11:11 PM UTC, original submission:

Using the most recent binary pre-release version of kawa, I get a runtime exception with the following sequence of actions:

* kawa -w

* In the kawa window that appears, type Control-a followed by space.

This is on a Debian 8 (stable/jessie) 32 bit setup with OpenJDK 8. If I don't type the offending key combination (which I typed by accident), then kawa -w seems to work well, including the display of pictures from (kawa pictures).

The first few lines of the stack trace are below and the full stack trace and some version info are in the attached file.

Exception in thread "AWT-EventQueue-0" javax.swing.text.StateInvariantError: GlyphView: Stale view: javax.swing.text.BadLocationException: Length must be positive
at javax.swing.text.GlyphView.getText(GlyphView.java:137)
at javax.swing.text.GlyphPainter1.getSpan(GlyphPainter1.java:60)
at javax.swing.text.GlyphView.getPreferredSpan(GlyphView.java:592)
at javax.swing.text.FlowView$LogicalView.getPreferredSpan(FlowView.java:732)
at javax.swing.text.FlowView.calculateMinorAxisRequirements(FlowView.java:233)
at javax.swing.text.ParagraphView.calculateMinorAxisRequirements(ParagraphView.java:717)
at javax.swing.text.BoxView.checkRequests(BoxView.java:935)
at javax.swing.text.BoxView.getMinimumSpan(BoxView.java:568)
at javax.swing.text.BoxView.calculateMinorAxisRequirements(BoxView.java:903)
at javax.swing.text.BoxView.checkRequests(BoxView.java:935)
at javax.swing.text.BoxView.setSpanOnAxis(BoxView.java:343)
at javax.swing.text.BoxView.layout(BoxView.java:708)
at javax.swing.text.BoxView.setSize(BoxView.java:397)
at javax.swing.plaf.basic.BasicTextUI$RootView.setSize(BasicTextUI.java:1722)
at javax.swing.plaf.basic.BasicTextUI.getPreferredSize(BasicTextUI.java:912)
at javax.swing.JComponent.getPreferredSize(JComponent.java:1662)

Sudarshan S Chawathe <chaw>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

Attached Files
file #38876:  typescript added by chaw (8KiB - application/octet-stream)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by bothner (Posted a comment)
  • -unavailable- added by chaw (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 3 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Thu 03 Nov 2016 05:55:34 PM UTCbothnerStatusNone=>Postponed
      Assigned toNone=>bothner
    Thu 03 Nov 2016 01:11:11 PM UTCchawAttached File-=>Added typescript, #38876

    Back to the top


    Powered by Savane 3.1-cleanup1