-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
NSRangeException when opening a PlotWidget from another window #2896
Comments
It might be because of my conda install because I'm trying on a basic Python install with pip and everything is working fine. When I do pip list :
And conda list :
|
Wonder if it's an issue with pyside6 6.6.0 and qt-main 6.6.1. Either way I don't think this is a PyQtGraph issue (although if you find a workaround that PyQtGraph can implement that is painless, I'd love to see it). |
I encountered a similar issue in my application. I do not have a minimal reproducible example but the problem arise, as @jordanlv originally reported, when creating a new window that contains one or more pyqtgraph widgets. Here is my stack trace:
I guess it is related to PySide6 6.6.x since I tried the same application with version 6.5 and 6.4 and both gave no problem at all. I only had the possibility to test on an Apple Silicon machine, so I don't know if it is reproducible on other OS/architectures. |
This might be the same as [QTBUG-120181] Crash on macOS underneath libqcocoa.dylib's |
You know I'm slacking when maintainers of adjacent libraries come in here to help me out ❤️ |
Hehe, small world! Just happened to find this after someone asking about it in the PySide group chat. |
Per that Qt issue report, and my independent testing over with OBS, I think this is fixed in Qt 6.6.2. |
Short description
Hello,
I'm facing an issue with pyqtgraph. When I want to open a graph from another window, my program crash with an NSRangeException.
Code to reproduce
I can reproduce this problem with this simple code :
Expected behavior
This code is excepted to open the graph.
Real behavior
When I click on the button a throw call stack appears :
Tested environment(s)
Additional context
I saw that NSExcepetion are specific to mac. Also, the following method doesn't work for me : https://matplotlib.org/3.1.0/faq/osx_framework.html
The problem occure only when I try to open a graph from another window. For example, the following code works well on my mac :
The text was updated successfully, but these errors were encountered: