Using .destroy() on ShowBase and letting go of all references should allow recreating it
Bug #1339701 reported by
ellie
This bug affects 3 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Panda3D |
Fix Released
|
Undecided
|
rdb |
Bug Description
This test reproduces the issue:
import unittest
from direct.
class TestPanda(
def test_panda(self):
self.base = ShowBase()
self.base = ShowBase()
""" Resulting error:
Traceback (most recent call last):
File "map_test.py", line 55, in test_panda
self.base = ShowBase()
File "C:\Panda3D-
raise StandardError, "Attempt to spawn multiple ShowBase instances!"
StandardError: Attempt to spawn multiple ShowBase instances!
"""
Changed in panda3d: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
Updating this to let you know I haven't forgotten about this. I've got this mostly figured out so far, there's still one reference I'm trying to track down that is causing ShowBase to leak.