After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 779895 - When selecting "New project" it takes very long till application responds
When selecting "New project" it takes very long till application responds
Status: RESOLVED FIXED
Product: gnome-builder
Classification: Other
Component: general
Flatpak Nightly Channel
Other Linux
: Normal normal
: ---
Assigned To: GNOME Builder Maintainers
GNOME Builder Maintainers
Depends on:
Blocks:
 
 
Reported: 2017-03-11 12:39 UTC by Peter Sonntag
Modified: 2017-03-14 05:27 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
This is a stacktrace from interrupting Builder after clicking "New Project" (10.04 KB, text/plain)
2017-03-13 23:25 UTC, Matthew Leeds
Details

Description Peter Sonntag 2017-03-11 12:39:31 UTC
When I click on "New Project" the application is often pretty long unresponsive (especially if an project is currently open).

The popup "Builder does not respond" opens regularly.
Comment 1 Christian Hergert 2017-03-12 06:13:16 UTC
I can't replicate this. Is it easily repeatable for you? If so, can you get an idea if we are spinning CPU by looking at top while it's happening?
Comment 2 Peter Sonntag 2017-03-12 08:35:22 UTC
Yes it is easily repeatable for me and yes it is using the CPU in this time.

What I do is: I open a project (size does not matter) and then I create a new project. This takes pretty long (about 10s) and I don't have a slow laptop (8GB, 4xCore i7 - 2GHz and SSD). But it should probably never be unresponsive ;-)
Comment 3 Christian Hergert 2017-03-12 08:38:31 UTC
Seems to work fine here. Are you building the second project in the background? Is it C++ by chance (I don't promise to be able to work around g++ taking all your system resources).
Comment 4 Peter Sonntag 2017-03-12 08:43:33 UTC
No, I'm not building anything. The first project is just open and the processor idle. It is independed of the type of the 1st project.
Comment 5 Christian Hergert 2017-03-12 08:55:43 UTC
If we aren't building and still not responding (assuming Builder is consuming all the CPU), I would venture a guess that the mainloop is spinning about something. Although I'm not sure what that could be nor do I have good tooling to help you debug that yet.

That code isn't particularly complex or doing anything tricky.
Comment 6 Matthew Leeds 2017-03-13 23:25:06 UTC
Created attachment 347893 [details]
This is a stacktrace from interrupting Builder after clicking "New Project"

This issue only occurs if you have a project open already and use the menu in the gnome shell header to select "New Project" or "Open Project", but does not occur if you do that at the greeter when Builder first starts up.
Comment 7 Christian Hergert 2017-03-14 00:48:15 UTC
Eek, we're doing stuff with the remote there.

I guess we need to move that into a thread and do delayed loading of preferences (via main loop callbacks).
Comment 8 Matthew Leeds 2017-03-14 05:27:03 UTC
This was fixed by commit 2450f235ff64c4ca6de3d0f202a852ed8be234b5