Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>I have almost no idea whats going on in your code, in terms of its intent, but here is the offending line of code causing your crash:</p> <pre><code>class flooderthread(QtCore.QThread): ... def run(self): connecter() # this is the culprit </code></pre> <p>In your <code>fun.main()</code>, you call the <code>connecter()</code> once already to set up all your signal/slot connections. This call is occurring in your main thread. But then you have each thread also calling that method, which is trying to make duplicate connections to objects across threads. The actual crash may be caused much deeper than this function, because its the result of signal firing, but I find it just too difficult to hop around the code to get any deeper. Most likely you are having the thread directly modify GUI elements when it shouldn't. </p> <p>Once you have that fixed, you have one other typo that will make it crash:</p> <pre><code>def main(self): connecter() ... time.sleep(3) gui() f5.start() gui() self.sleep(3) # should be time.sleep(3) gui() ... </code></pre> <p>Aside from this, I just want to point out that this script is extremely hard to follow. You are making use of globals everywhere, so its hard to know where certain variables and function calls were defined. You have to scroll around a bunch, chasing them down. You may want to stop and reorganize this before it continues to snowball.<br> I would <strong>highly</strong> suggest picking up a book like this: <a href="http://www.qtrac.eu/pyqtbook.html" rel="nofollow">http://www.qtrac.eu/pyqtbook.html</a><br> What you should focus on is organizing proper classes. Your current class structures need a lot of review, so you may want to even pick up a good python book to first learn how to write classes. I realize you are just learning, which is why I am hoping this advise will help steer you in the right direction. </p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload