#jython IRC Log (v0.9)

Index

IRC Log for 2011-08-13

Timestamps are in GMT/BST.

[1:11] * lopex (~lopx@84-10-213-252.dynamic.chello.pl) Quit ()
[1:42] * juneau001 (~juneau@50.44.62.81) has joined #jython
[2:21] * thobe (~Adium@63-235-13-3.dia.static.qwest.net) has joined #jython
[2:21] * thobe (~Adium@63-235-13-3.dia.static.qwest.net) Quit (Client Quit)
[2:27] * thobe (~Adium@63-235-13-3.dia.static.qwest.net) has joined #jython
[2:28] * fwierzbicki (~frank@99-106-170-105.lightspeed.sntcca.sbcglobal.net) Quit (Ping timeout: 276 seconds)
[2:39] * fwierzbicki (~frank@99-106-170-105.lightspeed.sntcca.sbcglobal.net) has joined #jython
[4:27] * fwierzbicki (~frank@99-106-170-105.lightspeed.sntcca.sbcglobal.net) Quit (Quit: Ex-Chat)
[5:22] * robbyoconnor (~wakawaka@guifications/user/r0bby) Quit (Ping timeout: 263 seconds)
[5:30] * robbyoconnor (~wakawaka@guifications/user/r0bby) has joined #jython
[5:42] * jack-e (~jack-e@124-171-86-33.dyn.iinet.net.au) has joined #jython
[7:44] * camjackson (76d114bf@gateway/web/freenode/ip.118.209.20.191) has joined #jython
[7:45] <camjackson> Hey Jython people :)
[7:46] <camjackson> Firstly, sorry if this is against etiquette, but I looked for a Jython forum and couldn't find one, just a mailing list.
[7:46] <camjackson> I've been having some trouble with a Jython issue, using Swing. I've posted a question to stackoverflow, but no one has really been able to solve the problem fully.
[7:47] <camjackson> There are suggestions it has to do with the garbage collection of the JVM, but no one is really sure.
[7:47] <camjackson> Thought I might come here and see if anyone else could offer an extra hand. If you're interested, the question is here: http://stackoverflow.com/questions/6991878/why-is-my-file-getting-closed-if-i-dont-do-anything-with-it-for-a-while
[8:38] * jack-e (~jack-e@124-171-86-33.dyn.iinet.net.au) Quit (Quit: jack-e)
[10:03] * pr3d4k4t is now known as pr3d4t0r
[10:08] <agronholm> camjackson: the object can't cease to exist if you still have a live reference to it
[10:17] * lopex (~lopx@84-10-213-252.dynamic.chello.pl) has joined #jython
[10:48] <camjackson> Well yeah, but then why am I getting the closed file exception?
[10:50] <agronholm> that's a totally different question
[10:50] <agronholm> camjackson: if you just open() the file and then make it sleep for 5 minutes and then try to read it, do you still get the error
[10:51] <agronholm> if not, that would invalidate your theory
[11:39] <camjackson> Hmm, not sure. I'm at home atm, don't have python installed, this is a work thing.
[11:40] <agronholm> try it when you get back
[11:41] <camjackson> Yeah I will.
[11:42] <camjackson> Part of the mystery is exactly what's being preserved once all the code I've written has run its course, and swing is the only thing left keeping the application open.
[11:42] <agronholm> not sure what you mean
[11:43] <camjackson> Well, like I explained on SO, all I have to do is put 'while True: pass' after the class initialisation, and the problem goes away.
[11:43] <camjackson> But if, after foo = Foo(), there's no code left to execute, that's when problems start cropping up.
[11:43] * robbyoconnor (~wakawaka@guifications/user/r0bby) Quit (Read error: Connection reset by peer)
[11:44] * robbyoconnor (~wakawaka@guifications/user/r0bby) has joined #jython
[11:44] <camjackson> Which is what suggested to me that foo was being cleaned up. As if the jvm wasn't registering that the JButton still had a reference to one of the object's methods.
[11:45] <camjackson> But then, that can't be what's happening, because if I stick in a random test variable that gets passed to the constructor, I never have any troubles getting the value from it.
[11:45] <agronholm> well, maybe you should do the whole initialization in the EDT?
[11:45] <camjackson> So I'm right back to square one, wondering why just that file is being closd.
[11:45] <agronholm> that is what I do
[11:46] <agronholm> I don't suppose you know of jython-swingutils?
[11:46] <agronholm> http://packages.python.org/jython-swingutils/
[11:47] <agronholm> http://packages.python.org/jython-swingutils/modules/threads/swing.html#module-swingutils.threads.swing
[11:49] <camjackson> ...I must suck at google. I spent a good hour or so looking for tools/packages for jython+swing stuff, and I never found that.
[11:50] <agronholm> you never ventured to the python package index I guess
[11:52] <camjackson> Haha nah. I think I was more looking for a drag and drop tool, like what netbeans has. Didn't really think to look for code packages.
[11:53] <camjackson> In regards to my actual question, the problem is fairly academic now, as I have an infinite loop for updating stuff etc that runs after object initialisation anyway.
[11:54] <agronholm> and keeps chewing up cpu cycles for no good reason?
[11:54] <camjackson> But I (and a couple of others on SO) just wanted to know exactly what I've stumbled upon here.
[11:56] <camjackson> Well not for no good reason, it is actually doing things. Sending and receiving things over a socket mostly.
[11:57] <agronholm> oh, I thought you just had a while True: pass loop
[11:57] <camjackson> nonono, it does serve a purpose haha.
[11:58] <camjackson> I was just making the point that while True: pass was enough to make the problem go away.
[12:38] * lopex (~lopx@84-10-213-252.dynamic.chello.pl) Quit ()
[14:53] * camjackson (76d114bf@gateway/web/freenode/ip.118.209.20.191) Quit (Quit: Page closed)
[15:45] * offbyone (u910@gateway/web/irccloud.com/x-njghoioafmhpeohr) Quit (Max SendQ exceeded)
[15:45] * offbyone (u910@gateway/web/irccloud.com/x-hiqquaowsjcwvgbk) has joined #jython
[15:46] * thobe (~Adium@63-235-13-3.dia.static.qwest.net) Quit (Quit: Leaving.)
[15:46] * enebo (~enebo@67-4-212-80.mpls.qwest.net) has joined #jython
[18:43] * luizribeiro (~luiz@tempest.luizribeiro.org) Quit (Quit: moving to bip)
[19:37] * lopex (~lopx@84-10-213-252.dynamic.chello.pl) has joined #jython
[20:18] * stakkars (~tismer@p5DCE36EE.dip.t-dialin.net) has joined #jython
[20:19] * stakkars (~tismer@p5DCE36EE.dip.t-dialin.net) Quit (Client Quit)
[20:35] * stakkars (~tismer@p5DCE36EE.dip.t-dialin.net) has joined #jython
[20:49] * enebo (~enebo@67-4-212-80.mpls.qwest.net) Quit (Quit: enebo)
[21:16] * stakkars (~tismer@p5DCE36EE.dip.t-dialin.net) Quit (Quit: schnarch)
[22:04] * lolsuper_ (~super_@pool-96-254-154-66.tampfl.fios.verizon.net) has joined #jython
[22:04] * lolsuper_ (~super_@pool-96-254-154-66.tampfl.fios.verizon.net) Quit (Changing host)
[22:04] * lolsuper_ (~super_@unaffiliated/lolsuper-/x-9881387) has joined #jython
[22:38] * lopexx (~lopx@84-10-213-252.dynamic.chello.pl) has joined #jython
[22:39] * lopex (~lopx@84-10-213-252.dynamic.chello.pl) Quit (Ping timeout: 258 seconds)
[22:41] * lopexx (~lopx@84-10-213-252.dynamic.chello.pl) Quit (Client Quit)
[22:41] * lopex (~lopx@84-10-213-252.dynamic.chello.pl) has joined #jython

Index

These logs were automatically created by JythonLogBot_ on irc.freenode.net using a slightly modified version of the Java IRC LogBot (github).