clj-commons / seesaw

Seesaw turns the Horror of Swing into a friendly, well-documented, Clojure library
https://groups.google.com/group/seesaw-clj
1.48k stars 149 forks source link

Seesaw dependency makes the program crash when using Swing (getting SocketException) #203

Open MasterMastic opened 7 years ago

MasterMastic commented 7 years ago

I tried to use seesaw but just calls like frame or alert crashed the REPL. Then I saw that it causes crashes even if I try to use Swing directly.

REPL on a project without seesaw (only [org.clojure/clojure "1.8.0"]):

user=> (javax.swing.JFrame. "My Frame")
#object[javax.swing.JFrame 0x49ab72f0 "javax.swing.JFrame[frame0,0,0,0x0,invalid,hidden,layout=java.awt.BorderLayout,title=My Frame,resizable,normal,defaultCloseOperation=HIDE_ON_CLOSE,rootPane=javax.swing.JRootPane[,0,0,0x0,invalid,layout=javax.swing.JRootPane$RootLayout,alignmentX=0.0,alignmentY=0.0,border=,flags=16777673,maximumSize=,minimumSize=,preferredSize=],rootPaneCheckingEnabled=true]"]

REPL on a project with [seesaw "1.4.5"]:

user=> (javax.swing.JFrame. "My Frame")
SocketException Connection reset
        java.net.SocketInputStream.read (SocketInputStream.java:209)
        java.net.SocketInputStream.read (SocketInputStream.java:141)
        java.io.BufferedInputStream.fill (BufferedInputStream.java:246)
        java.io.BufferedInputStream.read (BufferedInputStream.java:265)
        java.io.FilterInputStream.read (FilterInputStream.java:83)
        java.io.PushbackInputStream.read (PushbackInputStream.java:139)
        clojure.tools.nrepl.bencode/read-byte (bencode.clj:84)
        clojure.tools.nrepl.bencode/read-byte (bencode.clj:-1)
        clojure.tools.nrepl.bencode/read-token (bencode.clj:236)
        clojure.tools.nrepl.bencode/read-token (bencode.clj:234)
        clojure.tools.nrepl.bencode/read-bencode (bencode.clj:254)
        clojure.tools.nrepl.bencode/read-bencode (bencode.clj:251)
Bye for now!

REPL-y 0.3.7, nREPL 0.2.12 Clojure 1.8.0 Java HotSpot(TM) 64-Bit Server VM 1.8.0_112-b15 Windows 10 x64 lein profiles.clj only has java-cmd, (no plugins).

ghost commented 6 years ago

I tried to reproduce this and couldn't using Java 1.8.0.121-b13. I can't reproduce it with

My guess is that it was an issue with java 1.8.0_112-b15