Bug 66027

Summary: EDITING: Writer crashed when attempting to insert/link an item from the sidebar gallery
Product: LibreOffice Reporter: lucifer
Component: WriterAssignee: Caolán McNamara <caolanm>
Status: RESOLVED FIXED QA Contact:
Severity: major    
Priority: high CC: caolanm, kendy, mst.fdo, pje335-lo, serval2412
Version: 4.1.0.1 rcKeywords: regression
Hardware: Other   
OS: All   
See Also: https://bugs.freedesktop.org/show_bug.cgi?id=65765
Whiteboard: BSA target:4.2.0
i915 platform: i915 features:
Attachments: crash report from mac osx 10.8.4
console + bt with symbols on master sources

Description lucifer 2013-06-21 22:22:38 UTC
Build ID: 585410476faca215122c96fdd4196ebf77a8df7d

Problem description: 

When try to "insert" either a copy or a link from the gallery, the program crashes. Drag'n'drop works fine though.

Steps to reproduce:
1. Open Writer
2. Open sidebar and go to the gallery tab
3. Right-click on any item in the list to insert
4. Choose "Insert" or "Link"
5. The program crashes

Current behavior:

Writer crashes when inserting/linking items from the gallery.

Expected behavior:

It must insert the item without a program crash
              
Operating System: Windows 8
Version: 4.2.0.0.alpha0+ Master
Last worked in: 4.0.4.2 release
Comment 1 Thomas van der Meulen 2013-06-22 06:48:38 UTC
Created attachment 81194 [details]
crash report from mac osx 10.8.4
Comment 2 Thomas van der Meulen 2013-06-22 06:50:31 UTC
Thank you for your bug report, I can reproduce this bug running LibreOffice Version: 4.1.0.1
Build ID: 1b3956717a60d6ac35b133d7b0a0f5eb55e9155 on Mac osx 10.8.4. 

This is a serious bug in the sidebar option.
Comment 3 Julien Nabet 2013-06-22 15:30:15 UTC
lucifer: how to enable sidebar? Do you reproduce this without using sidebar?
On pc Debian x86-64 with master sources updated today, I did "Insert/Picture/From file" and that was ok.
Comment 4 Julien Nabet 2013-06-22 15:43:16 UTC
Sorry for my last comment, I certainly misunderstood. Perhaps you meant "Tools/Gallery". Anyway, still don't know how to enable sidebar.
Comment 5 Julien Nabet 2013-06-22 15:47:01 UTC
Ok I found the sidebar. (for those who were wondering too, it's Tools/Options/LibreOffice-Advanced-Enable experimental sidebar). I reproduced the crash.
Comment 6 Julien Nabet 2013-06-22 15:53:09 UTC
Created attachment 81221 [details]
console + bt with symbols on master sources

I reproduced the crash, I attached console logs and bt.
Comment 7 Julien Nabet 2013-06-22 15:58:46 UTC
Jan: I don't know who's the expert(s) sidebar expert (I checked https://wiki.documentfoundation.org/FindTheExpert) but by looking at commits about it, it seemed to me you might be one :-) One for you?
Comment 8 Michael Stahl 2013-07-01 13:12:09 UTC
the old gallery thing doesn't crash here
Comment 9 Caolán McNamara 2013-07-01 14:05:27 UTC
with the old gallery open, the new one doesn't crash either :-)
Comment 10 Commit Notification 2013-07-01 15:55:10 UTC
Ariel Constenla-Haile committed a patch related to this issue.
It has been pushed to "master":

http://cgit.freedesktop.org/libreoffice/core/commit/?id=b9ebdadf5a6ebf22b4df7589d86dd8fdfb675b1e

Resolves: fdo#66027 #i122116# Remove GalleryExplorer member functions



The patch should be included in the daily builds available at
http://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
http://wiki.documentfoundation.org/Testing_Daily_Builds
Affected users are encouraged to test the fix and report feedback.

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.