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 779321 - crash when refreshing desktop
crash when refreshing desktop
Status: RESOLVED FIXED
Product: nautilus
Classification: Core
Component: Desktop
master
Other Linux
: Normal critical
: ---
Assigned To: Nautilus Maintainers
Nautilus Maintainers
Depends on:
Blocks:
 
 
Reported: 2017-02-27 16:02 UTC by Alexandru Pandelea
Modified: 2017-03-03 16:07 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
desktop-canvas-view: fix crash on refresh (1.62 KB, patch)
2017-02-27 16:03 UTC, Alexandru Pandelea
none Details | Review
desktop-canvas-view: fix crash on refresh (1.90 KB, patch)
2017-02-28 18:01 UTC, Alexandru Pandelea
committed Details | Review

Description Alexandru Pandelea 2017-02-27 16:02:02 UTC
see patch.
Comment 1 Alexandru Pandelea 2017-02-27 16:03:23 UTC
Created attachment 346836 [details] [review]
desktop-canvas-view: fix crash on refresh

Refreshing the desktop makes nautilus-desktop crash

The cause of this crash is that the desktop canvas view is a floating
reference. To fix this, remove the floating reference
Comment 2 Carlos Soriano 2017-02-28 12:33:39 UTC
Review of attachment 346836 [details] [review]:

excellent, thanks!!

Can you explain that we ref sink the reference in all the other views because we want to manage them as data structures too and that in commit https://git.gnome.org/browse/nautilus/commit/?id=5c414bfcd181375c5defd7f13b00d422f5384b9e we moved to a different way of creating the desktop view and we forgot to sink the floating ref in the port?
Comment 3 Alexandru Pandelea 2017-02-28 18:01:04 UTC
Created attachment 346924 [details] [review]
desktop-canvas-view: fix crash on refresh

Refreshing the desktop makes nautilus-desktop crash.

The cause of this crash is that the desktop canvas view is a floating
reference. In commit 5c414bfcd181375c5defd7f13b00d422f5384b9e the creation
of the desktop view was changed and it was forgotten to sink the floating
ref.

To fix this, remove the floating reference. The reason why the ref sink
is needed here, as well as in all the other views, is because the views
are also managed as data structures.
Comment 4 Carlos Soriano 2017-03-03 12:34:44 UTC
Review of attachment 346924 [details] [review]:

+1

(I'll commit myself to have it in the release)
Comment 5 Carlos Soriano 2017-03-03 16:07:29 UTC
Attachment 346924 [details] pushed as 0cab9f0 - desktop-canvas-view: fix crash on refresh