Skip to content
This repository has been archived by the owner on Aug 13, 2024. It is now read-only.

TypeError: Invalid type passed to setApplicationContext() #558

Closed
anastasiyaig opened this issue Feb 29, 2024 · 0 comments
Closed

TypeError: Invalid type passed to setApplicationContext() #558

anastasiyaig opened this issue Feb 29, 2024 · 0 comments
Assignees
Labels
Squish Tasks related to Squish framework but not necessarily related to tests implementation
Milestone

Comments

@anastasiyaig
Copy link
Collaborator

anastasiyaig commented Feb 29, 2024

i realised finally when the issue shows up

Screenshot 2024-02-29 at 17 40 27

On the screenshot there is the following: framework (pytest in my case) was executing some tests one by one (around 20 or so). Then when it came to the one marked as yellow, the test fails with TypeError: Invalid type passed to setApplicationContext() which seem to be true, because it looks like the application has just crashed , so Squish was not really able to attach indeed

App log:

Warning: QQmlApplicationEngine failed to load component (:0, )
Warning: qrc:/main.qml:370:9: Type AppMain unavailable (qrc:/main.qml:370, )
Warning: qrc:/app/mainui/AppMain.qml:1202:29: Type ChatLayout unavailable (qrc:/app/mainui/AppMain.qml:1202, )
Warning: qrc:/app/AppLayouts/Chat/ChatLayout.qml:139:9: Type ChatView unavailable (qrc:/app/AppLayouts/Chat/ChatLayout.qml:139, )
Warning: qrc:/app/AppLayouts/Chat/views/ChatView.qml:261:9: Type CommunityColumnView unavailable (qrc:/app/AppLayouts/Chat/views/ChatView.qml:261, )
Warning: qrc:/app/AppLayouts/Communities/views/CommunityColumnView.qml:616:9: Type CreateChannelPopup unavailable (qrc:/app/AppLayouts/Communities/views/CommunityColumnView.qml:616, )
Warning: qrc:/app/AppLayouts/Communities/popups/CreateChannelPopup.qml:892:9: Type PermissionsSettingsPanel unavailable (qrc:/app/AppLayouts/Communities/popups/CreateChannelPopup.qml:892, )
Warning: qrc:/app/AppLayouts/Communities/panels/PermissionsSettingsPanel.qml:144:26: Type EditPermissionView unavailable (qrc:/app/AppLayouts/Communities/panels/PermissionsSettingsPanel.qml:144, )
Warning: qrc:/app/AppLayouts/Communities/views/EditPermissionView.qml:377:9: Type SequenceColumnLayout has no inline component type called Separator (qrc:/app/AppLayouts/Communities/views/EditPermissionView.qml:377, )
�[96mINF�[0m 2024-02-29 12:58:14.305+00:00 �[1mstarting application...                   �[0m topics="�[93mstatus-app�[0m" �[96mtid�[0m=�[94m3799806�[0m �[96mfile�[0m=�[94mnim_status_client.nim:204�[0m
�[33mWRN�[0m 2024-02-29 12:58:14.313+00:00 �[1mError decoding signal                     �[0m topics="�[93msignals-manager�[0m" �[33mtid�[0m=�[94m3799806�[0m �[33mfile�[0m=�[94msignals_manager.nim:49�[0m �[33merr�[0m=�[94m"Unknown signal received: mediaserver.started"�[0m
Warning: Error while loading QML: QUrl("qrc:/main.qml") (:0, )
�[96mINF�[0m 2024-02-29 12:58:14.313+00:00 �[1mshutting down...                          �[0m topics="�[93mstatus-app�[0m" �[96mtid�[0m=�[94m3799806�[0m �[96mfile�[0m=�[94mnim_status_client.nim:173�[0m
�[96mINF�[0m 2024-02-29 12:58:14.313+00:00 �[1mlogging out...                            �[0m topics="�[93mapp-controller�[0m" �[96mtid�[0m=�[94m3799806�[0m �[96mfile�[0m=�[94mapp_controller.nim:297�[0m
there is no running node

it is visible in the shorten log of aut:
aut log 29-feb-24.log

This is confirmed in squishserver log that i also run with --verbose. In that log is visible , that my code did 10 attempts to connect and failed (which i assume is really stupid, because there is no AUT to connect to)
squishserver 29-02-24.log

I also collect some output from pytest, attaching it too (it actually contains the invalid application context error)
pytest 29-02-24.log

I am seeing 2 problems here:

@anastasiyaig anastasiyaig added this to the 2.28.0 Beta milestone Feb 29, 2024
@anastasiyaig anastasiyaig added the Squish Tasks related to Squish framework but not necessarily related to tests implementation label Feb 29, 2024
@anastasiyaig anastasiyaig self-assigned this Feb 29, 2024
@anastasiyaig anastasiyaig modified the milestones: 2.28.0 Beta, 2.30.0 Beta Mar 29, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Squish Tasks related to Squish framework but not necessarily related to tests implementation
Projects
None yet
Development

No branches or pull requests

1 participant