#jython IRC Log (v0.9)

Index

IRC Log for 2012-03-30

Timestamps are in GMT/BST.

[0:48] * shashank (~shashank@184-96-153-85.hlrn.qwest.net) Quit (Ping timeout: 276 seconds)
[1:30] * juneau001 (~juneau@50.44.13.106) has joined #jython
[2:31] * shashank (~shashank@184-96-153-85.hlrn.qwest.net) has joined #jython
[4:16] * TresEquis (~tseaver@ip72-209-214-199.dc.dc.cox.net) has joined #jython
[4:24] * TresEquis (~tseaver@ip72-209-214-199.dc.dc.cox.net) Quit (Quit: Ex-Chat)
[6:02] * Oti (~ohumbel@adsl-89-217-239-121.adslplus.ch) Quit (Quit: Oti)
[7:42] * lheuer (~Adium@unaffiliated/lheuer) has joined #jython
[7:58] * fwierzbicki (~frank@99-106-170-105.lightspeed.sntcca.sbcglobal.net) Quit (Ping timeout: 244 seconds)
[8:00] * Oti (5390f2dc@gateway/web/freenode/ip.83.144.242.220) has joined #jython
[8:03] * fwierzbicki (~frank@99-106-170-105.lightspeed.sntcca.sbcglobal.net) has joined #jython
[9:14] * seletz (~seletz@business-178-015-118-087.static.arcor-ip.net) Quit (Quit: seletz)
[9:23] * seletz (~seletz@business-178-015-118-087.static.arcor-ip.net) has joined #jython
[9:23] * seletz (~seletz@business-178-015-118-087.static.arcor-ip.net) has left #jython
[10:01] <agronholm> finally
[10:01] <agronholm> took me so many hours to figure this out...why my signal handler was not being called
[10:02] <agronholm> http://pastebin.com/9Ld4kwGZ
[10:03] <agronholm> as an exercise to readers: why does it print 'task started' only with wrapper1 but not wrapper2?
[10:03] <agronholm> I know the answer now, but free internets to those who guess correctly :)
[10:15] * juneau001 (~juneau@50.44.13.106) Quit (Quit: juneau001)
[10:16] <mrud> agronholm: not sure but maybe no reference for task and therefore it gets removed before it gets executed?
[10:17] <agronholm> before what exactly gets executed?
[10:18] <agronholm> InlineTask.run() and BackgroundTask.run() are both executed with both wrappers
[10:19] <agronholm> but the handleTaskStarted() signal handler is not executed with wrapper2
[10:19] <mrud> agronholm: yeah but it will only get executed after app.exec_()
[10:19] <mrud> ?
[10:19] <agronholm> yes
[10:19] <mrud> but i am probably wrong
[10:19] <agronholm> what was your theory then?
[10:20] <agronholm> my reasoning yesterday was that a connected signal handler would keep the InlineTask from being garbage collected
[10:20] <mrud> i think the problem is that the threads/tasks are only started afterapp.exec_()
[10:21] <agronholm> that is not the problem
[10:21] <agronholm> the problem is that Qt does not keep strong references to the signal handlers
[10:21] <agronholm> so Qt notes that the weak reference is invalid and thus does not execute the signal handler
[10:22] <agronholm> with wrapper 1 the InlineTask instance is stored on the module level so the weak reference is still valid when Qt calls the signal handler
[10:22] <agronholm> took me better part of the day (and yesterday) to come to this conclusion
[10:23] <agronholm> I assumed Qt would keep a strong reference to the handler because that is what Swing (Java) does (I do a fair bit of GUI programming with Swing)
[10:24] <agronholm> but that is not the case
[10:24] <mrud> i think i once had a similar issue
[10:24] <agronholm> it was hard to debug because Qt is essentially a black box where with swing you could dive into the internals with the debugger and figure it out yourself
[10:25] <agronholm> mrud: what kind of issue
[10:26] <mrud> agronholm: i had to keep a reference to a field or something with qt otherwise i wouldn't get a notification
[10:27] <agronholm> yeah, exactly the same problem then
[10:27] <mrud> but i don't remember the details, basically it's the same issue
[10:29] <mrud> agronholm: but it was a long time ago...i don't do much gui stuff
[11:10] * robbyoconnor (~wakawaka@guifications/user/r0bby) Quit (Ping timeout: 244 seconds)
[11:16] * juneau001 (~juneau@131.225.24.163) has joined #jython
[12:20] * wainersm (~wainersm@189.61.204.85) has joined #jython
[13:13] * enebo (~enebo@65-128-218-235.mpls.qwest.net) has joined #jython
[15:06] * BruceZu (~BruceZu@123.114.182.47) has joined #jython
[16:18] * Oti (5390f2dc@gateway/web/freenode/ip.83.144.242.220) Quit (Ping timeout: 245 seconds)
[17:56] * lheuer (~Adium@unaffiliated/lheuer) Quit (Quit: Leaving.)
[17:56] * robbyoconnor (~wakawaka@guifications/user/r0bby) has joined #jython
[18:06] * robbyoconnor (~wakawaka@guifications/user/r0bby) Quit (Ping timeout: 244 seconds)
[19:07] * juneau001 (~juneau@131.225.24.163) Quit (Quit: juneau001)
[19:57] * robbyoconnor (~wakawaka@146.95.62.197) has joined #jython
[19:57] * robbyoconnor (~wakawaka@146.95.62.197) Quit (Changing host)
[19:58] * robbyoconnor (~wakawaka@guifications/user/r0bby) has joined #jython
[20:04] * robbyoconnor (~wakawaka@guifications/user/r0bby) Quit (Read error: Connection reset by peer)
[20:04] * enebo (~enebo@65-128-218-235.mpls.qwest.net) Quit (Quit: enebo)
[20:22] * enebo (~enebo@71.36.147.217) has joined #jython
[20:51] * enebo (~enebo@71.36.147.217) Quit (Quit: enebo)
[20:51] * shashank (~shashank@184-96-153-85.hlrn.qwest.net) Quit (Quit: Leaving.)
[21:03] * Arfrever (~Arfrever@apache/committer/Arfrever) has joined #jython
[21:44] * shashank (~shashank@184-96-153-85.hlrn.qwest.net) has joined #jython
[21:56] * wainersm (~wainersm@189.61.204.85) Quit (Quit: Ex-Chat)
[21:56] * robbyoconnor (~wakawaka@guifications/user/r0bby) has joined #jython
[23:14] * robbyoconnor (~wakawaka@guifications/user/r0bby) Quit (Ping timeout: 246 seconds)
[23:56] * shashank (~shashank@184-96-153-85.hlrn.qwest.net) Quit (Ping timeout: 244 seconds)

Index

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