texmaker segfaults

Questions about applications and software
Forum rules
Before you post please read how to get help
Post Reply
fabien85
Level 6
Level 6
Posts: 1305
Joined: Tue Mar 11, 2014 4:30 pm

texmaker segfaults

Post by fabien85 » Thu Dec 07, 2017 10:24 am

Hi,
I'm on a laptop with Mint 18.3 Cinnamon, kernel 4.13, see inxi output at the end of the message.
I have been using texmaker for a long time, as an editor to type Latex documents.
Since the beginning of this week it's crashing. On a single document it crashes randomly after some time. If I work on a document with a \include{} and try to open the corresponding file to be included, it crashes systematically.
I have installed another editor, texstudio and that one works perfectly. However I would like to understand what's going on with texmaker and whether I can fix it, especially as it may be related to another strange thing I have, see later.
When texmaker crashes, I get a message like this in /var/log/syslog:

Code: Select all

texmaker[13180]: segfault at 100000019 ip 00007f176f33da81 sp 00007ffec8192b50 error 4 in libQt5Widgets.so.5.5.1[7f176ef14000+659000]
or

Code: Select all

traps: texmaker[5322] general protection ip:7f4fa9aa77b1 sp:7fff08ce12e0 error:0 in libQt5Widgets.so.5.5.1[7f4fa967e000+659000]
(same stuff in dmesg and kern.log)
When I launch texmaker from the terminal, when it crashes I get

Code: Select all

Segmentation fault (core dumped)
I dont see any core file in the directory from where I launched the terminal. There is a core file in / but it was not produced on the same date, and trying to read it gives:

Code: Select all

$ sudo file /core 
/core: ELF 64-bit LSB core file x86-64, version 1 (SYSV), SVR4-style, from '/usr/lib/xorg/Xorg -core :0 -seat seat0 -auth /var/run/lightdm/root/:0 -noliste'
which is worrying me, looks like a dump from a crash of the X server, I dont know if it's related to the texmaker problem or not.
I saw that file a few weeks ago, examined and removed it to see if it would come back, and yes it has come back. Last dump was 3 days ago.

What I tried for fixing texmaker :
- reinstalling texmaker and texmaker-data
- purging-rebooting-reinstalling, several times
- purging nvidia driver, trying on nouveau (still didnt work) and coming back to nvidia
- looked for a new texmaker version on their website, but the .deb are for ubuntu 17.04 and 17.10 and dont want to be installed on my Mint (dependency is not satisfiable: libqt5core5a>=5.7.0)
I looked at building from the source but there is no makefile nor ./configure and I dont code in C so I dont know how to compile the source

What I tried for debugging:
- googled the error messages but didnt find much, the only things were not understandable for me
- installed texmaker on another machine with Mint 18.3 Mate, it works perfectly, I can open and compile docs that crash on the laptop
- boot the laptop on a USB stick with Mint 18.2 Cinnamon installed on it, installed texmaker and it works, upgraded to 18.3 one update by update (rebooting after each) and texmaker kept working all the way (that was a painfully long process...)
- (I probably should have started with this) I logged to another user and launched texmaker and it works perfectly there !

Following the last point, the problem is probably somewhere in my home folder.
There is no .texmaker file or folder in /home/fabien/ , there is a .texmf-var/ but it didnt make any difference when I removed it, so I've put it back.
The ownership of all the .something file or folders in my home is correctly fabien:fabien. I dont know what the permissions should be but nothing strikes me as abnormal.

So in summary, here are the questions I'd like to answer :
- why is texmaker crashing for my user ?
- why do I have a /core dump of the X server from time to time ?
- are these two problems related ?

Thanks for any help

Code: Select all

$ inxi -Fxz
System:    Host: fabien-UX310UQK Kernel: 4.13.0-17-generic x86_64 (64 bit gcc: 5.4.0)
           Desktop: Cinnamon 3.6.6 (Gtk 3.18.9-1ubuntu3.3) Distro: Linux Mint 18.3 Sylvia
Machine:   System: ASUSTeK (portable) product: UX310UQK v: 1.0
           Mobo: ASUSTeK model: UX310UQK v: 1.0
           Bios: American Megatrends v: UX310UQK.203 date: 09/07/2016
CPU:       Dual core Intel Core i7-7500U (-HT-MCP-) cache: 4096 KB
           flags: (lm nx sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx) bmips: 11616
           clock speeds: max: 3500 MHz 1: 2900 MHz 2: 2900 MHz 3: 2900 MHz 4: 2900 MHz
Graphics:  Card-1: Intel Device 5916 bus-ID: 00:02.0
           Card-2: NVIDIA GM108M [GeForce 940MX] bus-ID: 01:00.0
           Display Server: X.Org 1.18.4 drivers: (unloaded: fbdev,vesa)
           Resolution: 1920x1080@60.05hz, 1920x1200@59.95hz
           GLX Renderer: Mesa DRI Intel HD Graphics 620 (Kabylake GT2)
           GLX Version: 3.0 Mesa 17.0.7 Direct Rendering: Yes
