Bug 454024 - Comic manager - AttributeError: 'NoneType' object has no attribute 'waitForDone'
Summary: Comic manager - AttributeError: 'NoneType' object has no attribute 'waitForDone'
Status: ASSIGNED
Alias: None
Product: krita
Classification: Applications
Component: Dockers (show other bugs)
Version: nightly build (please specify the git hash!)
Platform: Compiled Sources All
: NOR normal
Target Milestone: ---
Assignee: wolthera
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-05-19 03:17 UTC by spinear
Modified: 2023-01-26 14:11 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
system info (4.05 KB, text/plain)
2022-05-19 03:17 UTC, spinear
Details

Note You need to log in before you can comment on or make changes to this bug.
Description spinear 2022-05-19 03:17:48 UTC
Created attachment 148982 [details]
system info

I'm middle of finding out why Comic manager makes my Krita crash.
and I encountered this Python error.

I'm preparing a crash report separately.
When comic manager crashed, Krita can't make a crash log so I have nothing right now.




SOFTWARE/OS VERSIONS
Krita

 Version: 5.1.0-prealpha (git 3ae600d)
 Installation type: installer / portable package
 Languages: en_US, en, en_US, en, en_US, en, en_US, en, en_US, en, en_US, en, en_US, en, en_US, en, ko_KR, ko, en_US, en
 Hidpi: false

Qt

  Version (compiled): 5.12.12
  Version (loaded): 5.12.12

OS Information

  Build ABI: x86_64-little_endian-llp64
  Build CPU: x86_64
  CPU: x86_64
  Kernel Type: winnt
  Kernel Version: 10.0.19043
  Pretty Productname: Windows 10 (10.0)
  Product Type: windows
  Product Version: 10




ADDITIONAL INFORMATION

AttributeError
Python 3.8.1: C:\Program Files\Krita (x64)\bin\krita.exe
Thu May 19 12:00:41 2022

A problem occurred in a Python script.  Here is the sequence of
function calls leading up to the error, in the order they occurred.

 C:\Program Files\Krita (x64)\share\krita\pykrita\comics_project_management_tools\comics_project_manager_docker.py in slot_export(self=<comics_project_management_tools.comics_project_manager_docker.comics_project_manager_docker object>)
  801         exporter = comics_exporter.comicsExporter()
  802         exporter.set_config(self.setupDictionary, self.projecturl)
  803         exportSuccess = exporter.export()
  804         if exportSuccess:
  805             print("CPMT: Export success! The files have been written to the export folder!")
exportSuccess undefined
exporter = <comics_project_management_tools.comics_exporter.comicsExporter object>
exporter.export = <bound method comicsExporter.export of <comics_p...ent_tools.comics_exporter.comicsExporter object>>

 C:\Program Files\Krita (x64)\share\krita\pykrita\comics_project_management_tools\comics_exporter.py in export(self=<comics_project_management_tools.comics_exporter.comicsExporter object>)
  143             self.progress.show()
  144             qApp.processEvents()
  145             export_success = self.save_out_pngs(sizesList)
  146 
  147             # Export acbf metadata.
export_success = False
self = <comics_project_management_tools.comics_exporter.comicsExporter object>
self.save_out_pngs = <bound method comicsExporter.save_out_pngs of <c...ent_tools.comics_exporter.comicsExporter object>>
sizesList = {'CBZ': {'Crop': False, 'DPI': 72, 'FileType': 'jpg', 'Height': 800, 'Method': 0, 'Percentage': 100, 'Width': 800}}

 C:\Program Files\Krita (x64)\share\krita\pykrita\comics_project_management_tools\comics_exporter.py in save_out_pngs(self=<comics_project_management_tools.comics_exporter.comicsExporter object>, sizesList={'CBZ': {'Crop': False, 'DPI': 72, 'FileType': 'jpg', 'Height': 800, 'Method': 0, 'Percentage': 100, 'Width': 800}})
  241                 url = str(Path(self.projectURL) / pagesList[p])
  242                 page = Application.openDocument(url)
  243                 page.waitForDone()
  244 
  245                 # Update the progress bar a little
page = None
page.waitForDone undefined
AttributeError: 'NoneType' object has no attribute 'waitForDone'
    __cause__ = None
    __class__ = <class 'AttributeError'>
    __context__ = None
    __delattr__ = <method-wrapper '__delattr__' of AttributeError object>
    __dict__ = {}
    __dir__ = <built-in method __dir__ of AttributeError object>
    __doc__ = 'Attribute not found.'
    __eq__ = <method-wrapper '__eq__' of AttributeError object>
    __format__ = <built-in method __format__ of AttributeError object>
    __ge__ = <method-wrapper '__ge__' of AttributeError object>
    __getattribute__ = <method-wrapper '__getattribute__' of AttributeError object>
    __gt__ = <method-wrapper '__gt__' of AttributeError object>
    __hash__ = <method-wrapper '__hash__' of AttributeError object>
    __init__ = <method-wrapper '__init__' of AttributeError object>
    __init_subclass__ = <built-in method __init_subclass__ of type object>
    __le__ = <method-wrapper '__le__' of AttributeError object>
    __lt__ = <method-wrapper '__lt__' of AttributeError object>
    __ne__ = <method-wrapper '__ne__' of AttributeError object>
    __new__ = <built-in method __new__ of type object>
    __reduce__ = <built-in method __reduce__ of AttributeError object>
    __reduce_ex__ = <built-in method __reduce_ex__ of AttributeError object>
    __repr__ = <method-wrapper '__repr__' of AttributeError object>
    __setattr__ = <method-wrapper '__setattr__' of AttributeError object>
    __setstate__ = <built-in method __setstate__ of AttributeError object>
    __sizeof__ = <built-in method __sizeof__ of AttributeError object>
    __str__ = <method-wrapper '__str__' of AttributeError object>
    __subclasshook__ = <built-in method __subclasshook__ of type object>
    __suppress_context__ = False
    __traceback__ = <traceback object>
    args = ("'NoneType' object has no attribute 'waitForDone'",)
    with_traceback = <built-in method with_traceback of AttributeError object>

The above is a description of an error in a Python program.  Here is
the original traceback:

Traceback (most recent call last):
  File "C:\Program Files\Krita (x64)\share\krita\pykrita\comics_project_management_tools\comics_project_manager_docker.py", line 803, in slot_export
    exportSuccess = exporter.export()
  File "C:\Program Files\Krita (x64)\share\krita\pykrita\comics_project_management_tools\comics_exporter.py", line 145, in export
    export_success = self.save_out_pngs(sizesList)
  File "C:\Program Files\Krita (x64)\share\krita\pykrita\comics_project_management_tools\comics_exporter.py", line 243, in save_out_pngs
    page.waitForDone()
AttributeError: 'NoneType' object has no attribute 'waitForDone'
Comment 1 wolthera 2023-01-26 14:11:41 UTC
I'll assign this to myself, though I have not reproduced this yet.