← Back to team overview

openlp-core team mailing list archive

[Bug 1448814] [NEW] Adding .ico icon file in Windows build causes error.

 

Public bug reported:

In the Windows 2.1.4 build adding an unsupported, but allowed .ico icon
file to OpenLP 2.1.4 causes error. Restarting OpenLP results in the same
error and the application can only be closed. Removing the images.sqlite
file fixes the issue.


Error:
Traceback (most recent call last):
  File "D:\OpenLP_Development\OpenLP_Code\2.1\openlp\core\lib\mediamanageritem.py", line 321, in on_file_click
  File "D:\OpenLP_Development\OpenLP_Code\2.1\openlp\plugins\images\lib\mediaitem.py", line 385, in validate_and_load
  File "D:\OpenLP_Development\OpenLP_Code\2.1\openlp\plugins\images\lib\mediaitem.py", line 462, in load_list
  File "D:\OpenLP_Development\OpenLP_Code\2.1\openlp\plugins\images\lib\mediaitem.py", line 360, in load_full_list
  File "D:\OpenLP_Development\OpenLP_Code\2.1\openlp\core\lib\__init__.py", line 176, in create_thumb
ZeroDivisionError: division by zero

Preventing non-supported files from loading would be a good idea since
some users may not understand file-types, and would not know how to
resolve this issue.

Files attached:

     1.) images.sqlite

** Affects: openlp
     Importance: Undecided
         Status: New

** Attachment added: "images.sqlite"
   https://bugs.launchpad.net/bugs/1448814/+attachment/4385153/+files/images.sqlite

-- 
You received this bug notification because you are a member of OpenLP
Core, which is subscribed to OpenLP.
https://bugs.launchpad.net/bugs/1448814

Title:
  Adding .ico icon file in Windows build causes error.

Status in OpenLP - Worship Presentation Software:
  New

Bug description:
  In the Windows 2.1.4 build adding an unsupported, but allowed .ico
  icon file to OpenLP 2.1.4 causes error. Restarting OpenLP results in
  the same error and the application can only be closed. Removing the
  images.sqlite file fixes the issue.

  
  Error:
  Traceback (most recent call last):
    File "D:\OpenLP_Development\OpenLP_Code\2.1\openlp\core\lib\mediamanageritem.py", line 321, in on_file_click
    File "D:\OpenLP_Development\OpenLP_Code\2.1\openlp\plugins\images\lib\mediaitem.py", line 385, in validate_and_load
    File "D:\OpenLP_Development\OpenLP_Code\2.1\openlp\plugins\images\lib\mediaitem.py", line 462, in load_list
    File "D:\OpenLP_Development\OpenLP_Code\2.1\openlp\plugins\images\lib\mediaitem.py", line 360, in load_full_list
    File "D:\OpenLP_Development\OpenLP_Code\2.1\openlp\core\lib\__init__.py", line 176, in create_thumb
  ZeroDivisionError: division by zero

  Preventing non-supported files from loading would be a good idea since
  some users may not understand file-types, and would not know how to
  resolve this issue.

  Files attached:

       1.) images.sqlite

To manage notifications about this bug go to:
https://bugs.launchpad.net/openlp/+bug/1448814/+subscriptions


Follow ups

References