Audio:     Card Intel Device 9d71 driver: snd_hda_intel bus-ID: 00:1f.3
           Sound: Advanced Linux Sound Architecture v: k4.13.0-17-generic
Network:   Card: Intel Wireless 8260 driver: iwlwifi bus-ID: 02:00.0
           IF: wlp2s0 state: up mac: <filter>
Drives:    HDD Total Size: 1256.3GB (23.1% used)
           ID-1: /dev/sda model: ST1000LM035 size: 1000.2GB
           ID-2: /dev/sdb model: MTFDDAV256TBN size: 256.1GB
Partition: ID-1: / size: 23G used: 16G (72%) fs: ext4 dev: /dev/sdb2
           ID-2: /home size: 96G used: 36G (40%) fs: ext4 dev: /dev/sdb3
           ID-3: /var size: 15G used: 4.8G (36%) fs: ext4 dev: /dev/sda1
RAID:      No RAID devices: /proc/mdstat, md_mod kernel module present
Sensors:   System Temperatures: cpu: 43.0C mobo: N/A
           Fan Speeds (in rpm): cpu: N/A
Info:      Processes: 231 Uptime: 4:18 Memory: 2587.4/15927.3MB
           Init: systemd runlevel: 5 Gcc sys: 5.4.0 Client: Shell (bash 4.3.481) inxi: 2.2.35

fabien85
Level 6
Level 6
Posts: 1305
Joined: Tue Mar 11, 2014 4:30 pm

Re: texmaker segfaults

Post by fabien85 » Sat Dec 09, 2017 10:43 am

Update:
I made a clone of my system to experiment there. Some results :
- the issue seems independent of the kernel. I have booted with kernels in the 4.4, 4.11 and 4.13 series and texmaker always segfaults with my user.
For the kernel changes, I even purged kernels before reinstalling new ones to boot to, so that dkms modules should be recompiled for the newer kernel to be tested. Didnt change anything, texmaker still segfaults. Sometimes it segfaults after a few seconds more than other times, but it's never possible to really work on a document with \include files.
- I installed mint-meta-xfce, and logged to it. Texmaker seems to work there. I haven't tested for hours, but I have been able to open a complex doc with \include file, make changes and compile it without any issue

So the issue is both related to cinnamon and to my user profile.
I'm not sure how to debug more.

Cody88
Level 1
Level 1
Posts: 3
Joined: Fri Dec 15, 2017 5:08 am

Re: texmaker segfaults

Post by Cody88 » Fri Dec 15, 2017 5:18 am

Same (or similar problem) happens to my system.
I updated my system to Linux Mint 18.3 with kernel 4.10.0-42-generic. Since then TexMaker crashs.

Crash happens for example while editting \section{} or simply clicking "Ctrl & \".

My /var/log/syslog says:

Code: Select all

Dec 15 10:02:54 xxxx kernel: [  350.681840] texmaker[4925]: segfault at 14 ip 00007f6981dee7c0 sp 00007ffd53618690 error 4 in libQt5Widgets.so.5.5.1[7f69819c5000+659000]
Dec 15 10:04:21 xxxx kernel: [  437.549692] traps: texmaker[5314] general protection ip:7ff91156a7b1 sp:7ffdc6363210 error:0
 
My system:

Code: Select all

inxi -Fxz
System:    Host: xxxx Kernel: 4.10.0-42-generic x86_64 (64 bit gcc: 5.4.0)
           Desktop: Cinnamon 3.6.6 (Gtk 3.18.9-1ubuntu3.3)
           Distro: Linux Mint 18.3 Sylvia
Machine:   System: LENOVO (portable) product: 20AL0011MZ v: ThinkPad X240
           Mobo: LENOVO model: 20AL0011MZ v: 0B98401 PRO
           Bios: LENOVO v: GIET89WW (2.39 ) date: 04/26/2017
CPU:       Dual core Intel Core i7-4600U (-HT-MCP-) cache: 4096 KB
           flags: (lm nx sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx) bmips: 10775
           clock speeds: max: 3300 MHz 1: 2022 MHz 2: 1427 MHz 3: 1431 MHz
           4: 1354 MHz
Graphics:  Card: Intel Haswell-ULT Integrated Graphics Controller
           bus-ID: 00:02.0
           Display Server: X.Org 1.18.4 drivers: intel (unloaded: fbdev,vesa)
           Resolution: 1366x768@60.00hz
           GLX Renderer: Mesa DRI Intel Haswell Mobile
           GLX Version: 3.0 Mesa 17.0.7 Direct Rendering: Yes
Audio:     Card-1 Intel 8 Series HD Audio Controller
           driver: snd_hda_intel bus-ID: 00:1b.0
           Card-2 Intel Haswell-ULT HD Audio Controller
           driver: snd_hda_intel bus-ID: 00:03.0
           Sound: Advanced Linux Sound Architecture v: k4.10.0-42-generic
Network:   Card-1: Intel Ethernet Connection I218-LM
           driver: e1000e v: 3.2.6-k port: 3080 bus-ID: 00:19.0
           IF: enp0s25 state: down mac: <filter>
           Card-2: Intel Wireless 7260 driver: iwlwifi bus-ID: 03:00.0
           IF: wlp3s0 state: up mac: <filter>
