crash when resizing DIRECT Tk window

Bug #1469477 reported by Bryson
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Panda3D
Fix Released
Undecided
rdb

Bug Description

Interacting with (moving or resizing) the Tkinter window opened by DIRECT yields the following error:

http://i.gyazo.com/5fc7d6c427d080d2f2e606b4752d4504.png

and in the console it shows:

Fatal Python error: PyEval_RestoreThread: NULL tstate

This occurs with every tkinter window I've used in panda3d.

Tags: windows tk
Revision history for this message
ponyboy837 (ponyboy837) wrote :

First off... YOU actually got the in-game editor working? That's actually pretty cool. I don't know what causes this issue but you might need to make the repo public for testing or find a better log. It also could be just your PC but i congratulate you for being the first i know of to get it working. Good job heheh.

Revision history for this message
rdb (rdb) wrote :

I assume by the "in-game editor" you mean the DIRECT tools?

Please attach a small sample program that opens the direct tools and crashes in the way you described, and state which version of Panda is used to produce this crash.

rdb (rdb)
tags: added: tk windows
summary: - Tkinter crash
+ crash when resizing DIRECT Tk window
Changed in panda3d:
status: New → Confirmed
description: updated
description: updated
Revision history for this message
ponyboy837 (ponyboy837) wrote :

The in-game editor was used by the Toontown Online staff to edit the levels by the things in otp.level. But you should know that. But if it's DIRECT Tools that opens this it's a entirely new story.

Revision history for this message
ponyboy837 (ponyboy837) wrote :

And also for re-producing it. I'll work and see if i can. If so i'll post the sample here.

Revision history for this message
rdb (rdb) wrote :

I already managed to reproduce it. Just open the DIRECT tools (which is what is shown in the screenshot) eg. using the place() method on any NodePath and try to resize the window, and it will crash in PyEval_RestoreThread.

The crash seems to happen somewhere in the window event loop, but I haven't dug very deep yet.

Revision history for this message
ponyboy837 (ponyboy837) wrote :

Ok i can confirm this does happen. Opening the GUI and moving it causes the freaky crash. But it is probably exclusive to the level editor because of a kink in the code somewhere.

Revision history for this message
ponyboy837 (ponyboy837) wrote :

Ah ok. Yeah it's weird. I don't know exactly why it happens. It's pretty weird. So it's a issue with the DIRECT tools in general. I wonder what causes it.

Revision history for this message
ponyboy837 (ponyboy837) wrote :
Revision history for this message
rdb (rdb) wrote :
Changed in panda3d:
assignee: nobody → rdb (rdb)
milestone: none → 1.10.5
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.