Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
texstudio segfaults after recent update
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
ExecutorElassus
Veteran
Veteran


Joined: 11 Mar 2004
Posts: 1464
Location: Berlin, Germany

PostPosted: Wed Dec 11, 2024 8:34 am    Post subject: texstudio segfaults after recent update Reply with quote

This is all I see in dmesg (I tried starting texstudio several times):
Code:
[12943.074324] texstudio[4241]: segfault at 0 ip 0000559c7c74ffcb sp 00007ffff20013d8 error 4 in texstudio[4c0fcb,559c7c426000+677000] likely on CPU 3 (core 3, socket 0)
[12943.074338] Code: 1d ce ff f3 0f 1e fa 48 89 c3 c5 f8 77 e9 50 2a d2 ff f3 0f 1e fa 48 89 c3 e9 39 2a d2 ff 90 f3 0f 1e fa 48 8b 47 10 48 8b 38 <48> 8b 07 ff 60 28 90 66 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 00 f3
[13001.358420] texstudio[4451]: segfault at 0 ip 000055c890488fcb sp 00007ffed6f0f558 error 4 in texstudio[4c0fcb,55c89015f000+677000] likely on CPU 10 (core 2, socket 0)
[13001.358435] Code: 1d ce ff f3 0f 1e fa 48 89 c3 c5 f8 77 e9 50 2a d2 ff f3 0f 1e fa 48 89 c3 e9 39 2a d2 ff 90 f3 0f 1e fa 48 8b 47 10 48 8b 38 <48> 8b 07 ff 60 28 90 66 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 00 f3
[13396.828491] texstudio[7774]: segfault at 0 ip 0000564b1cdc189b sp 00007ffd00f68bf8 error 4 in texstudio[4c689b,564b1ca92000+684000] likely on CPU 11 (core 3, socket 0)
[13396.828506] Code: b7 cd ff f3 0f 1e fa 48 89 c3 c5 f8 77 e9 da d5 d1 ff f3 0f 1e fa 48 89 c3 e9 c3 d5 d1 ff 90 f3 0f 1e fa 48 8b 47 10 48 8b 38 <48> 8b 07 ff 60 28 90 66 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 00 f3


The only thing I could imagine that might cause that is that I recently force-uninstalled virtual/rust, because it's deprecated and rust{-bin} is moving to slotted packages. But since texstudio doesn't depend on rust I really have no idea what the issue might be.

Any ideas what might be going wrong here?

Cheers,

EE
Back to top
View user's profile Send private message
Hu
Administrator
Administrator


Joined: 06 Mar 2007
Posts: 22810

PostPosted: Wed Dec 11, 2024 11:52 am    Post subject: Reply with quote

Segmentation faults are always either a hardware fault or a software bug. What did you update since it was last working? What backtrace do you get when it crashes?

Although removing a virtual should not matter here, I will reiterate the oft-posted advice that you should use emerge --depclean, not emerge --unmerge, to remove packages. Forced-unmerge relies on the administrator not making a bad decision about what to remove. A poor choice can easily break the system.
Back to top
View user's profile Send private message
ExecutorElassus
Veteran
Veteran


Joined: 11 Mar 2004
Posts: 1464
Location: Berlin, Germany

PostPosted: Wed Dec 11, 2024 12:55 pm    Post subject: Reply with quote

