A divide by zero error occurs if you re-size the Panda window to a height of 0. To reproduce, start the Carousel demo (or any demo) and using the mouse drag the height of the window to be a size 0. Below is a trace dump:
C:\Panda3D-1.7.0\samples\Carousel>Tut-Carousel.py
DirectStart: Starting the game.
Known pipe types:
wglGraphicsPipe
(all display modules loaded.)
Traceback (most recent call last):
File "C:\Panda3D-1.7.0\direct\showbase\EventManager.py", line 61, in eventLoop
Task
self.doEvents()
File "C:\Panda3D-1.7.0\direct\showbase\EventManager.py", line 55, in doEvents
processFunc(self.eventQueue.dequeueEvent())
File "C:\Panda3D-1.7.0\direct\showbase\EventManager.py", line 122, in processE
vent
messenger.send(eventName, paramList)
File "C:\Panda3D-1.7.0\direct\showbase\Messenger.py", line 325, in send
self.__dispatch(acceptorDict, event, sentArgs, foundWatch)
File "C:\Panda3D-1.7.0\direct\showbase\Messenger.py", line 410, in __dispatch
method (*(extraArgs + sentArgs))
File "C:\Panda3D-1.7.0\direct\showbase\ShowBase.py", line 2466, in windowEvent
self.pixel2d.setScale(2.0 / win.getXSize(), 1.0, 2.0 / win.getYSize())
ZeroDivisionError: float division
:task(error): Exception occurred in PythonTask eventManager
Traceback (most recent call last):
File "C:\Panda3D-1.7.0\samples\Carousel\Tut-Carousel.py", line 189, in <module
>
run()
File "C:\Panda3D-1.7.0\direct\showbase\ShowBase.py", line 2531, in run
self.taskMgr.run()
File "C:\Panda3D-1.7.0\direct\task\Task.py", line 496, in run
self.step()
File "C:\Panda3D-1.7.0\direct\task\Task.py", line 454, in step
self.mgr.poll()
File "C:\Panda3D-1.7.0\direct\showbase\EventManager.py", line 61, in eventLoop
Task
self.doEvents()
File "C:\Panda3D-1.7.0\direct\showbase\EventManager.py", line 55, in doEvents
processFunc(self.eventQueue.dequeueEvent())
File "C:\Panda3D-1.7.0\direct\showbase\EventManager.py", line 122, in processE
vent
messenger.send(eventName, paramList)
File "C:\Panda3D-1.7.0\direct\showbase\Messenger.py", line 325, in send
self.__dispatch(acceptorDict, event, sentArgs, foundWatch)
File "C:\Panda3D-1.7.0\direct\showbase\Messenger.py", line 410, in __dispatch
method (*(extraArgs + sentArgs))
File "C:\Panda3D-1.7.0\direct\showbase\ShowBase.py", line 2466, in windowEvent
self.pixel2d.setScale(2.0 / win.getXSize(), 1.0, 2.0 / win.getYSize())
ZeroDivisionError: float division