Bug 132193 - Writer crashes when trying to insert symbol
Summary: Writer crashes when trying to insert symbol
Status: RESOLVED WORKSFORME
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
6.0.7.3 release
Hardware: x86-64 (AMD64) Linux (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: haveBacktrace
Depends on:
Blocks:
 
Reported: 2020-04-17 13:49 UTC by murali
Modified: 2020-04-24 07:19 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments
backtrace of crash (9.74 KB, text/x-log)
2020-04-23 13:23 UTC, murali
Details

Note You need to log in before you can comment on or make changes to this bug.
Description murali 2020-04-17 13:49:17 UTC
When attempting to insert a symbol using either the toolbar or menu, Writer crashes. In order to continue my work I am forced to recover the file I was working on.
Comment 1 Julien Nabet 2020-04-17 15:29:03 UTC
On which Linux distrib are you?
Please give a try to a recent LO version.
Indeed, 6.0.7 is quite old.
Comment 2 Roman Kuznetsov 2020-04-18 13:17:46 UTC
please:

1. Write info from Help->About dialog here
2. Try use newer version of LibreOffice
Comment 3 murali 2020-04-20 09:57:08 UTC
(In reply to Roman Kuznetsov from comment #2)
> please:
> 
> 1. Write info from Help->About dialog here
> 2. Try use newer version of LibreOffice

I have upgraded to the latest version. But the problem persists.

Version: 6.4.3.2
Build ID: 747b5d0ebf89f41c860ec2a39efd7cb15b54f2d8
CPU threads: 4; OS: Linux 5.3; UI render: default; VCL: gtk3; 
Locale: en-IN (en_IN); UI-Language: en-US
Calc: threaded
Comment 4 Julien Nabet 2020-04-20 10:12:13 UTC
Did you install any specific fonts? If yes, could you disable for the test?
Also, could you give a try at https://wiki.documentfoundation.org/QA/FirstSteps ?
Comment 5 murali 2020-04-20 10:49:20 UTC
(In reply to Julien Nabet from comment #4)
> Did you install any specific fonts? If yes, could you disable for the test?
> Also, could you give a try at
> https://wiki.documentfoundation.org/QA/FirstSteps ?

>No, I haven't installed new fonts.
>I have installed from a deb file downloaded from the libre office site.
>The problem I reported gets resolved when running in safe mode. But returns in normal mode. I tried disabling hardware acceleration and restoring last known working configuration but that doesn't help.
>I couldn't trace out the path to my 'profile' though I tried the method given in the help file you mentioned <https://wiki.documentfoundation.org/QA/FirstSteps>.
>How can I locate it and how do I make a backup of that file?>
Comment 6 Julien Nabet 2020-04-20 11:10:06 UTC
You may encounter a dependency problem since you used dpkg.
Linux packages available are provided for maintainers of repositories for the different distributions.

You didn't respond about which Linux distrib you use.
For Ubuntu for example, you got LO ppa
Comment 7 Dieter 2020-04-21 07:28:44 UTC
(In reply to Julien Nabet from comment #6)
> You didn't respond about which Linux distrib you use.

=> NEEDINFO
Comment 8 murali 2020-04-22 01:43:18 UTC
>Linux version 5.3.0-46-generic (buildd@lcy01-amd64-013) (gcc version 7.5.0 (Ubuntu 7.5.0-3ubuntu1~18.04)) #38~18.04.1-Ubuntu SMP Tue Mar 31 04:17:56 UTC 2020
Comment 9 Julien Nabet 2020-04-22 07:44:37 UTC
Try to uninstall LO you had installed with dpkg then install last LO version from LO ppa (see https://launchpad.net/~libreoffice/+archive/ubuntu/ppa).
For this, add the LO ppa to apt sources.
Comment 10 murali 2020-04-23 02:07:31 UTC
ok. I'll do that and report back.
Comment 11 murali 2020-04-23 03:05:26 UTC
I uninstalled LO through the synaptic manager and reinstalled using the PPA as suggested by you. But it hasn't helped.
Comment 12 Julien Nabet 2020-04-23 07:06:20 UTC
(In reply to murali from comment #11)
> I uninstalled LO through the synaptic manager and reinstalled using the PPA
> as suggested by you. But it hasn't helped.

Ok I supposed you installed at least LO 6.4.2.
Could you try to retrieve a backtrace? (see https://wiki.documentfoundation.org/QA/BugReport/Debug_Information#GNU.2FLinux:_How_to_get_a_backtrace)
Comment 13 murali 2020-04-23 13:23:35 UTC
Created attachment 159854 [details]
backtrace of crash

Sending you the backtrace file. Electric supply was down the whole day. Hence the delay. My time zone is +5.30 GMT. I usually get time to attend to this matter between 16.30 and 20.30 GMT.
Comment 14 Julien Nabet 2020-04-23 13:43:34 UTC
Thank you for the backtrace! Very interesting!

Taking a look at this loop here:
260  void SvxCharacterMap::updateRecentCharControl()
261  {
262      int i = 0;
263      for ( std::deque< OUString >::iterator it = maRecentCharList.begin(), it2 = maRecentCharFontList.begin();
264          it != maRecentCharList.end() || it2 != maRecentCharFontList.end();
265          ++it, ++it2, i++)
266      {
267          m_aRecentCharView[i].SetText(*it);
268          vcl::Font rFont = m_aRecentCharView[i].GetFont();
269          rFont.SetFamilyName( *it2 );
270          m_aRecentCharView[i].SetFont(rFont);
271          m_aRecentCharView[i].Show();
272      }

(See https://opengrok.libreoffice.org/xref/core/cui/source/dialogs/cuicharmap.cxx?r=b5bde198#260)

I think "it" variable may be equal to maRecentCharList.end() but we would stay in the loop because it2 != maRecentCharFontList.end()

Now I must search why there would be more font in maRecentCharFontList than in maRecentCharList.

Just to be sure, when you say "symbol" you mean "special character"?
Also do you insert a specific symbol to have the crash or do you have the crash with any symbol? What font do you select?

Let's put this one to NEW since there's a bt.

Could you provide step by step
Comment 15 murali 2020-04-23 14:34:36 UTC
Okay. Yes, I was trying to insert an 'em dash', a special character.
This is how it goes.
I click on the symbol icon in the toolbar, Writer crashes.
I click on Insert in the menu bar,no problem, I then click on 'Special Character', writer crashes.
Comment 16 murali 2020-04-23 14:36:17 UTC
By the way, after reinstallation via PPA, the LO version is 6.4.2.2

Version: 6.4.2.2
Build ID: 1:6.4.2-0ubuntu0.18.04.3
CPU threads: 4; OS: Linux 5.3; UI render: default; VCL: x11; 
Locale: en-IN (en_IN); UI-Language: en-US
Calc: threaded
Comment 17 Julien Nabet 2020-04-23 18:05:28 UTC
(In reply to Julien Nabet from comment #14)
> ...
> Now I must search why there would be more font in maRecentCharFontList than
> in maRecentCharList.
> ...
After having taken a look, I must recognize I don't know how the lists can have different sizes.

Also, I tried to reproduce the pb by following your last comment, I don't reproduce this.

Do you reproduce this with a brand new file or just some specific files?
If only specific, could you attach it after having sanitized it if necessary (see https://wiki.documentfoundation.org/QA/Bugzilla/Sanitizing_Files_Before_Submission)

Also, please rename again your LO profile to be sure, there's no remnant after having uninstalled LO installed from dpkg.
Indeed, I think I asked you to rename your LO profile before uninstalling LO installed manually with dpkg and installing LO from ppa.
Comment 18 murali 2020-04-24 05:22:37 UTC
Great. LO is working fine, special character and all.
I had forgotten to reset the profile file last time. (Sorry for that and wasting your time.) 
So I went back to safe mode and following instructions from 'https://wiki.documentfoundation.org/UserProfile', disabled Hardware Acceleration and reset user profile. 
Thank you.
PS. By the way, when I tried to locate the user profile via Tools>Options>LO>Path I didn't see anything with that name. So I hadn't made a backup. In case I need to do something like that in future, how do I locate the profile?
The crash was happening with old and new files.
Comment 19 Julien Nabet 2020-04-24 07:19:49 UTC
Thank you for your feedback, let's put this one to WFM then.

LO profile for Linux is indicated in https://wiki.documentfoundation.org/UserProfile#GNU.2FLinux