Bug 93525 - Writer EDITING: Crash on deleting text (Unknown event notification 36)
Summary: Writer EDITING: Crash on deleting text (Unknown event notification 36)
Status: RESOLVED WORKSFORME
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
5.0.0.5 release
Hardware: x86-64 (AMD64) Linux (All)
: medium critical
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-08-19 09:22 UTC by Andrew Ridgway
Modified: 2016-11-04 15:51 UTC (History)
6 users (show)

See Also:
Crash report or crash signature:


Attachments
bug 93525 backtrace (1.40 KB, application/gzip)
2015-09-08 10:42 UTC, Andrew Ridgway
Details
Backtrace following crash (9.79 KB, text/plain)
2015-09-08 10:47 UTC, Tristan Miller
Details
output of office --backtrace (16.59 KB, text/x-log)
2015-09-21 10:29 UTC, hkaustin
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Andrew Ridgway 2015-08-19 09:22:15 UTC
When I delete the white space before a manual break the entire document hangs and one of my processors spikes to 100%. I have left the document for 10 minutes to recover and it does not. 

The terminal outputs the following message repeatedly

(soffice:10394): WARNING **: Unknown event notification 36
Comment 1 Andrew Ridgway 2015-08-21 03:38:05 UTC
Steps to reproduce

-> Write several pages of text
-> Add a manual break one page after end of text
-> write several pages of text after manual break
-> attempt to delete empty page

Expected: empty page before manual break is deleted

Observed: Writer crashes and one cpu spikes to 100%
Comment 2 Tristan Miller 2015-08-24 10:27:29 UTC
The bug is always reproducible for me using the following steps:

1) Begin a new Writer document.
2) Type some text.
3) Press the Home key to go to the beginning of the line.
4) Press Shift+End to select to the end of the line, then press Delete.

After Step 4, the following error message gets printed to the console:

** (soffice:27805): WARNING **: Unknown event notification 36

Also, if Delete was pressed immediately after pressing Shift+End, LibreOffice crashes without any further error message.  However, if I pause for a second or two between the two keystrokes, LibreOffice does not crash.

