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

SDK on Windows: build/run taking a lot longer than it used to [released]

Tracked by Jolla (In progress)

asked 2019-11-07 16:32:07 +0200

szopin gravatar image

updated 2020-07-30 11:52:03 +0200

It's been a while since I played with the SDK, but it used to take around 10-20s from clicking run to having the program running in the emulator (that was during SFOS 2.0ish), now even rather simple program takes about 2 minutes to show up. Is it the intel bugs that were supposed to impact virtualization, or some misconfig on my part? (didn't really change anything and just installed the default build targets, so doubt it)
EDIT: btw this is on win10, maybe there was no regression on linux, no idea

EDIT: I think this was fixed in 3.1 (yup, checked the release notes, under fixed: SDK on Windows: build/run taking a lot longer than it used to, closing), or at least right now deploying as RPM to the emulator is taking 15-20 seconds and the hangups are gone, haven't tested yet the 3.2 that was just released, I guess this can be closed unless people still are experiencing this issue

edit retag flag offensive reopen delete

The question has been closed for the following reason "released in a software update" by szopin
close date 2020-07-30 11:51:20.943526

Comments

1

check your emulator config, give more ram and more cores.

coderus ( 2019-11-07 20:40:36 +0200 )edit
1

not emulator, build engine vm. but you can improve emulator as well.

coderus ( 2019-11-07 20:41:06 +0200 )edit
1

@coderus thanks, I gave both 2 cores and 2GB each, but I don't think it's that, it's just idling for long whiles, at start for example it hangs on 'acquiring lock' for half a minute with practically 0 cpu utilization, seems like rpm validation is now performed by default, so that could explain the last 30s probably (also not sure if last time translations were included by default, now got ts file for german(?) by default, maybe this also adds a bit, not sure), but even with just deploying binaries from start to finish a simple qml only program with 4 pages took 2:36

szopin ( 2019-11-07 21:07:09 +0200 )edit
2

@szopin I was able to reproduce it on one Windows machine - there are really some unwanted delays. Under investigation.

martyone ( 2019-11-07 22:38:47 +0200 )edit
1

it does not seems to be slower for me, but I have different issue, for some reason I cannot update repos for i486 target. I had to do it manually by ssh. zypper say "no write rights to cache", I have overcome it by --solv-cache-dir

Bobsikus ( 2019-11-10 18:02:36 +0200 )edit

1 Answer

Sort by » oldest newest most voted
1

answered 2020-02-13 08:56:00 +0200

Ville Nummela gravatar image

I think I have run into the same issue on one Windows 10 machine. The bad news: I don't know what causes it. The good news: With the latest SDKs it's also possible to build from command line, using the sfdk tool. At least for me sfdk didn't have the same strange delays which building from Qt Creator had. So please, try building with sfdk. It might not be as convenient for you, but perhaps you can use it as a workaround for the time being.

edit flag offensive delete publish link more

Comments

Another workaround when developing qml is using qmllive workbench.

michfu ( 2020-02-13 14:45:57 +0200 )edit

workaround for what?, care to elaborate @michfu

Spam Hunter ( 2020-02-14 10:30:05 +0200 )edit

When you are working on the qml-part of your app, you can use QmlLive. It copies every change to a qml-file to the emulator in "real time" and reloads the app.

This is an alternative to deploying your app by e.g. hitting the "Run" button after every change (which is delayed on windows machines).

michfu ( 2020-02-17 12:54:46 +0200 )edit

ahhh, gotcha, sorry @michfu, I misunderstood the original question and your following comment. Of course, yes, I use QmlLive nearly all the time, as you say, it's much quicker to CTRL-S and see the changes real time. I didn't make the distinction between build time and qmlive time, I understand now.

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

Question tools

Follow
4 followers

Stats

Asked: 2019-11-07 16:32:07 +0200

Seen: 659 times

Last updated: Jul 30 '20