Details
-
Bug
-
Resolution: Done
-
P2: Important
-
None
-
5.14.0
-
None
Description
A bit from my log:
DEBUG:root:Exiting Qt Event Loop after 4.508772 seconds with code 0. DEBUG:root:Processes shut down DEBUG:root:Threads shut down WARNING:Qt:default:<Unknown File>:269: TypeError: Cannot call method 'get_demo' of null WARNING:Qt:default:<Unknown File>:199: TypeError: Cannot call method 'get_demo' of null
This Problem is new with 5.14.0, it does not occur on 5.13.2
This happens on Python 3.7.6 and 3.8.1 (64Bit), which are the two versions I tested.
Here is the bit of QML that is mentioned:
Button { visible: HP.get_demo() id: webloginbutton text: qsTr("� Webshop Login") onPressed: {HP.do_web_login();appwindow.close();} ToolTip.visible: hovered ToolTip.text: "In den Webshop einloggen um die Lizenz zu installieren." font.pixelSize: 20 height: 55 }
The Python code around this time:
def main_loop(start): logging.debug("Entering Qt Event Loop after {} seconds.".format(time.perf_counter() - start)) ret_code = shared.app.exec_() logging.debug("Exiting Qt Event Loop after {} seconds with code {}.".format(time.perf_counter() - start, ret_code)) sys.exit(ret_code)
Just to be clear, "HP" is defined and not null before Qt starts exiting.