Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Console crashes with qt code #796

Closed
spyder-bot opened this issue Feb 17, 2015 · 7 comments
Closed

Console crashes with qt code #796

spyder-bot opened this issue Feb 17, 2015 · 7 comments

Comments

@spyder-bot
Copy link
Collaborator

From [email protected] on 2011-10-10T07:04:45Z

What steps will reproduce the problem?

  1. type the following on an ipython console
    In [1]: from PyQt4.QtGui import QGraphicsScene, QGraphicsView

In [2]: s = QGraphicsScene()

In [3]: s.addText('toll')
Out[3]: <PyQt4.QtGui.QGraphicsTextItem object at 0x107c16738>

In [4]: v = QGraphicsView(s)

In [5]: v.show()

In [6]: del s What is the expected output? What do you see instead? The console crashes with the following print:
In [7]: 2011-10-10 14:00:12.514 Python[72047:1b03] *** __NSAutoreleaseNoPool(): Object 0x1081ae890 of class NSConcreteMapTable autoreleased with no pool in place - just leaking

spyder 2.0.13, Mac OS X 10.6.8, Python 2.6.1, Qt 4.7.2, PyQt 4.7.4 on Darwin

On windows the error
QObject::killTimers: timers cannot be stopped from another thread
appears when s and v are deleted...

Original issue: http://code.google.com/p/spyderlib/issues/detail?id=796

@spyder-bot
Copy link
Collaborator Author

From [email protected] on 2011-10-10T05:09:27Z

If that is of any help, I attach a stack trace of the crashed IPython process

Attachment: spyderqtcrash.rtf

@spyder-bot
Copy link
Collaborator Author

From pierre.raybaut on 2011-10-23T03:22:01Z

I haven't had the opportunity to play with QGraphicsScene/View interactively so I don't have any experience of it.

Anyway, typing the commands above do the following on Windows (works the same inside and outside Spyder):

  • in a standard Python interpreter: makes Python crash (right after creating the graphics scene... weird)
  • in IPython v0.10.x: no traceback, no crash, everything runs smoothly

So, basically, I can't reproduce this bug on Windows. I know that you specify that it crashed on OSX specifically but I'm only working on Linux and Windows.

@spyder-bot
Copy link
Collaborator Author

From [email protected] on 2011-11-09T09:38:02Z

As I said, I get a message on Windows in an IPython shell when I delete both s and v:

QObject::killTimers: timers cannot be stopped from another thread

BTW, I am not working with these objects frequently and it does not hurt me much. I just thought maybe this hints on some deeper problem... never mind.

@spyder-bot
Copy link
Collaborator Author

From ccordoba12 on 2014-08-23T13:32:37Z

Summary: Console crashes with qt code (was: console crashes with qt code)
Labels: MS-v2.4

@spyder-bot
Copy link
Collaborator Author

From ccordoba12 on 2014-09-21T11:45:07Z

This is working fine for me in our new IPython consoles. Could you verify if this is still a problem in Mac and Windows?

Labels: Easy

@spyder-bot
Copy link
Collaborator Author

From [email protected] on 2015-01-20T18:11:30Z

No a recent test on os x did not show any problems. Windows can't be tested currently.

@ccordoba12 ccordoba12 modified the milestones: v3.1, v3.0 Dec 16, 2015
@ccordoba12 ccordoba12 removed this from the todo milestone Jun 25, 2017
@ccordoba12
Copy link
Member

Closing because the Python console is going to be removed in Spyder 3.2.

Please see issue #4524 for our reasons to do this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants