rednotebook segfault in Wayland (Ubuntu 22.04)

Bug #1970618 reported by pabpou
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
rednotebook (Ubuntu)
New
Undecided
Unassigned

Bug Description

I am running a fresh install of Ubuntu 22.04 in a Dell XPS 15 9560 (hybrid NVIDIA/Intel graphics, defaulting to Intel). rednotebook works without issues in X11, but in Wayland it segfaults with the following output:

$ rednotebook
Adding /usr/share/rednotebook to sys.path
2022-04-27 15:27:26,157 INFO Writing log to file "/home/kingfisher/.rednotebook/rednotebook.log"
2022-04-27 15:27:26,158 INFO System encoding: utf-8
2022-04-27 15:27:26,158 INFO Language code: en_US
2022-04-27 15:27:26,259 INFO Running in portable mode: False
2022-04-27 15:27:26,259 INFO First Start: True
2022-04-27 15:27:26,259 INFO RedNotebook version: 2.24
2022-04-27 15:27:26,260 INFO System info: machine: x86_64, platform: Linux-5.15.0-27-generic-x86_64-with-glibc2.35, processor: x86_64, python_version: 3.10.4, release: 5.15.0-27-generic, system: Linux, GTK: (3, 24, 33), Glib: (2, 71, 3), PyGObject: (3, 42, 0), YAML: 5.4.1

(rednotebook:16999): Gtk-WARNING **: 15:27:26.360: Content added to the action area of a dialog using header bars

(rednotebook:16999): Gtk-WARNING **: 15:27:26.360: Content added to the action area of a dialog using header bars

(rednotebook:16999): Gtk-WARNING **: 15:27:26.390: Content added to the action area of a dialog using header bars

(rednotebook:16999): Gtk-WARNING **: 15:27:26.390: Content added to the action area of a dialog using header bars

(rednotebook:16999): Gtk-WARNING **: 15:27:26.417: Content added to the action area of a dialog using header bars

(rednotebook:16999): Gtk-WARNING **: 15:27:26.417: Content added to the action area of a dialog using header bars

(rednotebook:16999): Gtk-WARNING **: 15:27:26.461: Content added to the action area of a dialog using header bars

(rednotebook:16999): Gtk-WARNING **: 15:27:26.461: Content added to the action area of a dialog using header bars
2022-04-27 15:27:26,473 DEBUG Default font: Ubuntu 11
2022-04-27 15:27:26,473 DEBUG Default size: 11.0
2022-04-27 15:27:26,578 INFO Cloud ignore list: ['filter', 'these', 'comma', 'separated', 'words', 'and', '#tags']
2022-04-27 15:27:26,578 INFO Cloud include list: ['mtv', 'spam', 'work', 'job', 'play']
2022-04-27 15:27:26,578 DEBUG Start compiling regexes
2022-04-27 15:27:26,579 DEBUG Finished
2022-04-27 15:27:26,586 DEBUG Tray icon visible: False

(rednotebook:16999): Gtk-CRITICAL **: 15:27:26.586: gtk_widget_get_scale_factor: assertion 'GTK_IS_WIDGET (widget)' failed
2022-04-27 15:27:26,587 INFO Opening journal at '/home/kingfisher/.rednotebook/data'
2022-04-27 15:27:26,587 DEBUG Starting to load files in dir "/home/kingfisher/.rednotebook/data"
2022-04-27 15:27:26,587 DEBUG Finished loading files in dir "/home/kingfisher/.rednotebook/data"
2022-04-27 15:27:26,603 INFO Adding example content on 2022-04-27
2022-04-27 15:27:26,604 INFO Connected Signals: [<Signals.SIGHUP: 1>, <Signals.SIGINT: 2>, <Signals.SIGQUIT: 3>, <Signals.SIGABRT: 6>, <Signals.SIGTERM: 15>, <Signals.SIGTSTP: 20>]
2022-04-27 15:27:26,604 DEBUG Start took 0.34485340118408203 seconds
2022-04-27 15:27:26,604 DEBUG Trying to enter the gtk main loop
2022-04-27 15:27:26,669 DEBUG Update the cloud
2022-04-27 15:27:26,670 DEBUG Background color: rgb(39,39,39)
2022-04-27 15:27:26,670 DEBUG Foreground color: rgb(255,255,255)
2022-04-27 15:27:26,672 DEBUG Cloud updated
2022-04-27 15:27:26,673 INFO Last backup was made 0 days ago
Segmentation fault (core dumped)

ProblemType: Bug
DistroRelease: Ubuntu 22.04
Package: rednotebook 2.24+ds-1
ProcVersionSignature: Ubuntu 5.15.0-27.28-generic 5.15.30
Uname: Linux 5.15.0-27-generic x86_64
NonfreeKernelModules: nvidia_modeset nvidia
ApportVersion: 2.20.11-0ubuntu82
Architecture: amd64
CasperMD5CheckResult: pass
CurrentDesktop: ubuntu:GNOME
Date: Wed Apr 27 15:23:22 2022
InstallationDate: Installed on 2022-04-27 (0 days ago)
InstallationMedia: Ubuntu 22.04 LTS "Jammy Jellyfish" - Release amd64 (20220419)
PackageArchitecture: all
SourcePackage: rednotebook
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
pabpou (pabpou) wrote :
Revision history for this message
Jendrik Seipp (jendrikseipp) wrote :

