We have moved to a new Sailfish OS Forum. Please start new discussions there.
1

qmllivebench stopped working [answered]

asked 2020-02-26 13:47:35 +0200

Spam Hunter gravatar image

updated 2020-02-26 14:40:17 +0200

As per the title, yesterday everything SDK related was working fine. No changes made by me.

fired up SDK this morning, continued making an app, realised QML Live Bench is no longer functioning.

I removed SDK, reinstalled, still Qml Live Bench does not work, I have to actually run the app again to see my changes, what a PITA!

Application Output:

[D] unknown:0 -     activate document:  ""

[C] LiveDocument::LiveDocument:72 - Assertion "!relativeFilePath.isEmpty()" failed

[C] LiveDocument::relativeFilePath:145 - Assertion "!isNull()" failed

Why?, why is SDk so fragile?

Qt Creator 4.9.1 (Sailfish SDK 3.0.7)

Based on Qt 5.12.5 (MSVC 2015, 32 bit)

More errors from another application that I've been making for many months, but today, QML Live Bench is spewing errors left, right & centre;

[D] unknown:0 - QML debugging is enabled. Only use this in a safe environment.
[D] unknown:0 - Using Wayland-EGL
[I] unknown:0 - qmlliveruntime-sailfish initialized
[I] unknown:0 - Waiting for connection from QmlLive Bench…
[I] unknown:0 - QmlLive Bench connected
[D] onStatusChanged:722 - multi-remote pushed
[D] unknown:0 -     activate document:  "qml/pages/MainPage.qml"
[I] unknown:0 - ----------------------------------------
[I] unknown:0 - QmlLive: (Re)loading "qml/pages/MainPage.qml"
[W] unknown:113 - file:///usr/lib/qt5/qml/Sailfish/Silica/Page.qml:113: ReferenceError: __silica_applicationwindow_instance 
is not defined
[W] unknown:58 - file:///usr/lib/qt5/qml/Sailfish/Silica/private/PageOrientationTransition.qml:58: ReferenceError: 
__silica_applicationwindow_instance is not defined
[W] unknown:186 - file:///usr/lib/qt5/qml/Sailfish/Silica/Page.qml:186: ReferenceError: __silica_applicationwindow_instance 
is not defined
[W] unknown:185 - file:///usr/lib/qt5/qml/Sailfish/Silica/Page.qml:185: ReferenceError: __silica_applicationwindow_instance 
is not defined
[W] unknown:100 - file:///usr/lib/qt5/qml/Sailfish/Silica/CoverLoader.js:100: TypeError: Cannot read property 'Ready' of 
undefined
edit retag flag offensive reopen delete

The question has been closed for the following reason "the question is answered, an answer was accepted" by Spam Hunter
close date 2020-02-27 16:02:07.294678

Comments

Hmmm, so , as usual, I'm the only one with this problem?, sounds about right. Story of my life! :D

@martyone - any ideas/suggestions?, I ask you as I note from Github pages you are dealing with QmlLive package

Spam Hunter ( 2020-02-27 13:59:12 +0200 )edit

Could you please be more specific about what is not working, which way is it broken, what is the origin of the logs, what is you OS about? You could try to (re)move ~/.config/SailfishSDK/QmlLiveBench.conf. Have you tried with a newly created app from template? Isn't your device running out of disk space? (check /tmp too)

martyone ( 2020-02-27 14:42:02 +0200 )edit

Thanks for replying @martyone

Okay, when I say QmlLive does not work, I mean tapping CTRL + S does nothing, I have to restart the build to see my changes.

The logs are directly from the 'Application output' window of the SDK, I assume this is what you mean by logs..?

My OS is Windows 7 Ultimate.

No, I have plenty of disk space, 59GB of free space to be precise.

Yes, I have tried creating a new app from template, I still get the same problem, hitting CTRL + S does not function and yes, it is enabled in Projects Build & Run settings.

I don't know where to find ~/.config/SailfishSDK/QmlLiveBench.conf. please advise.

ADDITIONAL: I've searched my PC for QmlLiveBench,conf and it it not present. Just to be clear, I am using the SDK Emulator to build apps, not my Jolla1.

Spam Hunter ( 2020-02-27 14:53:26 +0200 )edit

1 Answer

Sort by » oldest newest most voted
2

answered 2020-02-27 15:28:47 +0200

martyone gravatar image

updated 2020-02-27 16:05:33 +0200

Looking at the second log more carefully, QmlLive actually seems to work as expected in that case. Your app breaks because you are trying to load the particular MainPage.qml separately from the application. Unfortunately Silica does not allow loading a Page separately :( . I guess you selected that document as the active one in bench before. You should be able to fix that by dragging the main QML from the Workspace pane to the Host widget representing your target device inside bench.

edit flag offensive delete publish link more

Comments

I have made some progress! :)

You mention about Silica not allowing loading a Page separately and to drag the main QML to the Host widget - well, initially, I misunderstood your comment and dragged MainPage.qml to the host widget and the Emulator became blank/my app no longer displaying, so as you said, drag the MAIN qml file to Host widget and VOILA!, the Emulator is showing my page again!, so, I also note that in doing the above incorrectly, the Application output of SDK shows the same errors I posted above - so you are 100% right!, albeit, i do not recall dragging MainPage.qml or any other of my pages to Host widget device.

I will call this fixed for now and will try to be extra careful when QmlLive window is in focus, being careful not to accidentally drag anything within that window.

Thanks for your time @martyone, things seem to be operating as before, much appreciated!!

p.s. You are also correct, I did not understand some of what you asked but answered what I though maybe right, doh!, never mind!, thanks again!

Spam Hunter ( 2020-02-27 16:01:43 +0200 )edit

You are welcome. Maybe you have checked the "Follow" button on the Host widget - it then follows every click inside the Workspace widget with no need to drag&drop.

martyone ( 2020-02-27 16:07:34 +0200 )edit
1

Many thanks for both of us for documenting the issue and the solution! You saved some headache for me!

martonmiklos ( 2020-04-10 23:20:29 +0200 )edit

Question tools

Follow
4 followers

Stats

Asked: 2020-02-26 13:47:35 +0200

Seen: 433 times

Last updated: Feb 27 '20