Bug 60041 - VIEWING: LibreOffice Writer crashes after page preview
Summary: VIEWING: LibreOffice Writer crashes after page preview
Status: RESOLVED NOTOURBUG
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: graphics stack (show other bugs)
Version:
(earliest affected)
3.6.2.2 release
Hardware: Other Linux (All)
: medium normal
Assignee: Björn Michaelsen
URL:
Whiteboard: BSA
Keywords: regression
Depends on:
Blocks:
 
Reported: 2013-01-29 22:37 UTC by Tom Williams
Modified: 2013-02-23 17:50 UTC (History)
4 users (show)

See Also:
Crash report or crash signature:


Attachments
Requested gdbtrace.log (18.23 KB, text/x-log)
2013-01-30 19:07 UTC, Tom Williams
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Tom Williams 2013-01-29 22:37:37 UTC
Problem description: When I use the "page preview" function to see how a document I'm working on will print, the preview takes a while to appear and CPU usage hangs out around 100%. Eventually, the preview will appear.  When I close it, the preview window will disappear and then LibreOffice will crash.

I've submitted several crash reports to Ubuntu via the Ubuntu built-in crash reporting mechanism.

I'm running on Ubuntu 12.10 64-bit.

Steps to reproduce:
1. Open or create a ODF document
2. Click the "page preview" button to preview the document
3. Close the preview window and Writer eventually crashes

Current behavior:  Writer crashes after doing a page preview.

Expected behavior: Writer should not crash after doing a page preview.

              
Operating System: Ubuntu
Version: 3.6.2.2 release
Last worked in: 3.5.4 release
Comment 1 Jorendc 2013-01-29 22:41:21 UTC
Thanks for reporting!

Can't reproduce this behavior. Is this reproducible for *every* document?

