Menu

#1977 TeXstudio crashes when trying to open a file

None
works-for-me
nobody
None
1
2016-11-21
2016-11-21
Anonymous
No

Just installed TeXstudio on Arch Linux:

$ texstudio --version
TeXstudio 2.11.2 (6191:c01fb289a5fe)

I can't use it as it crashes as soon as I try to open a file.
This is what happens: I start the program, then click on the menu "File", then "Open", then the program stops. Here is the result from the command line:

$ texstudio 

(texstudio:2194): Gdk-WARNING **: gdkwindow-x11.c:5573 drawable is not a native X11 window
crashed with signal SIGSEGV
crashed with signal SIGSEGV
crashed with signal SIGSEGV
crashed with signal SIGSEGV
crashed with signal SIGSEGV
Forced kill after recovering failed after: SIGSEGV

Abandon (core dumped)

The system journal has the following output. Just after starting TeXstudio:

nov. 21 08:23:40 archx org.gnome.Shell.desktop[836]: Window manager warning: Invalid WM_TRANSIENT_FOR window 0x1400007 specified for 0x1400005 (TeXstudio).

Then after the menu selection and the crash:

nov. 21 08:24:06 archx systemd[1]: Started Process Core Dump (PID 2457/UID 0).
nov. 21 08:24:07 archx systemd-coredump[2458]: Process 2428 (texstudio) of user 2005 dumped core.

                                               Stack trace of thread 2428:
                                               #0  0x00007fe54028204f raise (libc.so.6)
                                               #1  0x00007fe54028347a abort (libc.so.6)
                                               #2  0x00007fe5411404a1 _ZNK14QMessageLogger5fatalEPKcz (libQt5Core.so.5)
                                               #3  0x000000000055892d _ZN9Texstudio16recoverFromCrashEv (texstudio)
                                               #4  0x00007fe5411ff235 _ZN13QElapsedTimer5startEv (libQt5Core.so.5)
                                               #5  0x00007fe541142596 n/a (libQt5Core.so.5)
                                               #6  0x00007fe54114355f _Z17qFormatLogMessage9QtMsgTypeRK18QMessageLogContextRK7QString (libQt5Core.so.5)
                                               #7  0x00007fe54114452b n/a (libQt5Core.so.5)
                                               #8  0x00007fe54113e918 n/a (libQt5Core.so.5)
                                               #9  0x00007fe541140489 _ZNK14QMessageLogger5fatalEPKcz (libQt5Core.so.5)
                                               #10 0x000000000055892d _ZN9Texstudio16recoverFromCrashEv (texstudio)
                                               #11 0x00007fe5411de413 n/a (libQt5Core.so.5)
                                               #12 0x00007fe5411e93e3 _ZNK7QString3argERKS_i5QChar (libQt5Core.so.5)
                                               #13 0x0000000000558050 _ZN9Texstudio16recoverFromCrashEv (texstudio)
                                               #14 0x00007fe5411de413 n/a (libQt5Core.so.5)
                                               #15 0x00007fe5411e93e3 _ZNK7QString3argERKS_i5QChar (libQt5Core.so.5)
                                               #16 0x0000000000558050 _ZN9Texstudio16recoverFromCrashEv (texstudio)
                                               #17 0x00007fe5411de413 n/a (libQt5Core.so.5)
                                               #18 0x00007fe5411e93e3 _ZNK7QString3argERKS_i5QChar (libQt5Core.so.5)
                                               #19 0x0000000000558050 _ZN9Texstudio16recoverFromCrashEv (texstudio)
                                               #20 0x00007fe5411de413 n/a (libQt5Core.so.5)
                                               #21 0x00007fe5411e93e3 _ZNK7QString3argERKS_i5QChar (libQt5Core.so.5)
                                               #22 0x0000000000557bc6 _ZN9Texstudio16recoverFromCrashEv (texstudio)
                                               #23 0x00007fe5411de413 n/a (libQt5Core.so.5)
                                               #24 0x00007fe5411e93e3 _ZNK7QString3argERKS_i5QChar (libQt5Core.so.5)
                                               #25 0x0000000000557bc6 _ZN9Texstudio16recoverFromCrashEv (texstudio)
                                               #26 0x0000000002c8ddd0 n/a (n/a)