I am using LibreOffice 5.0.1.1 on openSUSE 13.2 (64-bit).
Comment 3 raal 2015-08-24 21:09:32 UTC
(In reply to Tristan Miller from comment #2)
> The bug is always reproducible for me using the following steps:
> 
Setting as new
Comment 4 Tristan Miller 2015-09-01 15:50:59 UTC
Still reproducible with LibreOffice 5.0.1.2.0.  The consistent crashes upon deleting text make Writer unusable.  The problem doesn't seem to affect Calc or Impress.
Comment 5 Matt Price 2015-09-03 23:16:38 UTC
appears to affect me as well, LO 5.0.1, arch linux.
Comment 6 hkaustin 2015-09-08 08:55:14 UTC
I'm experiencing same problem. Also if I select text and make any editing like for example change text style or font to something else and click somewhere on LibreOffice window, it will crash with same terminal message.

I deleted ~/.config/libreoffice folder before testing, so it uses default settings. Using openSUSE Tumbleweed x64. Series 4.x didn't have this problem.
Comment 7 Maxim Monastirsky 2015-09-08 10:28:00 UTC
Does it crash if you export SAL_USE_VCLPLUGIN=gtk before running LO?

Also would be useful to get a backtrace of the crash:
https://wiki.documentfoundation.org/QA/BugReport/Debug_Information#GNU.2FLinux:_How_to_get_a_backtrace
Comment 8 Andrew Ridgway 2015-09-08 10:42:01 UTC
Created attachment 118517 [details]
bug 93525 backtrace

backtrace as requested Maxim Monastirsky 

exporting SAL_USE_VCLPLUGIN=gtk did not help
Comment 9 Tristan Miller 2015-09-08 10:47:45 UTC
Created attachment 118518 [details]
Backtrace following crash

SAL_USE_VCLPLUGIN=gtk doesn't help for me either.  See attached backtrace.
Comment 10 Maxim Monastirsky 2015-09-08 11:04:54 UTC
(In reply to Tristan Miller from comment #9)
> Created attachment 118518 [details]
> Backtrace following crash
@Tristan: Your backtrace is very different from Andrew's one, so I'm afraid it's a different problem.

> SAL_USE_VCLPLUGIN=gtk doesn't help for me either.
That's strange, because your backtrace clearly indicates it's GTK3 related. Make sure you're exporting it in the same terminal where you're starting LO.
Comment 11 Tristan Miller 2015-09-08 11:20:19 UTC
(In reply to Maxim Monastirsky from comment #10)
> > SAL_USE_VCLPLUGIN=gtk doesn't help for me either.
> That's strange, because your backtrace clearly indicates it's GTK3 related.
> Make sure you're exporting it in the same terminal where you're starting LO.

Oh, it turns out that I mistyped the variable name.  I tried again with the proper spelling and now the crash doesn't happen.

I'll file a new issue as a GTK3 VCL UI problem.
Comment 12 Tristan Miller 2015-09-08 11:27:01 UTC
See Bug 94021 for the GTK3 issue.
Comment 13 hkaustin 2015-09-21 10:29:36 UTC
Created attachment 118896 [details]
output of office --backtrace
Comment 14 hkaustin 2015-09-21 10:31:30 UTC
"export SAL_USE_VCLPLUGIN=gtk" solves the crashing for me. I added backtrace before exporting the variable if it's any useful.
Comment 15 Maxim Monastirsky 2015-09-21 12:56:15 UTC
Marked GTK3 backtraces as obsolete, since the backtrace of the original reporter doesn't seem to be related to GTK3. GTK3 related crashes are discussed in Bug 93887 and/or Bug 94013.
Comment 16 Björn Michaelsen 2015-10-13 11:26:08 UTC
Not reproducable on bibisect 50max repo tag latest or on master@c65ff0723f3b0df108bec006be6d5939d4999e10 with reproduction instructions as per comment 1 (which are unfortunately rather vague still).

Exact reproduction steps I tried:
- new writer document
- type dt<F3> to get some text
- type ctrl-a ctrl-c to copy the text
- type ctrl-v to paste the text until 10 pages are reached
- Select menu Insert->manual break and press return
- type ctrl-v to paste the text until 20 pages are reached
- Go to the page immediately following the manual break
- type backspace to delete the manual break

=> not reproducible a crash here
Comment 17 Luke Kendall 2016-02-21 09:52:47 UTC
FWIW, I'm running a development branch of Ubuntu 16.04, and LO 5.1.0, and if I select text in a document and then simply click almost anywhere in the document, the moment of the MOUSE_DOWN event, this appears on the terminal window from which I started LO:
* (soffice:32604): WARNING **: Unknown event notification 36

For every such event, without fail.  No crashes or odd behaviour.

The first occurrence was preceded by this message:

soffice:9087): GLib-GObject-WARNING **: /build/glib2.0-iB_b5N/glib2.0-2.47.5/./gobject/gsignal.c:3486: signal name 'selection_changed' is invalid for instance '0x3920dd0' of type 'OOoAtkObjCompTxt'

HTH
Comment 18 Julien Nabet 2016-05-14 21:21:11 UTC
Andrew: any update with last stable LO version (5.1.2)?
Do you reproduce this on a brand new file?
In any case, could you attach a file and give minimum (but precise) step by step to reproduce this?
Comment 19 Richard PALO 2016-05-24 06:04:11 UTC
At the moment I don't seem to have crashes, but under SunOS 5.11 i386 (pkgsrc)
Version: 5.1.3.2
Build ID: 10m0(Build:2)
Threads CPU : 12; Version de l'OS :unknown; UI Render : par défaut; 
Locale : fr-FR (fr_FR.UTF-8)

I'm seeing the following output:
soffice:24370): Gtk-CRITICAL **: gtk_container_foreach: assertion 'GTK_IS_CONTAINER (container)' failed

** (soffice:24370): WARNING **: Unknown event notification 36

** (soffice:24370): WARNING **: Unknown event notification 36

** (soffice:24370): WARNING **: Unknown event notification 36

** (soffice:24370): WARNING **: Unknown event notification 36

** (soffice:24370): WARNING **: Unknown event notification 36

** (soffice:24370): WARNING **: Unknown event notification 36

** (soffice:24370): WARNING **: Unknown event notification 36

** (soffice:24370): WARNING **: Unknown event notification 36

** (soffice:24370): WARNING **: Unknown event notification 36
....


just for grins I tried SAL_USE_VCLPLUGIN=gtk, and saw:

(soffice:24433): Gdk-WARNING **: gdk_window_set_icon_list: icons too large

(soffice:24433): Gdk-WARNING **: gdk_window_set_icon_list: icons too large

fwiw
Comment 20 Andrew Ridgway 2016-05-26 11:57:22 UTC
Julien: I still get exact same terminal output as Richard, I still get unknown event notification 36. However, It no longer freezes writer up completely it just happens silently and allows me to keep working.

I think this is fixed from my user point of view.

this was on:
LibreOffice 5.1.3.2 10m0(Build:2)

on an up to date arch Linux running openbox
Comment 21 Julien Nabet 2016-05-26 12:08:35 UTC
Thank you for your feedback.

Let's put this one to WFM then (since there's no specific quoted commit(s) which fixed this).
Comment 22 Ulrich Windl 2016-11-04 15:51:18 UTC
I see a severely hanging Writer 5.1.5.2 on OpenSUSE 42.1 (libreoffice-writer-5.1.5.2-11.1.x86_64) again and again for no obvious reasons while editing a document pasted from the Firefox clipboard. Sometimes you'll just have to page forward in the document. The only indication I have (which directed me to this bug) is the message output:
"** (soffice:20793): WARNING **: Unknown event notification 36"
Unrelated may be:
"(soffice:20981): GLib-GObject-WARNING **: gsignal.c:3406: signal name 'selection_changed' is invalid for instance '0x27d9e00' of type 'OOoAtkObjCompTxt'"

I noticed when Writer does not respond, the whole desktop fails to respond (e.g.: no window switching by mouse clicking). The CPUs were not completely busy, and the system was not paging or doing heavy I/O. However when I kill the Writer process from another window, responsiveness returns immediately.

Unfortunately the document has a "non very free permission to use", so I doubt whether I can attach it here. The only feature that might be unusual is an animated GIF (the animation is actually played in Writer).