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

 
 

bug #49522: runtime exception from kawa -w

Submitter:  Sudarshan S Chawathe <chaw>
Submitted:  Thu 03 Nov 2016 01:11:11 PM UTC
   
 
Category:  Scheme language Severity:  3 - Normal
Item Group:  Run-time exception Status:  Postponed
Privacy:  Public Assigned to:  bothner
Open/Closed:  Open
* Mandatory Fields

Add a New Comment Rich Markup
   

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>
Group administrator
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 Files:
   
   
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
  • -email is unavailable- added by bothner (Posted a comment)
  • -email is unavailable- added by chaw (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2016-11-03 bothner StatusNone Postponed
        Assigned toNone bothner
    2016-11-03 chaw Attached File- Added typescript, #38876

    Back to the top

    Powered by Savane 3.13-3230.
    Corresponding source code