genlop says:
Code:
# genlop -l --date 2024-12-08
 * packages merged:

     Tue Dec 10 08:47:04 2024 >>> sys-kernel/gentoo-sources-6.12.4
     Tue Dec 10 09:21:28 2024 >>> sys-kernel/linux-headers-6.12
     Tue Dec 10 09:31:04 2024 >>> sys-libs/glibc-2.40-r7
     Tue Dec 10 09:31:21 2024 >>> sys-devel/llvm-common-19.1.5
     Tue Dec 10 09:31:33 2024 >>> sys-apps/hwdata-0.390
     Tue Dec 10 09:32:01 2024 >>> app-arch/unrar-7.1.2
     Tue Dec 10 09:32:17 2024 >>> sys-devel/gcc-config-2.12.1
     Tue Dec 10 09:37:32 2024 >>> dev-libs/libunistring-1.3
     Tue Dec 10 09:38:04 2024 >>> net-libs/libtirpc-1.3.6
     Tue Dec 10 09:38:19 2024 >>> sys-devel/clang-common-19.1.5
     Tue Dec 10 09:41:44 2024 >>> dev-lang/perl-5.40.0-r1
     Tue Dec 10 09:41:56 2024 >>> dev-libs/gobject-introspection-common-1.82.0
     Tue Dec 10 09:46:13 2024 >>> dev-lang/rust-bin-1.83.0
     Tue Dec 10 09:46:23 2024 >>> app-portage/getuto-1.14
     Tue Dec 10 09:47:57 2024 >>> dev-libs/libgcrypt-1.11.0-r2
     Tue Dec 10 09:51:25 2024 >>> dev-db/sqlite-3.47.1
     Tue Dec 10 09:52:01 2024 >>> net-firewall/iptables-1.8.11-r1
     Tue Dec 10 09:53:00 2024 >>> sys-process/procps-4.0.4-r2
     Tue Dec 10 09:53:26 2024 >>> dev-libs/gumbo-0.12.2
     Tue Dec 10 09:59:11 2024 >>> sys-devel/gettext-0.23
     Tue Dec 10 10:01:46 2024 >>> dev-lang/python-3.11.11_p1
     Tue Dec 10 10:03:07 2024 >>> dev-build/meson-1.6.0-r1
     Tue Dec 10 10:05:06 2024 >>> sys-apps/systemd-utils-256.9-r1
     Tue Dec 10 10:05:34 2024 >>> x11-libs/pixman-0.44.2
     Tue Dec 10 10:05:50 2024 >>> dev-python/six-1.17.0
     Tue Dec 10 10:06:27 2024 >>> dev-python/pyqt5-sip-12.16.0
     Tue Dec 10 10:06:44 2024 >>> dev-python/fastjsonschema-2.21.1
     Tue Dec 10 10:07:56 2024 >>> dev-python/apsw-3.47.1.0
     Tue Dec 10 10:08:21 2024 >>> dev-python/pyqt6-sip-13.9.0
     Tue Dec 10 10:08:34 2024 >>> dev-python/jaconv-0.4.0
     Tue Dec 10 10:08:53 2024 >>> dev-python/wrapt-1.17.0
     Tue Dec 10 10:09:12 2024 >>> dev-python/mako-1.3.8
     Tue Dec 10 10:11:51 2024 >>> dev-lang/python-3.13.1-r100
     Tue Dec 10 10:12:15 2024 >>> x11-libs/libdrm-2.4.124
     Tue Dec 10 10:12:47 2024 >>> dev-python/sip-6.9.0
     Tue Dec 10 10:13:02 2024 >>> dev-python/deprecated-1.2.15
     Tue Dec 10 10:13:49 2024 >>> app-portage/eix-0.36.9
     Tue Dec 10 10:14:44 2024 >>> net-vpn/openvpn-2.6.12
     Tue Dec 10 10:15:39 2024 >>> sys-apps/file-5.46
     Tue Dec 10 10:15:56 2024 >>> sys-apps/iproute2-6.12.0
     Tue Dec 10 10:16:20 2024 >>> dev-python/hatchling-1.26.3-r1
     Tue Dec 10 10:16:38 2024 >>> dev-python/pyqt-builder-1.17.0
     Tue Dec 10 10:18:23 2024 >>> app-text/dvipsk-2024.03.11_p70015
     Tue Dec 10 10:18:40 2024 >>> dev-python/pykakasi-2.3.0
     Tue Dec 10 10:20:57 2024 >>> dev-python/fonttools-4.55.2
     Tue Dec 10 10:22:07 2024 >>> app-text/ttf2pk2-2.0_p20240311
     Tue Dec 10 10:23:27 2024 >>> app-text/libetonyek-0.1.12
     Tue Dec 10 10:30:10 2024 >>> dev-python/numpy-2.2.0
     Tue Dec 10 10:32:18 2024 >>> net-misc/yt-dlp-2024.12.06
     Tue Dec 10 10:35:48 2024 >>> dev-build/cmake-3.31.2
     Tue Dec 10 10:36:50 2024 >>> sys-libs/libomp-19.1.5
     Tue Dec 10 10:37:30 2024 >>> dev-cpp/cpp-httplib-0.18.3
     Tue Dec 10 10:37:54 2024 >>> dev-libs/simdjson-3.11.0
     Tue Dec 10 10:38:05 2024 >>> app-eselect/eselect-repository-14-r1
     Tue Dec 10 11:06:11 2024 >>> net-libs/nodejs-22.10.0
     Tue Dec 10 11:08:14 2024 >>> dev-util/spirv-llvm-translator-18.1.7
     Tue Dec 10 11:51:21 2024 >>> sys-devel/llvm-19.1.5
     Tue Dec 10 11:53:16 2024 >>> dev-util/spirv-llvm-translator-19.1.2
     Tue Dec 10 12:28:05 2024 >>> sys-devel/clang-19.1.5
     Tue Dec 10 12:28:52 2024 >>> sys-libs/compiler-rt-19.1.5
     Tue Dec 10 12:30:27 2024 >>> sys-libs/compiler-rt-sanitizers-19.1.5
     Tue Dec 10 12:30:36 2024 >>> sys-devel/clang-runtime-19.1.5
     Tue Dec 10 12:31:58 2024 >>> dev-libs/libclc-19.1.5
     Tue Dec 10 12:36:26 2024 >>> media-libs/mesa-24.2.8
     Tue Dec 10 12:37:06 2024 >>> media-libs/libcdr-0.1.8
     Tue Dec 10 12:37:21 2024 >>> dev-util/glib-utils-2.82.2
     Tue Dec 10 12:37:37 2024 >>> dev-util/gdbus-codegen-2.82.2
     Tue Dec 10 12:40:45 2024 >>> dev-libs/glib-2.82.2
     Tue Dec 10 12:43:53 2024 >>> app-admin/syslog-ng-4.8.1-r1
     Tue Dec 10 12:44:08 2024 >>> dev-build/xfce4-dev-tools-4.19.4
     Tue Dec 10 12:44:48 2024 >>> dev-libs/gobject-introspection-1.82.0-r1
     Tue Dec 10 12:45:15 2024 >>> x11-misc/picom-12.5
     Tue Dec 10 12:45:51 2024 >>> x11-terms/xterm-396
     Tue Dec 10 12:46:27 2024 >>> dev-python/pygobject-3.50.0
     Tue Dec 10 12:46:54 2024 >>> dev-libs/json-glib-1.10.0
     Tue Dec 10 12:47:25 2024 >>> app-crypt/libsecret-0.21.4-r2
     Tue Dec 10 12:48:05 2024 >>> x11-wm/fvwm3-1.1.1-r1
     Tue Dec 10 12:49:02 2024 >>> app-admin/conky-1.21.9
     Tue Dec 10 12:51:44 2024 >>> app-misc/openrgb-0.9
     Tue Dec 10 13:00:27 2024 >>> dev-qt/qtbase-6.8.1
     Tue Dec 10 13:01:53 2024 >>> dev-qt/qttools-6.8.1
     Tue Dec 10 13:02:25 2024 >>> dev-qt/qttranslations-6.8.1
     Tue Dec 10 13:03:07 2024 >>> dev-qt/qtsvg-6.8.1
     Tue Dec 10 13:04:05 2024 >>> dev-qt/qtshadertools-6.8.1
     Tue Dec 10 13:04:26 2024 >>> dev-qt/qtimageformats-6.8.1
     Tue Dec 10 13:11:32 2024 >>> www-client/brave-bin-1.73.99
     Tue Dec 10 13:13:50 2024 >>> app-crypt/gpgme-1.24.1
     Tue Dec 10 13:14:28 2024 >>> dev-qt/qt5compat-6.8.1
     Tue Dec 10 13:24:47 2024 >>> dev-qt/qtdeclarative-6.8.1
     Tue Dec 10 13:25:17 2024 >>> gui-apps/qt6ct-0.9
     Tue Dec 10 13:25:47 2024 >>> dev-qt/qtwebchannel-6.8.1
     Tue Dec 10 13:26:23 2024 >>> dev-qt/qtquicktimeline-6.8.1
     Tue Dec 10 13:27:14 2024 >>> dev-qt/qtpositioning-6.8.1
     Tue Dec 10 13:37:58 2024 >>> dev-python/pyqt6-6.8.0_pre2411221125
     Tue Dec 10 13:40:56 2024 >>> dev-qt/qtquick3d-6.8.1
     Tue Dec 10 15:56:20 2024 >>> dev-qt/qtwebengine-6.8.1
     Tue Dec 10 15:57:53 2024 >>> dev-python/pyqt6-webengine-6.8.0_pre2411020930
     Tue Dec 10 15:58:50 2024 >>> media-libs/openal-1.24.1
     Tue Dec 10 16:00:27 2024 >>> dev-qt/qtmultimedia-6.8.1
     Tue Dec 10 16:03:22 2024 >>> app-text/calibre-7.22.0
     Tue Dec 10 16:04:17 2024 >>> media-plugins/audacious-plugins-4.4.2
     Wed Dec 11 09:28:35 2024 >>> app-office/texstudio-4.8.4-r2