Drives:    HDD Total Size: 500.1GB (6.0% used)
           ID-1: /dev/sda model: Samsung_SSD_850 size: 500.1GB
Partition: ID-1: / size: 221G used: 22G (11%) fs: ext4 dev: /dev/sda3
           ID-2: swap-1 size: 8.00GB used: 0.00GB (0%) fs: swap dev: /dev/sda2
RAID:      No RAID devices: /proc/mdstat, md_mod kernel module present
Sensors:   System Temperatures: cpu: 45.0C mobo: N/A
           Fan Speeds (in rpm): cpu: 3045
Info:      Processes: 246 Uptime: 23 min Memory: 1692.0/7695.4MB
           Init: systemd runlevel: 5 Gcc sys: 5.4.0
           Client: Shell (bash 4.3.481) inxi: 2.2.35
Any solutions?

fabien85
Level 6
Level 6
Posts: 1305
Joined: Tue Mar 11, 2014 4:30 pm

Re: texmaker segfaults

Post by fabien85 » Sat Dec 16, 2017 5:26 am

Good to know I'm not the only one.
I haven't found a solution yet, just workarounds. I have tried viewing the texmaker crash report through mintreport (Menu > Administration > System Reports), but the thing never completes : it fills my /tmp with a CoreDump reaching the 2G limit that I've set to /tmp. I dont know how else to analyse the crash report /var/crash/_usr_bin_texmaker.1000.crash
The workarounds I found :
- Use the Xfce desktop by installing mint-meta-xfce and selecting Xfce at the login screen.
However there are warnings against having several desktop environments (e.g. https://sites.google.com/site/easylinux ... vironments by forum member Pjotr)
- login to another user
the fact that this works makes me guess that the problem is in some configuration file somewhere and should in principle be easy to solve
- what I do at the moment : install texstudio
It's available in the software manager. For me it takes 1 second more to launch than texmaker, and at first I didnt like the default syntax highlighting. But then I found it's highly customisable, most functions are identical to texmaker, plus there are some other nice functions. So I have grown to like it and now prefer it over texmaker (which is also why I mostly stopped looking for a way to fix texmaker)

Cody88
Level 1
Level 1
Posts: 3
Joined: Fri Dec 15, 2017 5:08 am

Re: texmaker segfaults

Post by Cody88 » Mon Dec 18, 2017 12:09 pm

Hi
Debugging TeXmaker costs me to much time... I am just writing a diploma thesis...

So what I did (after posting my problem) is installing TexStudio also (from Linux Mint software manager).
As you said, the syntax hightlighting is different. But after using it several hours I prefer it over TeXmaker.
As long as one of these editors work on my system I am happy... :)

FloBEAUG
Level 1
Level 1
Posts: 2
Joined: Fri Jan 26, 2018 5:37 am

Re: texmaker segfaults

Post by FloBEAUG » Fri Jan 26, 2018 5:44 am

I have exactly the same problem... trying to solve it. Can't find anything wrong...
My tests:
Run with default user --> NOK
Run with sudo --> OK
Run with new user --> OK

End of strace :
--- SIGSEGV {si_signo=SIGSEGV, si_code=SI_KERNEL, si_addr=0} ---
+++ killed by SIGSEGV (core dumped) +++

FloBEAUG
Level 1
Level 1
Posts: 2
Joined: Fri Jan 26, 2018 5:37 am

Re: texmaker segfaults

Post by FloBEAUG » Fri Jan 26, 2018 9:00 am

I may have found the solution !

My tests :
Opened a terminal and made su - myCurentUser then tried to edit a tex file --> that worked
Tried to compare environment variables env of my user vs my "sued" same user and unseted them (unset) one by one to find the culprit.

And the winner is : QT_LINUX_ACCESSIBILITY_ALWAYS_ON=1

Opened a new term (with all env variables set) and just unseted QT_LINUX_ACCESSIBILITY_ALWAYS_ON and voila!

For permanent changes :
rm /etc/X11/Xsession.d/90qt-a11y

fabien85
Level 6
Level 6
Posts: 1305
Joined: Tue Mar 11, 2014 4:30 pm

Re: texmaker segfaults

Post by fabien85 » Sun Jan 28, 2018 2:23 pm

Thanks FloBEAUG, I tried it and the solution worked for me.
(but now I prefer using Texstudio, I found it has many nice features)

gsagostinho
Level 1
Level 1
Posts: 46
Joined: Sat Jul 26, 2014 5:24 pm

Re: texmaker segfaults

Post by gsagostinho » Tue Mar 20, 2018 12:50 pm

FloBEAUG wrote:
Fri Jan 26, 2018 9:00 am
I may have found the solution !

[...]

For permanent changes :
rm /etc/X11/Xsession.d/90qt-a11y
Thank you so much, FloBEAUG! This bug was driving me literally insane...

But are there any other consequences of deleting this file 90qt-a11y?

Post Reply

Return to “Software & Applications”