openlp-core team mailing list archive
-
openlp-core team
-
Mailing list archive
-
Message #21151
[Bug 1196926] Re: Zero division error when display size set to zero
Reading the support issue, it sounds like the users computer lost a
connection to the projector, causing OpenLP to "Auto Detect" the size of
the screen as 0.
As your fix prevents the user from setting the size to 0 in the
settings, then this bug could still triggered in the same way as in the
support issue, and possibly if the user manually disconnected the
monitor. In this case we would still get the divide by 0 error.
--
You received this bug notification because you are a member of OpenLP
Core, which is subscribed to OpenLP.
https://bugs.launchpad.net/bugs/1196926
Title:
Zero division error when display size set to zero
Status in OpenLP - Worship Presentation Software:
Fix Committed
Status in OpenLP 2.0 series:
Fix Committed
Status in OpenLP trunk series:
Fix Committed
Bug description:
Orriginally reported at: http://support.openlp.org/issues/1980
However, I've been able to trigger this by a different method:
Open the "Configure OpenLP" dialog
Set hight or width to 0 for the "Override display position" option
Click ok.
This produces this traceback:
Traceback (most recent call last):
File "D:\OpenLP_Code\release-2.0.1\build\pyi.win32\OpenLP\out00-PYZ.pyz\openlp.core.ui.mainwindow", line 1155, in screenChanged
File "D:\OpenLP_Code\release-2.0.1\build\pyi.win32\OpenLP\out00-PYZ.pyz\openlp.core.lib.renderer", line 95, in update_display
File "D:\OpenLP_Code\release-2.0.1\build\pyi.win32\OpenLP\out00-PYZ.pyz\openlp.core.lib.renderer", line 355, in _calculate_default
ZeroDivisionError: float division by zero
To manage notifications about this bug go to:
https://bugs.launchpad.net/openlp/+bug/1196926/+subscriptions
References