Thanks for the report! Do you know how to obtain a stacktrace from the core dump?

Revision history for this message
pabpou (pabpou) wrote :

I'm not sure how to do that, but I'll be happy to try if you can provide some directions :) There's a .crash file related with the application in /var/crash since the last segfault, I'm attaching it here in case it's useful.

Revision history for this message
Jendrik Seipp (jendrikseipp) wrote :

Thanks! This is likely a bug in GTK or Wayland. Google finds many of these for the query "gtk crash wayland", e.g., https://github.com/transmission/transmission/issues/2572. So you could report the problem at their trackers, if you like.

Revision history for this message
pabpou (pabpou) wrote :

Thanks. Do you think this could also be related with https://bugs.launchpad.net/ubuntu/+source/celluloid/+bug/1970620? (that one is not a segfault, but a similar Wayland crash of an app that works correctly in X11)

Revision history for this message
Jendrik Seipp (jendrikseipp) wrote :

Hard to say...

Revision history for this message
Phil Wyett (kathenas) wrote :

As of this morning on 22.04, I am unable to reproduce the issue. Do you still suffer from the issue?

Revision history for this message
rwe061 (rwe061) wrote :

I have this same type issue on ubuntu 23.04 with wayland desktop, but the XORG desktop works fine.

Any idea how to track down the problem ?

rich@x:~$ rednotebook
INFO Using GtkSourceView 4
Adding /usr/share/rednotebook to sys.path
INFO Available versions of the WebKit2 namespace: ['4.0', '4.1']

(rednotebook:7802): Gtk-WARNING **: 07:57:16.900: Theme parsing error: gtk.css:1649:16: '-gtk-icon-size' is not a valid property name

(rednotebook:7802): Gtk-WARNING **: 07:57:16.900: Theme parsing error: gtk.css:1652:16: '-gtk-icon-size' is not a valid property name
INFO Loaded version of the WebKit2 namespace: 4.1
INFO Locale path: /usr/share/locale
2023-09-12 07:57:16,947 INFO Writing log to file "/home/rich/.rednotebook/rednotebook.log"
2023-09-12 07:57:16,947 INFO System encoding: utf-8
2023-09-12 07:57:16,947 INFO Language code: en_US
2023-09-12 07:57:16,970 INFO Spell checking languages: ['en', 'en_AU', 'en_CA', 'en_GB', 'en_US']
2023-09-12 07:57:16,970 INFO Spell checking dictionaries: [('en', <Enchant: Aspell Provider>), ('en_AU', <Enchant: Aspell Provider>), ('en_CA', <Enchant: Aspell Provider>), ('en_GB', <Enchant: Aspell Provider>), ('en_US', <Enchant: Aspell Provider>)]
2023-09-12 07:57:17,042 INFO Using LibYAML
2023-09-12 07:57:17,043 INFO Connected Signals: [<Signals.SIGHUP: 1>, <Signals.SIGINT: 2>, <Signals.SIGQUIT: 3>, <Signals.SIGABRT: 6>, <Signals.SIGTERM: 15>, <Signals.SIGTSTP: 20>]
2023-09-12 07:57:17,045 INFO Running in portable mode: False
2023-09-12 07:57:17,045 INFO First Start: False
2023-09-12 07:57:17,045 INFO RedNotebook version: 2.31
2023-09-12 07:57:17,046 INFO System info: machine: x86_64, platform: Linux-6.2.0-32-generic-x86_64-with-glibc2.37, processor: x86_64, python_version: 3.11.4, release: 6.2.0-32-generic, system: Linux, GTK: (3, 24, 37), Glib: (2, 76, 0), PyGObject: (3, 44, 1), YAML: 6.0, WebKit2: (2, 40, 5)
2023-09-12 07:57:17,239 DEBUG Default font: Noto Sans 10
2023-09-12 07:57:17,239 DEBUG Default size: 10.0
Segmentation fault (core dumped)

Revision history for this message
Phil Wyett (kathenas) wrote :

Hi,

By use of the command 'rednotebook' at the command prompt, everyone is using the upstream PPA to run the latest version and are not using the distro supplied version. Is there any particular reason for this?

Support of packages in this PPA are the responsibility of the creator i.e. upstream and all bug reports should be made to the upstream project linked to below.

https://github.com/jendrikseipp/rednotebook/issues

However...

I have tested the 2.31 upstream tarballs and from the PPA and cannot reproduce the issue on:

* Kubuntu 23.04 running wayland.
* Ubuntu 23.04 running wayland.

The easiest next step is to run in python dev mode and see if anything jumps out.

For those using upstream tarball, run:

    python3 -X dev rednotebook/journal.py

For those running the PPA package:

    python3 -X dev /usr/share/rednotebook/run.py

If the complete out can be posted here, it may help in the first instance.

Regards

Phil

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.