texstudio-org / texstudio

TeXstudio is a fully featured LaTeX editor. Our goal is to make writing LaTeX documents as easy and comfortable as possible.
http://www.texstudio.org/
GNU General Public License v3.0
2.76k stars 343 forks source link

Crashing after upgrade to LinuxMint 22 #3802

Open wujastyk opened 1 day ago

wujastyk commented 1 day ago

Environment

I have fallen back to using the Appimage, which works fine.

Expected behavior

normal startup

Actual behavior

$ texstudio

(texstudio:57550): GLib-GObject-CRITICAL **: 19:28:10.892: cannot register existing type 'GdkDisplayManager'

(texstudio:57550): GLib-CRITICAL **: 19:28:10.892: g_once_init_leave_pointer: assertion 'result != 0' failed

(texstudio:57550): GLib-GObject-CRITICAL **: 19:28:10.892: g_object_new_with_properties: assertion 'G_TYPE_IS_OBJECT (object_type)' failed

(texstudio:57550): GLib-GObject-CRITICAL **: 19:28:10.892: invalid (NULL) pointer instance

(texstudio:57550): GLib-GObject-CRITICAL **: 19:28:10.892: g_signal_connect_data: assertion 'G_TYPE_CHECK_INSTANCE (instance)' failed

(texstudio:57550): GLib-GObject-CRITICAL **: 19:28:10.892: invalid (NULL) pointer instance

(texstudio:57550): GLib-GObject-CRITICAL **: 19:28:10.892: g_signal_connect_data: assertion 'G_TYPE_CHECK_INSTANCE (instance)' failed

(texstudio:57550): GLib-GObject-CRITICAL **: 19:28:10.894: cannot register existing type 'GdkDisplay'

(texstudio:57550): GLib-CRITICAL **: 19:28:10.894: g_once_init_leave_pointer: assertion 'result != 0' failed

(texstudio:57550): GLib-GObject-CRITICAL **: 19:28:10.894: g_type_register_static: assertion 'parent_type > 0' failed

(texstudio:57550): GLib-CRITICAL **: 19:28:10.894: g_once_init_leave_pointer: assertion 'result != 0' failed

(texstudio:57550): GLib-GObject-CRITICAL **: 19:28:10.894: g_object_new_with_properties: assertion 'G_TYPE_IS_OBJECT (object_type)' failed
Segmentation fault (core dumped)

How to reproduce

run /usr/bin/texstudio

sunderme commented 1 day ago

no sure where you got the deb from, but ubuntu 24.04 (base for linux mint 22) uses qt 5.15.12. Please just install the proper package or use the ubuntu ppa (https://code.launchpad.net/~sunderme/+archive/ubuntu/texstudio)

wujastyk commented 21 hours ago

no sure where you got the deb from, but ubuntu 24.04 (base for linux mint 22) uses qt 5.15.12. Please just install the proper package or use the ubuntu ppa (https://code.launchpad.net/~sunderme/+archive/ubuntu/texstudio)

The deb is from the LPP that you maintain. It is the "proper" package.

image

I have tried both the deb from your Launchpad site and from the Mint package manager. Here are the versions:

~$ texstudio --version
TeXstudio 4.8.3 (0.0.0++)
:~$ texstudio --version
TeXstudio 4.7.2 (4.7.2+ds-2build3)

Both exhibit the same core dump on launch.

My system has QT 5.15.13 installed.

PYQT_VERSION = 331530
PYQT_VERSION_STR = 5.15.10
QOpenGLVersionProfile = <class 'PyQt5.QtGui.QOpenGLVersionProfile'>
QOperatingSystemVersion = <class 'PyQt5.QtCore.QOperatingSystemVersion'>
QT_VERSION = 331533
QT_VERSION_STR = 5.15.13
QVersionNumber = <class 'PyQt5.QtCore.QVersionNumber'>

That's why I have written this issue. It's not obvious to me what's wrong on my system.

I am using TeXlive as a direct "network" installation, not the one in the Mint library. So I have to build an equivs package so that texstudio's dependencies don't pull down a whole second texlive installation. That may be where the problem is.

sunderme commented 20 hours ago

I can only state that texstudio from ppa works fine on ubuntu 24.04. I can't/won't debug remote systems.

wujastyk commented 19 hours ago

Well, it obviously doesn't. But I understand that there's only so much you can do. I was hoping the core-dump messages would signal more to you than they do to me.

I've been trying all sorts of checks with QT and Python versions and libraries and conf files. No luck yet.

I have another Mint 22 installation on a laptop where the same texstudio deb works just fine. The problem on my desktop machine arose immediately after the 22 upgrade that I did yesterday. That's another variable that's changed recently.

sunderme commented 17 hours ago

Only suggestion is to remove .config/texstudio to start clean.

wujastyk commented 11 hours ago

Thanks, I tried that but it didn't cure the core dump. I'll nail it eventually, and I'll report back here.