To exclude this is a 'user profile'-error: is it possible for you to reset your profile? (guide = https://wiki.documentfoundation.org/UserProfile#Resetting_the_user_profile)

I'll mark this bug as 'NEEDINFO' for the moment.

Kind regards,
Joren
Comment 2 Jorendc 2013-01-29 22:42:09 UTC
(In reply to comment #1)
> Can't reproduce this behavior. Is this reproducible for *every* document?
Tested with LibreOffice Versie 4.0.0.2 .0.2 (Bouw-id: 408fe71bd18616c467b3dcd7ab6756528ffcae2); Dutch UI; Linux Mint 14 x64.
Comment 3 Tom Williams 2013-01-29 23:41:58 UTC
(In reply to comment #1)
> Thanks for reporting!
> 
> Can't reproduce this behavior. Is this reproducible for *every* document?
> 
> To exclude this is a 'user profile'-error: is it possible for you to reset
> your profile? (guide =
> https://wiki.documentfoundation.org/UserProfile#Resetting_the_user_profile)
> 
> I'll mark this bug as 'NEEDINFO' for the moment.
> 
> Kind regards,
> Joren

Yes, this happens with every document I load.  I renamed my user profile from "user" to "user-old", rebooted, and fired up LibreOffice Writer. I opened the last document I was editing and after I closed the preview window, Writer crashed. However, this time I was prompted to send a crash report.  The Writer window just disappeared.

Is there anything else I can do to gather info that might help identify why the crash is occurring?

Thanks!
Comment 4 Julien Nabet 2013-01-30 05:15:12 UTC
Tom: do you have lo-menubar installed? If yes could you uninstall it and give it a new try?

Could you give a try to the last version 3.6.4? (you can find it here: https://launchpad.net/~libreoffice/+archive/ppa)

If you still reproduce this, could you try to retrieve a bt by following this? (https://wiki.documentfoundation.org/BugReport#How_to_get_a_backtrace_.28on_Linux.29)
Comment 5 Tom Williams 2013-01-30 16:13:21 UTC
(In reply to comment #4)
> Tom: do you have lo-menubar installed? If yes could you uninstall it and
> give it a new try?
> 
> Could you give a try to the last version 3.6.4? (you can find it here:
> https://launchpad.net/~libreoffice/+archive/ppa)
> 
> If you still reproduce this, could you try to retrieve a bt by following
> this?
> (https://wiki.documentfoundation.org/BugReport#How_to_get_a_backtrace_.
> 28on_Linux.29)

Thanks for the reply.  I do not have the "lo-menubar" package installed.  I upgraded to LibreOffice 3.6.4, using the PPA you mentioned, and was able to recreate the problem.

Then, I installed the libreoffice-dbg package so I could generate the requested backtrace and the crash went away.  When I run LibreOffice in gdb, the crash doesn't happen. When I run LibreOffice normally, outside of gdb, the crash doesn't happen.  

So, something got installed or updated when I installed the debug package that seems to have resolved the issue.  :)

Thanks!
Comment 6 Julien Nabet 2013-01-30 17:09:33 UTC
Tom: thank you for your feedback.
Quite weird the debug package which would prevent LO from crashing but
Just for the test, could you uninstall the debug package and give a new try?
If you reproduce this, try to get a backtrace (without debug package), it may give some hints.
Comment 7 Tom Williams 2013-01-30 19:06:38 UTC
Ok, I removed the libreoffice-dbg package and tried to recreate the problem.  The first time I clicked "page preview", everything worked.  I then clicked it a second time and after I closed the preview window, the main Writer window just disappeared.  If I restart LibreOffice, I'll be prompted to recover the last document I had open.

I ran this command *after* removing the libreoffice-dbg package:

soffice --backtrace

a gdbtrace.log file got created and I'll attach it to this report.

Thanks for your help with this!
Comment 8 Tom Williams 2013-01-30 19:07:23 UTC
Created attachment 73943 [details]
Requested gdbtrace.log
Comment 9 Julien Nabet 2013-01-30 19:40:34 UTC
Tom: thank you for the feedback. I put it at NEW since there's a bt.

Caolán: bt without symbols but showing something wrong in vcl. Weirdly with symbol package installed, no crash. one for you?
Comment 10 Caolán McNamara 2013-01-31 11:28:15 UTC
Without symbols I can't hazard a guess. But "I've submitted several crash reports to Ubuntu via the Ubuntu built-in crash reporting mechanism." suggests that there might be some backtrace info available through that route if you were prompted with a link for where those ended up. (of if bjoern can dig that info out for us)
Comment 11 Michael Stahl (allotropia) 2013-01-31 13:15:07 UTC
it crashes in the "gio" library which happens to be used
in the Ubuntu specific menu bar implementation.

according to this log the lo-menubar package is just a transitional
dummy in Ubuntu 12.10 and the menubar itself is in the GTK+ VCLplug:
https://launchpad.net/ubuntu/+source/lo-menubar/+changelog

you could try if the bug can be reproduced in a desktop _other_
than Unity or if you run it as:
  SAL_USE_VCLPLUGIN=gen soffice

i'll pre-emptively assign it to Bjoern.
Comment 12 Tom Williams 2013-01-31 15:17:00 UTC
(In reply to comment #10)
> Without symbols I can't hazard a guess. But "I've submitted several crash
> reports to Ubuntu via the Ubuntu built-in crash reporting mechanism."
> suggests that there might be some backtrace info available through that
> route if you were prompted with a link for where those ended up. (of if
> bjoern can dig that info out for us)

When I stated that, I was referring to Ubuntu displaying a popup indicating it detected the crash of Writer and asked me if I wanted to send the crash report in to wherever it gets sent. I always send the reports, so there should be a handful (maybe 5-10, ballpark) laying around somewhere. :)
Comment 13 Tom Williams 2013-01-31 15:18:00 UTC
(In reply to comment #11)
> you could try if the bug can be reproduced in a desktop _other_
> than Unity or if you run it as:
>   SAL_USE_VCLPLUGIN=gen soffice
> 

I'll see about trying this.  How do I run it as:

SAL_USE_VCLPLUGIN=gen soffice

Do I enter that in a terminal window?

Thanks!
Comment 14 Julien Nabet 2013-01-31 15:40:52 UTC
(In reply to comment #13)
> SAL_USE_VCLPLUGIN=gen soffice
> 
> Do I enter that in a terminal window?
Yes it's a command line.
Comment 15 Tom Williams 2013-01-31 18:42:58 UTC
Ok, I ran the "SAL_USE_VCLPLUGIN=gen soffice" command and Writer didn't crash aftr closing the page preview window. I was able to preview my document twice in a row and writer didn't crash.
Comment 16 Björn Michaelsen 2013-02-23 17:50:49 UTC
I assume this to be:

 https://bugs.launchpad.net/ubuntu/+source/libreoffice/+bug/1042070

so marking it as RESOLVED NOTOURBUG as per for now (please reopen, if you find something hinting that this is different):

 https://bugs.launchpad.net/ubuntu/+source/libreoffice/+bug/1042070/comments/20

To be sure we would need a stacktrace with glib symbols installed too (which ould be package libglib2.0-0-dbg).