(I only tried remerging texstudio after the segfault; it was working fine two days ago)
For reference, texstudio's depgraph is:
Code:
 * dependency graph for app-office/texstudio-4.8.4-r2
 `--  app-office/texstudio-4.8.4-r2  amd64
   `--  app-text/hunspell-1.7.2-r1  (app-text/hunspell) ~amd64
   `--  app-text/poppler-24.11.0-r1  (app-text/poppler) ~amd64  [qt6]
   `--  dev-libs/quazip-1.4-r1  (>=dev-libs/quazip-1.0) amd64  [qt6(+)]
   `--  dev-qt/qt5compat-6.8.1  (dev-qt/qt5compat) ~amd64
   `--  dev-qt/qtbase-6.8.1  (dev-qt/qtbase) ~amd64  [concurrent gui network widgets xml]
   `--  dev-qt/qtdeclarative-6.8.1  (dev-qt/qtdeclarative) ~amd64
   `--  dev-qt/qtsvg-6.8.1  (dev-qt/qtsvg) ~amd64
   `--  dev-qt/qttools-6.8.1  (dev-qt/qttools) ~amd64  [widgets]
   `--  sys-libs/zlib-1.3.1-r1  (sys-libs/zlib) amd64
   `--  x11-libs/libX11-1.8.10  (x11-libs/libX11) amd64
   `--  dev-qt/qtmultimedia-6.8.1  (dev-qt/qtmultimedia) ~amd64
   `--  app-text/ghostscript-gpl-10.04.0  (app-text/ghostscript-gpl) ~amd64
   `--  app-text/psutils-2.09  (app-text/psutils) amd64
   `--  media-libs/netpbm-11.8.2  (media-libs/netpbm) ~amd64
   `--  virtual/latex-base-1.0  (virtual/latex-base) amd64
   `--  virtual/pkgconfig-3  (virtual/pkgconfig) amd64
   `--  app-alternatives/ninja-1  (app-alternatives/ninja) amd64
   `--  dev-build/cmake-3.31.2  (>=dev-build/cmake-3.20.5) ~amd64
   `--  dev-util/desktop-file-utils-0.28  (dev-util/desktop-file-utils) ~amd64
   `--  x11-misc/shared-mime-info-2.4-r1  (x11-misc/shared-mime-info) amd64
[ app-office/texstudio-4.8.4-r2 stats: packages (21), max depth (1) ]

Maybe something to do with qt? Is there any way to trace the fault? There's no console output besides "Segmentation fault", and that output from dmesg is all I'm getting there. I do see the splash screen for texstudio for a second, before it segfaults, so maybe it's something to do with the UI loading?

As for force removing the rust virtual, it's because a number of packages still depended on it, forcing installation of both the slotted rust and the previous version, which filled /opt to 100% and prevented me from installing brave-bin. I'm remerging the affected packages now.

Cheers,

EE
Back to top
View user's profile Send private message
dmpogo
Advocate
Advocate


Joined: 02 Sep 2004
Posts: 3449
Location: Canada

PostPosted: Thu Dec 12, 2024 12:07 am    Post subject: Reply with quote

Recent update switched texstudio from Qt5 to Qt6. So you are probably guessing right that it is Qt related
Back to top
View user's profile Send private message
ExecutorElassus
Veteran
Veteran


Joined: 11 Mar 2004
Posts: 1464
Location: Berlin, Germany

PostPosted: Thu Dec 12, 2024 5:04 am    Post subject: Reply with quote

I've had it working with the Qt6 version, though. Like I said, it worked up until the `emerge world` I did on the 10th. So while it might have been Qt-related, it's not simply from switching to using Qt6.
Back to top
View user's profile Send private message
ExecutorElassus
Veteran
Veteran


Joined: 11 Mar 2004
Posts: 1464
Location: Berlin, Germany

PostPosted: Thu Dec 12, 2024 8:15 am    Post subject: Reply with quote

This is the end of the stacktrace:
Code:
poll([{fd=6, events=POLLIN|POLLOUT}], 1, -1) = 1 ([{fd=6, revents=POLLOUT}])
writev(6, [{iov_base="\2\0\4\0\10\0`\4\0@\0\0\16\0`\4", iov_len=16}], 1) = 16
statx(AT_FDCWD, "[$HOME]/.config/texstudio/macro", AT_STATX_SYNC_AS_STAT|AT_NO_AUTOMOUNT, STATX_ALL, {stx_mask=STATX_ALL|STATX_MNT_ID, stx_attributes=0, stx_mode=S_IFDIR|0755, stx_size=4096, ...}) = 0
statx(AT_FDCWD, "[$HOME]/.config/texstudio/macro/Macro_0.txsMacro", AT_STATX_SYNC_AS_STAT|AT_SYMLINK_NOFOLLOW|AT_NO_AUTOMOUNT, STATX_ALL, 0x7ffd87e0c520) = -1 ENOENT (No such file or directory)
brk(0x5587e9c19000)                     = 0x5587e9c19000
brk(0x5587e9c3a000)                     = 0x5587e9c3a000
brk(0x5587e9c5b000)                     = 0x5587e9c5b000
brk(0x5587e9c7c000)                     = 0x5587e9c7c000
brk(0x5587e9c9d000)                     = 0x5587e9c9d000
brk(0x5587e9cbe000)                     = 0x5587e9cbe000
brk(0x5587e9cdf000)                     = 0x5587e9cdf000
brk(0x5587e9d00000)                     = 0x5587e9d00000
brk(0x5587e9d21000)                     = 0x5587e9d21000
brk(0x5587e9d42000)                     = 0x5587e9d42000
brk(0x5587e9d63000)                     = 0x5587e9d63000
brk(0x5587e9d84000)                     = 0x5587e9d84000
brk(0x5587e9da5000)                     = 0x5587e9da5000
brk(0x5587e9dc6000)                     = 0x5587e9dc6000
brk(0x5587e9de7000)                     = 0x5587e9de7000
brk(0x5587e9e08000)                     = 0x5587e9e08000
brk(0x5587e9e29000)                     = 0x5587e9e29000
brk(0x5587e9e4a000)                     = 0x5587e9e4a000
brk(0x5587e9e6b000)                     = 0x5587e9e6b000
brk(0x5587e9e8c000)                     = 0x5587e9e8c000
brk(0x5587e9ead000)                     = 0x5587e9ead000
--- SIGSEGV {si_signo=SIGSEGV, si_code=SEGV_MAPERR, si_addr=NULL} ---
+++ killed by SIGSEGV +++
Segmentation fault

I'm not sure there's anything useful there, though. Should I look further up?
Back to top
View user's profile Send private message
wjb
l33t
l33t


Joined: 10 Jul 2005
Posts: 636
Location: Fife, Scotland

PostPosted: Thu Dec 12, 2024 11:25 am    Post subject: Reply with quote

Try removing (or renaming) the config and see if anything changes

i.e. ~/.config/texstudio/

(because it shows up in the stack trace and old settings may be upsetting the new thing)
Back to top
View user's profile Send private message
sam_
Developer
Developer


Joined: 14 Aug 2020
Posts: 2020

PostPosted: Thu Dec 12, 2024 12:11 pm    Post subject: Reply with quote

ExecutorElassus wrote:
This is the end of the stacktrace:
Code:
poll([{fd=6, events=POLLIN|POLLOUT}], 1, -1) = 1 ([{fd=6, revents=POLLOUT}])
writev(6, [{iov_base="\2\0\4\0\10\0`\4\0@\0\0\16\0`\4", iov_len=16}], 1) = 16
statx(AT_FDCWD, "[$HOME]/.config/texstudio/macro", AT_STATX_SYNC_AS_STAT|AT_NO_AUTOMOUNT, STATX_ALL, {stx_mask=STATX_ALL|STATX_MNT_ID, stx_attributes=0, stx_mode=S_IFDIR|0755, stx_size=4096, ...}) = 0
statx(AT_FDCWD, "[$HOME]/.config/texstudio/macro/Macro_0.txsMacro", AT_STATX_SYNC_AS_STAT|AT_SYMLINK_NOFOLLOW|AT_NO_AUTOMOUNT, STATX_ALL, 0x7ffd87e0c520) = -1 ENOENT (No such file or directory)
brk(0x5587e9c19000)                     = 0x5587e9c19000
brk(0x5587e9c3a000)                     = 0x5587e9c3a000
brk(0x5587e9c5b000)                     = 0x5587e9c5b000
brk(0x5587e9c7c000)                     = 0x5587e9c7c000
brk(0x5587e9c9d000)                     = 0x5587e9c9d000
brk(0x5587e9cbe000)                     = 0x5587e9cbe000
brk(0x5587e9cdf000)                     = 0x5587e9cdf000
brk(0x5587e9d00000)                     = 0x5587e9d00000
brk(0x5587e9d21000)                     = 0x5587e9d21000
brk(0x5587e9d42000)                     = 0x5587e9d42000
brk(0x5587e9d63000)                     = 0x5587e9d63000
brk(0x5587e9d84000)                     = 0x5587e9d84000
brk(0x5587e9da5000)                     = 0x5587e9da5000
brk(0x5587e9dc6000)                     = 0x5587e9dc6000
brk(0x5587e9de7000)                     = 0x5587e9de7000
brk(0x5587e9e08000)                     = 0x5587e9e08000
brk(0x5587e9e29000)                     = 0x5587e9e29000
brk(0x5587e9e4a000)                     = 0x5587e9e4a000
brk(0x5587e9e6b000)                     = 0x5587e9e6b000
brk(0x5587e9e8c000)                     = 0x5587e9e8c000
brk(0x5587e9ead000)                     = 0x5587e9ead000
--- SIGSEGV {si_signo=SIGSEGV, si_code=SEGV_MAPERR, si_addr=NULL} ---
+++ killed by SIGSEGV +++
Segmentation fault

I'm not sure there's anything useful there, though. Should I look further up?


This is from strace which shows syscalls. We want a backtrace from e.g. gdb, see https://wiki.gentoo.org/wiki/Debugging#Per-package.
Back to top
View user's profile Send private message
ExecutorElassus
Veteran
Veteran


Joined: 11 Mar 2004
Posts: 1464
Location: Berlin, Germany

PostPosted: Thu Dec 12, 2024 1:39 pm    Post subject: Reply with quote

OK, I've built texstudio so that gdb can run it.
Code:
 $ gdb texstudio
GNU gdb (Gentoo 15.2 vanilla) 15.2
Copyright (C) 2024 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:
<https://bugs.gentoo.org/>.
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...
Reading symbols from /usr/lib/debug//usr/bin/texstudio.debug...
(gdb) break main
Breakpoint 1 at 0x23cf30: file /usr/src/debug/app-office/texstudio-4.8.4-r2/texstudio-4.8.4/src/main.cpp, line 194.
(gdb) run
Starting program: /usr/bin/texstudio
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".

Breakpoint 1, main (argc=1, argv=0x7fffffffd728)
    at /usr/src/debug/app-office/texstudio-4.8.4-r2/texstudio-4.8.4/src/main.cpp:194

Line 194 of that file is the following code:
Code:
{
        QString appId = generateAppId();
#if QT_VERSION >= QT_VERSION_CHECK(5,6,0)
    if(qEnvironmentVariableIntValue("TEXSTUDIO_HIDPI_SCALE")>0){
        QApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
    } else {
   QApplication::setAttribute(Qt::AA_DisableHighDpiScaling);
    }
#endif

Does that help at all?
Back to top
View user's profile Send private message
Hu
Administrator
Administrator


Joined: 06 Mar 2007
Posts: 22810

PostPosted: Thu Dec 12, 2024 2:03 pm    Post subject: Reply with quote

No, that does not help. run ran until a breakpoint. You set a breakpoint on main, so the program stopped before doing anything of consequence. Run it without a breakpoint. You want output like:
Code:
Program received signal SIGTRAP, Trace/breakpoint trap
Although for your error, you will probably get Program received signal SIGSEGV, Segmentation fault. That latter is my approximation of the message. Once you get that error, collect the output of bt and i r.
Back to top
View user's profile Send private message
ExecutorElassus
Veteran
Veteran


Joined: 11 Mar 2004
Posts: 1464
Location: Berlin, Germany

PostPosted: Thu Dec 12, 2024 2:30 pm    Post subject: Reply with quote

Hi Hu,

I'll post outputs below. However, I also renamed ~/.config/texstudio/ to ~/.config/texstudio.old/, and now it starts. And from there I tried replacing the newly generated texstudio.ini with the old one, and it segfaulted.

When I run gdb without a breakpoint, I get this:
Code:
Starting program: /usr/bin/texstudio
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".
[New Thread 0x7ffff37756c0 (LWP 7724)]
[New Thread 0x7ffff2f746c0 (LWP 7725)]
[New Thread 0x7ffff10276c0 (LWP 7726)]
[New Thread 0x7ffff08266c0 (LWP 7727)]
[New Thread 0x7fffe3fff6c0 (LWP 7728)]

(texstudio:7721): dbind-WARNING **: 15:24:07.290: Couldn't connect to accessibility bus: Failed to connect to socket /root/.cache/at-spi/bus_0: Permission denied
[New Thread 0x7fffe35626c0 (LWP 7729)]
[New Thread 0x7fffe2d616c0 (LWP 7730)]

Thread 1 "texstudio" received signal SIGSEGV, Segmentation fault.
0x0000555555a1a89b in ManhattanStyle::event (this=<optimized out>, e=0x7fffffffc790)
    at /usr/src/debug/app-office/texstudio-4.8.4-r2/texstudio-4.8.4/src/manhattanstyle.cpp:1056
1056      return d->style->event(e);

Line 1056 is the following:
Code:
// Mac style reimplements this to control the
// focus widget among other things
bool ManhattanStyle::event(QEvent *e)
{
        Q_ASSERT(d->style);
        return d->style->event(e);
}

running 'bt' inside gdb gives:
Code:
(gdb) bt
#0  0x0000555555a1a89b in ManhattanStyle::event (this=<optimized out>, e=0x7fffffffc790)
    at /usr/src/debug/app-office/texstudio-4.8.4-r2/texstudio-4.8.4/src/manhattanstyle.cpp:1056
#1  0x00007ffff7208b19 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () at /usr/lib64/libQt6Widgets.so.6
#2  0x00007ffff60ec038 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () at /usr/lib64/libQt6Core.so.6
#3  0x00007ffff60b00f2 in QObject::doSetProperty(char const*, QVariant const*, QVariant*) () at /usr/lib64/libQt6Core.so.6
#4  0x0000555555a1a926 in QObject::setProperty (this=0x5555576561c0, name=0x555555d78deb "manhattanstyle", value=...)
    at /usr/include/qt6/QtCore/qobject.h:415
#5  ManhattanStyle::ManhattanStyle (this=this@entry=0x5555576561c0, baseStyleName=...)
    at /usr/src/debug/app-office/texstudio-4.8.4-r2/texstudio-4.8.4/src/manhattanstyle.cpp:131
#6  0x00005555558d7278 in ConfigManager::setInterfaceStyle (this=this@entry=0x55555718c2e0)
    at /usr/src/debug/app-office/texstudio-4.8.4-r2/texstudio-4.8.4/src/configmanager.cpp:2886
#7  0x00005555558e14f7 in ConfigManager::readSettings (this=this@entry=0x55555718c2e0, reread=reread@entry=false)
    at /usr/src/debug/app-office/texstudio-4.8.4-r2/texstudio-4.8.4/src/configmanager.cpp:1244
#8  0x0000555555b348f1 in Texstudio::readSettings (this=this@entry=0x55555718bfc0, reread=reread@entry=false)
    at /usr/src/debug/app-office/texstudio-4.8.4-r2/texstudio-4.8.4/src/texstudio.cpp:4464
#9  0x0000555555b60f03 in Texstudio::Texstudio (this=this@entry=0x55555718bfc0, parent=parent@entry=0x0, flags=...,
    flags@entry=..., splash=splash@entry=0x555557037750)
    at /usr/src/debug/app-office/texstudio-4.8.4-r2/texstudio-4.8.4/src/texstudio.cpp:165
#10 0x0000555555a171bf in TexstudioApp::init (this=this@entry=0x7fffffffd590, cmdLine=...)
    at /usr/include/qt6/QtCore/qflags.h:73
#11 0x0000555555791040 in main (argc=<optimized out>, argv=<optimized out>)
    at /usr/src/debug/app-office/texstudio-4.8.4-r2/texstudio-4.8.4/src/main.cpp:227

Output of 'i r':
Code:
(gdb) i r
rax            0x55555766d700      93825026938624
rbx            0x5555576561c0      93825026843072
rcx            0x5555571cc830      93825022085168
rdx            0x0                 0
rsi            0x7fffffffc790      140737488340880
rdi            0x0                 0
rbp            0x7fffffffc790      0x7fffffffc790
rsp            0x7fffffffc6a8      0x7fffffffc6a8
r8             0x0                 0
r9             0x6                 6
r10            0x0                 0
r11            0x5555576561c0      93825026843072
r12            0x555556e744b0      93825018578096
r13            0x555556e29fb0      93825018273712
r14            0x5555571f5040      93825022251072
r15            0x7fffffffc790      140737488340880
rip            0x555555a1a89b      0x555555a1a89b <ManhattanStyle::event(QEvent*)+11>
eflags         0x10246             [ PF ZF IF RF ]
cs             0x33                51
ss             0x2b                43
ds             0x0                 0
es             0x0                 0
fs             0x0                 0
gs             0x0                 0
fs_base        0x7ffff3cb7d80      140737283587456
gs_base        0x0                 0

Hope that helps,
EE
Back to top
View user's profile Send private message
ExecutorElassus
Veteran
Veteran


Joined: 11 Mar 2004
Posts: 1464
Location: Berlin, Germany

PostPosted: Thu Dec 12, 2024 4:05 pm    Post subject: Reply with quote

arrgh, I have another question.

So, after starting texstudio with an empty config, it runs, but now it can't compile documents because it can't find 'luatexja-fontspec.sty'. This file is located at '~/path/tex-local/texlive/texmf-dist/tex/luatex/luatexja/addons/luatexja-fontspec.sty'.

How do I make it so my newly running texstudio can find this?

UPDATE: I moved the above questions to a separate thread, here, since it's something of a different topic.
UPDATE2: nevermind that post at all; I deleted it. Turns out TexStudio was *lying* about not being able to find awesome-cv.cls (it found it just fine), and I fixed my paths so it could find the fontspec.sty file. So now, I THINK (??) everything's solved?

Also, now the "Open File" dialogue is this hideous bright color scheme. How do I fix that so it follows the WM's dark color scheme?

Cheers,

EE
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum