When saving a file as .odt I get the error message: Error in writing sub-document content.xml. LibO quits, and the file cannot be recovered (it is apparently corrupt). It also appears to have trouble saving the file as .doc ( the saved file is very small and appears to contain garbage).
What operating system are you using? Are you saving over a network? Does your document have comments?
Sorry, I thought that was in the message. Kubuntu (Ubuntu 12.04.2.LTS) Linux Kernel 3.2.0-49 x86-64, KDE 4.8.5(4.8.5), LibO 4.1.0.4 Build ID: 410m0(Build: 4). I am not saving over a network and the document has no comments.
I removed and re-installed LibO and it seemed to work OK util I tried to save a large file (~2.1 Mb). Then I got the error: Error saving the document xx: Write Error. Error in writing sub-document styles.xml.
If you are not using comments then it is likely a different bug throwing the same error message. Bug fdo#60769 is specifically related to comments causing the problem, as are duplicates fdo#60997 and fdo#61033. Can you run a backtrace ($ soffice --backtrace
) and attach the gdb.log
to your question? That will help provide further detail about what is going on. This is a critical issue, so we may need to open a new bug.
I tried another test this morning and something different happened. I was attempting to save a file “Darwin’s World” as a .odt file from Writer. The save appeared to be going normally, but then LibO went away, leaving the lock file in the directory, but the file itself was not there. I have the backtrace log but don’t know how to attach it to this comment. I can also send the file I started with.
Either edit your original question and add the detail to the end or simply post an answer below with the detail. Your experience is really not sounding good. LO should not be behaving like that. Please post the new detail so we can raise a bug (if required) with the required detail. Thanks.
Here are the details:
I was attempting to save a file “Darwin’s World” as a .odt file from Writer. The save appeared to be going normally, but then LibO went away, leaving the lock file in the directory, but the file itself was not there. During the backtrace process, after the “log will be saved” message, LibO Writer came back up with a recovery message. I said recover and the recovery failed. I then got a message that the file was corrupt and could not be recovered. When I ended LibO the log save process completed with additional messages. The file I was trying to save is about 2.1 Mb in size.
dickwadm@dickwHP-laptop:~$ soffice --backtrace
GNU gdb (Ubuntu/Linaro 7.4-2012.04-0ubuntu2.1) 7.4-2012.04
Copyright (C) 2012 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
For bug reporting instructions, please see:
<http://bugs.launchpad.net/gdb-linaro/>...
Reading symbols from /usr/lib/libreoffice/program/soffice.bin...(no debugging symbols found)...done.
log will be saved as gdbtrace.log, this will take some time, patience...
X Error: BadMatch (invalid parameter attributes) 8
Major opcode: 42 (X_SetInputFocus)
Resource id: 0x1e002ae
X Error: BadMatch (invalid parameter attributes) 8
Major opcode: 42 (X_SetInputFocus)
Resource id: 0x1e002ae
^Cdickwadm@dickwHP-laptop:~$
warning: Currently logging to gdbtrace.log. Turn the logging off and on to make the new setting effective.
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[New Thread 0x7fffe1a20700 (LWP 3025)]
[New Thread 0x7fffd5fc1700 (LWP 3026)]
[New Thread 0x7fffd57c0700 (LWP 3027)]
[New Thread 0x7fffcffff700 (LWP 3028)]
[New Thread 0x7fffcf1cc700 (LWP 3031)]
[Thread 0x7fffcf1cc700 (LWP 3031) exited]
[Thread 0x7fffd5fc1700 (LWP 3026) exited]
[New Thread 0x7fffd5fc1700 (LWP 3032)]
[Thread 0x7fffd5fc1700 (LWP 3032) exited]
[New Thread 0x7fffd5fc1700 (LWP 3033)]
[Thread 0x7fffd5fc1700 (LWP 3033) exited]
[New Thread 0x7fffd5fc1700 (LWP 3034)]
Program received signal SIGINT, Interrupt.
0x00007ffff3d8c313 in __GI___poll (fds=<optimized out>, nfds=<optimized out>, timeout=<optimized out>) at ../sysdeps/unix/sysv/linux/poll.c:87
87 ../sysdeps/unix/sysv/linux/poll.c: No such file or directory.
#0 0x00007ffff3d8c313 in __GI___poll (fds=<optimized out>, nfds=<optimized out>, timeout=<optimized out>) at ../sysdeps/unix/sysv/linux/poll.c:87
#1 0x00007fffe07d9072 in ?? () from /usr/lib/libreoffice/program/libvclplug_kde4lo.so
#2 0x00007ffff2039036 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3 0x00007ffff2039164 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#4 0x00007fffdf1ef3bf in QEventDispatcherGlib::processEvents (this=0x622b60, flags=...) at kernel/qeventdispatcher_glib.cpp:424
#5 0x00007fffde5ead5e in QGuiEventDispatcherGlib::processEvents (this=<optimized out>, flags=...) at kernel/qguieventdispatcher_glib.cpp:204
#6 0x00007fffe07d9e5a in ?? () from /usr/lib/libreoffice/program/libvclplug_kde4lo.so
#7 0x00007ffff68b8301 in Application::Yield(bool) () from /usr/lib/libreoffice/program/libmergedlo.so
#8 0x00007ffff68b83b7 in Application::Execute() () from /usr/lib/libreoffice/program/libmergedlo.so
#9 0x00007ffff5c10d71 in ?? () from /usr/lib/libreoffice/program/libmergedlo.so
#10 0x00007ffff68bf7b1 in ?? () from /usr/lib/libreoffice/program/libmergedlo.so
#11 0x00007ffff68bf7d2 in SVMain() () from /usr/lib/libreoffice/program/libmergedlo.so
#12 0x00007ffff5c3e085 in soffice_main () from /usr/lib/libreoffice/program/libmergedlo.so
#13 0x000000000040067b in ?? ()
#14 0x00007ffff3cc576d in __libc_start_main (main=0x400670, argc=2, ubp_av=0x7fffffffe0f8, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7fffffffe0e8) at libc-start.c:226
#15 0x00000000004006b1 in ?? ()
#16 0x00007fffffffe0e8 in ?? ()
#17 0x000000000000001c in ?? ()
#18 0x0000000000000002 in ?? ()
#19 0x00007fffffffe3ec in ?? ()
#20 0x00007fffffffe415 in ?? ()
#21 0x0000000000000000 in ?? ()
Thread 9 (Thread 0x7fffd5fc1700 (LWP 3034)):
#0 0x00007ffff3d8c313 in __GI___poll (fds=<optimized out>, nfds=<optimized out>, timeout=<optimized out>) at ../sysdeps/unix/sysv/linux/poll.c:87
#1 0x00007fffde112940 in ?? () from /usr/lib/libreoffice/program/libvclplug_genlo.so
#2 0x00007ffff407a72f in ?? () from /usr/lib/libreoffice/program/../ure-link/lib/libuno_sal.so.3
#3 0x00007ffff2744e9a in start_thread (arg=0x7fffd5fc1700) at pthread_create.c:308
#4 0x00007ffff3d97ccd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#5 0x0000000000000000 in ?? ()
Thread 5 (Thread 0x7fffcffff700 (LWP 3028)):
#0 0x00007ffff3d8c313 in __GI___poll (fds=<optimized out>, nfds=<optimized out>, timeout=<optimized out>) at ../sysdeps/unix/sysv/linux/poll.c:87
#1 0x00007fffde12d432 in ?? () from /usr/lib/libreoffice/program/libvclplug_genlo.so
#2 0x00007fffde12d67f in ?? () from /usr/lib/libreoffice/program/libvclplug_genlo.so
#3 0x00007ffff407a72f in ?? () from /usr/lib/libreoffice/program/../ure-link/lib/libuno_sal.so.3
#4 0x00007ffff2744e9a in start_thread (arg=0x7fffcffff700) at pthread_create.c:308
#5 0x00007ffff3d97ccd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#6 0x0000000000000000 in ?? ()
Thread 4 (Thread 0x7fffd57c0700 (LWP 3027)):
#0 0x00007ffff3d98a7d in accept () at ../sysdeps/unix/syscall-template.S:82
#1 0x00007ffff4074d8f in osl_acceptPipe () from /usr/lib/libreoffice/program/../ure-link/lib/libuno_sal.so.3
#2 0x00007ffff5c39b9e in ?? () from /usr/lib/libreoffice/program/libmergedlo.so
#3 0x00007fffeb063c06 in salhelper::Thread::run() () from /usr/lib/libreoffice/program/../ure-link/lib/libuno_salhelpergcc3.so.3
#4 0x00007fffeb063e6a in ?? () from /usr/lib/libreoffice/program/../ure-link/lib/libuno_salhelpergcc3.so.3
#5 0x00007ffff407a72f in ?? () from /usr/lib/libreoffice/program/../ure-link/lib/libuno_sal.so.3
#6 0x00007ffff2744e9a in start_thread (arg=0x7fffd57c0700) at pthread_create.c:308
#7 0x00007ffff3d97ccd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#8 0x0000000000000000 in ?? ()
Thread 2 (Thread 0x7fffe1a20700 (LWP 3025)):
#0 pthread_cond_timedwait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:215
#1 0x00007ffff408141f in ?? () from /usr/lib/libreoffice/program/../ure-link/lib/libuno_sal.so.3
#2 0x00007ffff2744e9a in start_thread (arg=0x7fffe1a20700) at pthread_create.c:308
#3 0x00007ffff3d97ccd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#4 0x0000000000000000 in ?? ()
Thread 1 (Thread 0x7ffff7fad9c0 (LWP 3022)):
#0 0x00007ffff3d8c313 in __GI___poll (fds=<optimized out>, nfds=<optimized out>, timeout=<optimized out>) at ../sysdeps/unix/sysv/linux/poll.c:87
#1 0x00007fffe07d9072 in ?? () from /usr/lib/libreoffice/program/libvclplug_kde4lo.so
#2 0x00007ffff2039036 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3 0x00007ffff2039164 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#4 0x00007fffdf1ef3bf in QEventDispatcherGlib::processEvents (this=0x622b60, flags=...) at kernel/qeventdispatcher_glib.cpp:424
#5 0x00007fffde5ead5e in QGuiEventDispatcherGlib::processEvents (this=<optimized out>, flags=...) at kernel/qguieventdispatcher_glib.cpp:204
#6 0x00007fffe07d9e5a in ?? () from /usr/lib/libreoffice/program/libvclplug_kde4lo.so
#7 0x00007ffff68b8301 in Application::Yield(bool) () from /usr/lib/libreoffice/program/libmergedlo.so
#8 0x00007ffff68b83b7 in Application::Execute() () from /usr/lib/libreoffice/program/libmergedlo.so
#9 0x00007ffff5c10d71 in ?? () from /usr/lib/libreoffice/program/libmergedlo.so
#10 0x00007ffff68bf7b1 in ?? () from /usr/lib/libreoffice/program/libmergedlo.so
#11 0x00007ffff68bf7d2 in SVMain() () from /usr/lib/libreoffice/program/libmergedlo.so
#12 0x00007ffff5c3e085 in soffice_main () from /usr/lib/libreoffice/program/libmergedlo.so
#13 0x000000000040067b in ?? ()
#14 0x00007ffff3cc576d in __libc_start_main (main=0x400670, argc=2, ubp_av=0x7fffffffe0f8, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7fffffffe0e8) at libc-start.c:226
#15 0x00000000004006b1 in ?? ()
#16 0x00007fffffffe0e8 in ?? ()
#17 0x000000000000001c in ?? ()
#18 0x0000000000000002 in ?? ()
#19 0x00007fffffffe3ec in ?? ()
#20 0x00007fffffffe415 in ?? ()
#21 0x0000000000000000 in ?? ()
A debugging session is active.
Inferior 1 [process 3022] will be killed.
Quit anyway? (y or n) [answered Y; input not from terminal]
Thanks. I can’t see anything obvious, but that probably does not mean much. I am worried by the inconsistent nature of the problems you are experiencing. You problem is going to have to be repeatable (usually a problem install, environment, configuration, or document) in order for others to verify the issue. Even so, all I can suggest is reporting the bug (https://www.libreoffice.org/get-help/bug/), including your logs and files, and linking to fdo#60769 if you are still getting that error.
I was afraid of that. I get different errors at different times. I’m not at all sure what is going on, but it doesn’t seem to be repeatable most of the time.
Check your hardware (memory and HDD mainly) and verify your install download using the provided checksums (the small Info link on the large green download button) to ensure everything is OK. If everything appears to check out OK, please do raise a bug. It may be that your OS install has problems, in which case a re-install may be in order.