-
-
Notifications
You must be signed in to change notification settings - Fork 13
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
Resizing window of example app breaks layout and generates TypeError #191
Comments
This is a weird one. It looks like it's deep in Rubicon. The code in question is doing the following:
On a normal (successful) invocation,
However, on the problem call, the same call returns:
So - it's not identifying that the MutableDict wrapper needs to be applied to the object returned by the constructor. There's an immediate fix in converting all the use of subscript notation into I wonder if this might be a niche manifestation of beeware/rubicon-objc#256 - if the ObjC memory address is being recycled before Python disposes of the object, that would result in the wrong object wrapper being applied, resulting in the |
Following up on this - confirming that it is a Rubicon issue, and one that will be resolved by beeware/rubicon-objc#543. |
Describe the bug
Dragging the edges of the window to resize the example app (at least on macOS) generates repeated instances of this error:
This happens when resizing either horizontally, vertically, or both. Additionally, reducing vertical size (not necessarily smaller than initial — any reduction from current) creates weird rendering overlaps.
Notably, this doesn't happen when first rendering the window and widget. And it doesn't always happen when resizing, either, only intermittently.
Steps to reproduce
python -m chart
Expected behavior
No exception, and proper layout/rendering
Screenshots
Environment
Logs
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: