** Description changed:
- Some JS traces I see are:
+ [ Impact ]
+
+ gnome-shell-extensions-prefs may crash during shutdown because of wrong
+ memory access:
Jul 14 18:52:30 zerocool gjs[114030]: Attempting to run a JS callback during
garbage collection. This is most likely caused by destroying a Clutter actor or
GTK widget with ::destroy signal connected, or using the destroy(), dispose(),
or remove() vfuncs. Because it would crash the application, it has been blocked.
Jul 14 18:52:30 zerocool gjs[114030]: The offending callback was
ScaleFormatValueFunc().
Jul 14 18:52:30 zerocool org.gnome.Shell.Extensions[114030]: == Stack trace
for context 0x55d05b7f6170 ==
Jul 14 18:52:30 zerocool org.gnome.Shell.Extensions[114030]: #0 55d05b87d5b8
i resource:///org/gnome/Shell/Extensions/js/dbusService.js:186 (3d87eaadaab0 @
257)
Jul 14 18:52:30 zerocool org.gnome.Shell.Extensions[114030]: #1 55d05b87d510
i resource:///org/gnome/Shell/Extensions/js/main.js:22 (3d87eaada4c0 @ 97)
Jul 14 18:52:30 zerocool org.gnome.Shell.Extensions[114030]: #2 55d05b87d478
i resource:///org/gnome/gjs/modules/script/package.js:206 (3d87eaac82e0 @ 45)
Jul 14 18:52:30 zerocool org.gnome.Shell.Extensions[114030]: #3 55d05b87d3f0
i resource:///org/gnome/gjs/modules/script/package.js:190 (3d87eaac8290 @ 37)
Jul 14 18:52:30 zerocool org.gnome.Shell.Extensions[114030]: #4 55d05b87d360
i /usr/share/gnome-shell/org.gnome.Shell.Extensions:1 (3d87eaac80b0 @ 52)
Jul 14 18:52:30 zerocool gjs[114030]: Invalid UTF-8 string passed to
pango_layout_set_text()
Jul 14 18:52:30 zerocool org.gnome.Shell.Extensions[114030]: free(): invalid
pointer
- ---
+
+ [ Test case ]
+
+ 1. Add this script to a file (i.e. /tmp/test-gtk.js)
+
+ import Gtk from 'gi://Gtk?version=4.0';
+ const app = new Gtk.Application();
+ app.connect('activate', () => {
+ const scale = new Gtk.Scale({drawValue: true});
+ scale.set_format_value_func(() => '');
+ new Gtk.Window({application: app, child: scale}).present();
+ });
+ app.run([]);
+
+
+ 2. Run it via:
+
+ gjs -m /tmp/test-gtk.js
+
+ A new window should snow
+
+ 3. Close the window, it should exit normally with no errors.
+
+
+ [ Regression potential ]
+
+ None known, the fix
+ (https://gitlab.gnome.org/GNOME/gtk/-/commit/8b76cc841) only ensures
+ that we're using the adjustment property if really was used.
+
+
+ -------
+
+ Other triggers:
7月 17 20:47:01 xsc-Lenovo-R720-15IKBN [email protected][6819]:
unable to update icon for software-update-available
7月 17 20:47:01 xsc-Lenovo-R720-15IKBN [email protected][6819]:
unable to update icon for livepatch
7月 17 20:47:03 xsc-Lenovo-R720-15IKBN gjs[7414]: Attempting to run a JS
callback during garbage collection. This is most likely caused by destroying a
Clutter actor or GTK widget with ::destroy signal connected, or using the
destroy(), dispose(), or remove() vfuncs. Because it would crash the
application, it has been blocked.
7月 17 20:47:03 xsc-Lenovo-R720-15IKBN gjs[7414]: The offending callback was
ScaleFormatValueFunc().
7月 17 20:47:03 xsc-Lenovo-R720-15IKBN org.gnome.Shell.Extensions[7414]: ==
Stack trace for context 0x55674f538170 ==
7月 17 20:47:03 xsc-Lenovo-R720-15IKBN org.gnome.Shell.Extensions[7414]: #0
55674f5c27f8 i resource:///org/gnome/Shell/Extensions/js/dbusService.js:186
(330fd64daab0 @ 257)
7月 17 20:47:03 xsc-Lenovo-R720-15IKBN org.gnome.Shell.Extensions[7414]: #1
55674f5c2750 i resource:///org/gnome/Shell/Extensions/js/main.js:22
(330fd64da4c0 @ 97)
7月 17 20:47:03 xsc-Lenovo-R720-15IKBN org.gnome.Shell.Extensions[7414]: #2
55674f5c26b8 i resource:///org/gnome/gjs/modules/script/package.js:206
(330fd64c82e0 @ 45)
7月 17 20:47:03 xsc-Lenovo-R720-15IKBN org.gnome.Shell.Extensions[7414]: #3
55674f5c2630 i resource:///org/gnome/gjs/modules/script/package.js:190
(330fd64c8290 @ 37)
7月 17 20:47:03 xsc-Lenovo-R720-15IKBN org.gnome.Shell.Extensions[7414]: #4
55674f5c25a0 i /usr/share/gnome-shell/org.gnome.Shell.Extensions:1
(330fd64c80b0 @ 52)
7月 17 20:47:03 xsc-Lenovo-R720-15IKBN gjs[7414]: Invalid UTF-8 string passed
to pango_layout_set_text()
- 7月 17 20:47:03 xsc-Lenovo-R720-15IKBN org.gnome.Shell.Extensions[7414]:
free(): invalid pointer
+ 7月 17 20:47:03 xsc-Lenovo-R720-15IKBN org.gnome.Shell.Extensions[7414]:
free(): invalid pointer
---
The Ubuntu Error Tracker has been receiving reports about a problem regarding
gjs. This problem was most recently seen with package version 1.74.0-1, the
problem page at
https://errors.ubuntu.com/problem/2c4ff471793184d6a5b3a47cee9dcbe517920a3a
contains more details, including versions of packages affected, stacktrace or
traceback, and individual crash reports.
If you do not have access to the Ubuntu Error Tracker and are a software
developer, you can request it at http://forms.canonical.com/reports/.
--
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to gtk4 in Ubuntu.
https://bugs.launchpad.net/bugs/2027986
Title:
gjs-console running Extensions Manager crashes with free(): invalid
pointer
Status in gjs package in Ubuntu:
Won't Fix
Status in gtk4 package in Ubuntu:
Fix Released
Status in gtk4 source package in Jammy:
In Progress
Bug description:
[ Impact ]
gnome-shell-extensions-prefs may crash during shutdown because of
wrong memory access:
Jul 14 18:52:30 zerocool gjs[114030]: Attempting to run a JS callback during
garbage collection. This is most likely caused by destroying a Clutter actor or
GTK widget with ::destroy signal connected, or using the destroy(), dispose(),
or remove() vfuncs. Because it would crash the application, it has been blocked.
Jul 14 18:52:30 zerocool gjs[114030]: The offending callback was
ScaleFormatValueFunc().
Jul 14 18:52:30 zerocool org.gnome.Shell.Extensions[114030]: == Stack trace
for context 0x55d05b7f6170 ==
Jul 14 18:52:30 zerocool org.gnome.Shell.Extensions[114030]: #0 55d05b87d5b8
i resource:///org/gnome/Shell/Extensions/js/dbusService.js:186 (3d87eaadaab0 @
257)
Jul 14 18:52:30 zerocool org.gnome.Shell.Extensions[114030]: #1 55d05b87d510
i resource:///org/gnome/Shell/Extensions/js/main.js:22 (3d87eaada4c0 @ 97)
Jul 14 18:52:30 zerocool org.gnome.Shell.Extensions[114030]: #2 55d05b87d478
i resource:///org/gnome/gjs/modules/script/package.js:206 (3d87eaac82e0 @ 45)
Jul 14 18:52:30 zerocool org.gnome.Shell.Extensions[114030]: #3 55d05b87d3f0
i resource:///org/gnome/gjs/modules/script/package.js:190 (3d87eaac8290 @ 37)
Jul 14 18:52:30 zerocool org.gnome.Shell.Extensions[114030]: #4 55d05b87d360
i /usr/share/gnome-shell/org.gnome.Shell.Extensions:1 (3d87eaac80b0 @ 52)
Jul 14 18:52:30 zerocool gjs[114030]: Invalid UTF-8 string passed to
pango_layout_set_text()
Jul 14 18:52:30 zerocool org.gnome.Shell.Extensions[114030]: free(): invalid
pointer
[ Test case ]
1. Add this script to a file (i.e. /tmp/test-gtk.js)
import Gtk from 'gi://Gtk?version=4.0';
const app = new Gtk.Application();
app.connect('activate', () => {
const scale = new Gtk.Scale({drawValue: true});
scale.set_format_value_func(() => '');
new Gtk.Window({application: app, child: scale}).present();
});
app.run([]);
2. Run it via:
gjs -m /tmp/test-gtk.js
A new window should snow
3. Close the window, it should exit normally with no errors.
[ Regression potential ]
None known, the fix
(https://gitlab.gnome.org/GNOME/gtk/-/commit/8b76cc841) only ensures
that we're using the adjustment property if really was used.
-------
Other triggers:
7月 17 20:47:01 xsc-Lenovo-R720-15IKBN [email protected][6819]:
unable to update icon for software-update-available
7月 17 20:47:01 xsc-Lenovo-R720-15IKBN [email protected][6819]:
unable to update icon for livepatch
7月 17 20:47:03 xsc-Lenovo-R720-15IKBN gjs[7414]: Attempting to run a JS
callback during garbage collection. This is most likely caused by destroying a
Clutter actor or GTK widget with ::destroy signal connected, or using the
destroy(), dispose(), or remove() vfuncs. Because it would crash the
application, it has been blocked.
7月 17 20:47:03 xsc-Lenovo-R720-15IKBN gjs[7414]: The offending callback was
ScaleFormatValueFunc().
7月 17 20:47:03 xsc-Lenovo-R720-15IKBN org.gnome.Shell.Extensions[7414]: ==
Stack trace for context 0x55674f538170 ==
7月 17 20:47:03 xsc-Lenovo-R720-15IKBN org.gnome.Shell.Extensions[7414]: #0
55674f5c27f8 i resource:///org/gnome/Shell/Extensions/js/dbusService.js:186
(330fd64daab0 @ 257)
7月 17 20:47:03 xsc-Lenovo-R720-15IKBN org.gnome.Shell.Extensions[7414]: #1
55674f5c2750 i resource:///org/gnome/Shell/Extensions/js/main.js:22
(330fd64da4c0 @ 97)
7月 17 20:47:03 xsc-Lenovo-R720-15IKBN org.gnome.Shell.Extensions[7414]: #2
55674f5c26b8 i resource:///org/gnome/gjs/modules/script/package.js:206
(330fd64c82e0 @ 45)
7月 17 20:47:03 xsc-Lenovo-R720-15IKBN org.gnome.Shell.Extensions[7414]: #3
55674f5c2630 i resource:///org/gnome/gjs/modules/script/package.js:190
(330fd64c8290 @ 37)
7月 17 20:47:03 xsc-Lenovo-R720-15IKBN org.gnome.Shell.Extensions[7414]: #4
55674f5c25a0 i /usr/share/gnome-shell/org.gnome.Shell.Extensions:1
(330fd64c80b0 @ 52)
7月 17 20:47:03 xsc-Lenovo-R720-15IKBN gjs[7414]: Invalid UTF-8 string passed
to pango_layout_set_text()
7月 17 20:47:03 xsc-Lenovo-R720-15IKBN org.gnome.Shell.Extensions[7414]:
free(): invalid pointer
---
The Ubuntu Error Tracker has been receiving reports about a problem regarding
gjs. This problem was most recently seen with package version 1.74.0-1, the
problem page at
https://errors.ubuntu.com/problem/2c4ff471793184d6a5b3a47cee9dcbe517920a3a
contains more details, including versions of packages affected, stacktrace or
traceback, and individual crash reports.
If you do not have access to the Ubuntu Error Tracker and are a software
developer, you can request it at http://forms.canonical.com/reports/.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gjs/+bug/2027986/+subscriptions
--
Mailing list: https://launchpad.net/~desktop-packages
Post to : [email protected]
Unsubscribe : https://launchpad.net/~desktop-packages
More help : https://help.launchpad.net/ListHelp