Discussion

  • Alexandre

    Alexandre - 2016-11-21

    I have posted this bug report. I have tried TeXmaker and got the same error (except that there was only one occurence of crash with signal SIGSEGV not 5).

    For information here is the output when run TeXsutdio with gdb:

    $ gdb texstudio
    GNU gdb (GDB) 7.12
    Copyright (C) 2016 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-pc-linux-gnu".
    Type "show configuration" for configuration details.
    For bug reporting instructions, please see:
    <http://www.gnu.org/software/gdb/bugs/>.
    Find the GDB manual and other documentation resources online at:
    <http://www.gnu.org/software/gdb/documentation/>.
    For help, type "help".
    Type "apropos word" to search for commands related to "word"...
    Reading symbols from texstudio...(no debugging symbols found)...done.
    (gdb) run
    Starting program: /usr/bin/texstudio 
    [Thread debugging using libthread_db enabled]
    Using host libthread_db library "/usr/lib/libthread_db.so.1".
    [New Thread 0x7fffe9195700 (LWP 3056)]
    [New Thread 0x7fffdf0e6700 (LWP 3057)]
    [New Thread 0x7fffde8e5700 (LWP 3058)]
    [New Thread 0x7fffde0e4700 (LWP 3059)]
    [New Thread 0x7fffdd6c7700 (LWP 3060)]
    [New Thread 0x7fffccf7e700 (LWP 3062)]
    [New Thread 0x7fffc3766700 (LWP 3063)]
    [New Thread 0x7fffc280f700 (LWP 3064)]
    [New Thread 0x7fffc1980700 (LWP 3066)]
    [New Thread 0x7fffb30f4700 (LWP 3071)]
    [New Thread 0x7fffb26ed700 (LWP 3072)]
    [New Thread 0x7fffb1eec700 (LWP 3073)]
    [Thread 0x7fffb1eec700 (LWP 3073) exited]
    [Thread 0x7fffc1980700 (LWP 3066) exited]
    [New Thread 0x7fffc1980700 (LWP 3076)]
    [New Thread 0x7fffb1eec700 (LWP 3077)]
    [New Thread 0x7fffb13ec700 (LWP 3078)]
    [New Thread 0x7fffb0beb700 (LWP 3079)]
    [New Thread 0x7fff9bfff700 (LWP 3080)]
    
    (texstudio:3052): Gdk-WARNING **: gdkwindow-x11.c:5573 drawable is not a native X11 window
    
    Thread 1 "texstudio" received signal SIGSEGV, Segmentation fault.
    0x0000000001325e90 in ?? ()
    (gdb) where
    #0  0x0000000001325e90 in  ()
    #1  0x00007ffff7aba513 in XChangeProperty () at /usr/lib/libX11.so.6
    #2  0x00007ffff7ad7829 in XSetTransientForHint () at /usr/lib/libX11.so.6
    #3  0x00007fffe813146e in  () at /usr/lib/qt/plugins/platformthemes/libqgtk3.so
    #4  0x00007fffe8134101 in  () at /usr/lib/qt/plugins/platformthemes/libqgtk3.so
    #5  0x00007ffff6e836f0 in QDialogPrivate::setNativeDialogVisible(bool) ()
        at /usr/lib/libQt5Widgets.so.5
    #6  0x00007ffff6e95d32 in QFileDialog::setVisible(bool) ()
        at /usr/lib/libQt5Widgets.so.5
    #7  0x00007ffff6e845a1 in QDialog::exec() () at /usr/lib/libQt5Widgets.so.5
    #8  0x00007ffff6e9683a in QFileDialog::getOpenFileUrls(QWidget*, QString const&, QUrl const&, QString const&, QString*, QFlags<QFileDialog::Option>, QStringList const&) () at /usr/lib/libQt5Widgets.so.5
    #9  0x00007ffff6e96a9f in QFileDialog::getOpenFileNames(QWidget*, QString const&, QString const&, QString const&, QString*, QFlags<QFileDialog::Option>) ()
        at /usr/lib/libQt5Widgets.so.5
    #10 0x0000000000590b0c in Texstudio::fileOpen() ()
    #11 0x0000000000909cda in  ()
    #12 0x00007ffff55a9659 in QMetaObject::activate(QObject*, int, int, void**) ()
        at /usr/lib/libQt5Core.so.5
    #13 0x00007ffff6c91442 in QAction::triggered(bool) ()
        at /usr/lib/libQt5Widgets.so.5
    #14 0x00007ffff6c93e30 in QAction::activate(QAction::ActionEvent) ()
       /libQt5Widgets.so.5
    #15 0x00007ffff6e01e6a in  () at /usr/lib/libQt5Widgets.so.5
    #16 0x00007ffff6e0805c in  () at /usr/lib/libQt5Widgets.so.5
    #17 0x00007ffff6e0c050 in QMenu::mouseReleaseEvent(QMouseEvent*) () at /usr/lib/libQt5Widgets.so.5
    #18 0x00007ffff6cdeef8 in QWidget::event(QEvent*) () at /usr/lib/libQt5Widgets.so.5
    #19 0x00007ffff6e0cb0b in QMenu::event(QEvent*) () at /usr/lib/libQt5Widgets.so.5
    #20 0x00007ffff6c97e0c in QApplicationPrivate::notify_helper(QObject*, QEvent*) () at /usr/lib/libQt5Widgets.so.5
    #21 0x00007ffff6ca043d in QApplication::notify(QObject*, QEvent*) () at /usr/lib/libQt5Widgets.so.5
    #22 0x00007ffff557dde0 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () at /usr/lib/libQt5Core.so.5
    #23 0x00007ffff6c9eaed in QApplicationPrivate::sendMouseEvent(QWidget*, QMouseEvent*, QWidget*, QWidget*, QWidget**, QPointer<QWidget>&, bool) () at /usr/lib/libQt5Widgets.so.5
    #24 0x00007ffff6cf9580 in  () at /usr/lib/libQt5Widgets.so.5
    #25 0x00007ffff6cfb743 in  () at /usr/lib/libQt5Widgets.so.5
    #26 0x00007ffff6c97e0c in QApplicationPrivate::notify_helper(QObject*, QEvent*) () at /usr/lib/libQt5Widgets.so.5
    #27 0x00007ffff6c9f581 in QApplication::notify(QObject*, QEvent*) () at /usr/lib/libQt5Widgets.so.5
    #28 0x00007ffff557dde0 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () at /usr/lib/libQt5Core.so.5
    #29 0x00007ffff6506303 in QGuiApplicationPrivate::processMouseEvent(QWindowSystemInterfacePrivate::MouseEvent*) ()
        at /usr/lib/libQt5Gui.so.5
    #30 0x00007ffff6507e85 in QGuiApplicationPrivate::processWindowSystemEvent(QWindowSystemInterfacePrivate::WindowSystemEvent*) () at /usr/lib/libQt5Gui.so.5
    #31 0x00007ffff64e5cab in QWindowSystemInterface::sendWindowSystemEvents(QFlags<QEventLoop::ProcessEventsFlag>) ()
        at /usr/lib/libQt5Gui.so.5
    #32 0x00007fffeb7b72f0 in  () at /usr/lib/libQt5XcbQpa.so.5
    #33 0x00007ffff1e70587 in g_main_context_dispatch () at /usr/lib/libglib-2.0.so.0
    #34 0x00007ffff1e707f0 in  () at /usr/lib/libglib-2.0.so.0
    #35 0x00007ffff1e7089c in g_main_context_iteration () at /usr/lib/libglib-2.0.so.0
    #36 0x00007ffff55d270f in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) ()
        at /usr/lib/libQt5Core.so.5
    #37 0x00007ffff557c23a in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/libQt5Core.so.5
    #38 0x00007ffff558473c in QCoreApplication::exec() () at /usr/lib/libQt5Core.so.5
    #39 0x000000000053311f in main ()
    
     

    Last edit: Alexandre 2016-11-21
  • Jan  Sundermeyer

    Jan Sundermeyer - 2016-11-21

    It crashes in QT/GTK.
    As it works anywhere else and arch is infamous here for producing strange bugs, we will not look into it.

     

    Last edit: Jan Sundermeyer 2016-11-21
  • Jan  Sundermeyer

    Jan Sundermeyer - 2016-11-21
    • status: open --> works-for-me
    • Group: -->
     

Log in to post a comment.