unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#44034: 28.0.50; X-widget: assertion '!widget->priv->alloc_needed' failed
@ 2020-10-16 11:24 Maximiliano Sandoval via Bug reports for GNU Emacs, the Swiss army knife of text editors
  2020-10-16 16:13 ` Lars Ingebrigtsen
  2022-05-07 12:49 ` Lars Ingebrigtsen
  0 siblings, 2 replies; 6+ messages in thread
From: Maximiliano Sandoval via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2020-10-16 11:24 UTC (permalink / raw)
  To: 44034; +Cc: fejfighter@gmail.com

When opening a file using xwidget I get an error

```
(emacs:150587): Gtk-CRITICAL **: 12:12:04.741: gtk_widget_draw: assertion '!widget->priv->alloc_needed' failed

(emacs:150587): Gtk-CRITICAL **: 12:12:21.983: gtk_widget_draw: assertion '!widget->priv->alloc_needed' failed

(emacs:151415): GLib-GObject-WARNING **: 12:18:44.591: instance with invalid (NULL) class pointer

(emacs:151415): GLib-GObject-CRITICAL **: 12:18:44.591: g_signal_handlers_disconnect_matched: assertion 'G_TYPE_CHECK_INSTANCE (instance)' failed
```

## How to reproduce:

As in a previous bug,

- Create a file with contents:

```
<head><meta charset="UTF-8"></head>
<p><strong>From</strong>: updates@fedoraproject.org</br><strong>To</strong>: user@email.com</br><strong>Date</strong>: Mon 12 Oct 2020 10:39:34 PM CEST</br><strong>Subject</strong>: [Fedora Update] [comment] toolbox-0.0.96-1.fc33</p><pre>
The following comment has been added to the toolbox-0.0.96-1.fc33 update:

bodhi - 2020-10-12 20:39:34.343089 (karma: 0)
rishi edited this update.

To reply to this comment, please visit the URL at the bottom of this mail

================================================================================
     FEDORA-2020-12c4232ccb
================================================================================
    Release: Fedora 33
     Status: testing
       Type: bugfix
   Severity: high
      Karma: 4
    Request: stable
      Notes: * Don't break GNU Readline's ctrl-p shortcut * Enable system tests
           : on Fedora 33 * Fix containers with missing `/media`
           : possibly due to a failed RPM transaction * Give access
           : to the udev database * Unbreak X11 applications with
           : GNOME 3.38 * Update default release to 31 for non-
           : Fedora hosts
  Submitter: rishi
  Submitted: 2020-10-02 13:56:36.076520
   Comments: bodhi - 2020-10-12 20:39:34.343089 (karma 0)
             rishi edited this update.
             Fixes issues with x11, no notable regressions.
             bodhi - 2020-10-07 14:20:29.828510 (karma 0)
             This update has been submitted for stable by bodhi.
             pnemade - 2020-10-07 14:20:29.375296 (karma 1)
             I can run x11 applications now. Rest usage of toolbox
             looks fine.
             cairo - 2020-10-02 22:57:21.043782 (karma 1)
             bodhi - 2020-10-02 22:20:59.046677 (karma 0)
             This update can be pushed to stable now if the
             maintainer wishes
             bodhi - 2020-10-02 22:18:06.993838 (karma 0)
             This update has been pushed to testing.
             feborges - 2020-10-02 14:34:52.612994 (karma 1)
             After commenting out `default_sysctls = ...` from
             /usr/share/containers/containers.conf I was able to
             test and verify that this update works. I was pointed
             out to
             https://github.com/containers/podman/issues/7766  I am
             able to run x11 applications again! Ctrl + P also
             works as expected. /media is present, same for udev
             database.
             bodhi - 2020-10-02 14:24:41.395885 (karma 0)
             This update's test gating status has been changed to
             'ignored'.
             bodhi - 2020-10-02 13:56:36.568529 (karma 0)
             This update's test gating status has been changed to
             'waiting'.
             bodhi - 2020-10-02 13:56:36.499889 (karma 0)
             This update's test gating status has been changed to
             'ignored'.
             bodhi - 2020-10-02 13:56:36.193084 (karma 0)
             This update has been submitted for testing by rishi.

  https://bodhi.fedoraproject.org/updates/FEDORA-2020-12c4232ccb

</pre>
```

In `~/some.html`.

- Run in `emacs -Q` the function `(xwidget-webkit-browse-url "file://home/USERNAME/some.html") or whatever is the complete path of the file.` At this point two (or maybe four?) of the errors should appear on the terminal.

- Open the buffer selection buffer via `C-x C-b` and click the xwidget buffer in order to get the other two errors.

For additional info and screencasts see https://github.com/masm11/emacs/issues/71 and https://github.com/masm11/emacs/issues/72.

This was reproduced using the latest commit of Emacs master.

--
Maximiliano Sandoval R.





^ permalink raw reply	[flat|nested] 6+ messages in thread

* bug#44034: 28.0.50; X-widget: assertion '!widget->priv->alloc_needed' failed
  2020-10-16 11:24 bug#44034: 28.0.50; X-widget: assertion '!widget->priv->alloc_needed' failed Maximiliano Sandoval via Bug reports for GNU Emacs, the Swiss army knife of text editors
@ 2020-10-16 16:13 ` Lars Ingebrigtsen
  2020-10-16 16:32   ` Maximiliano Sandoval via Bug reports for GNU Emacs, the Swiss army knife of text editors
  2022-05-07 12:49 ` Lars Ingebrigtsen
  1 sibling, 1 reply; 6+ messages in thread
From: Lars Ingebrigtsen @ 2020-10-16 16:13 UTC (permalink / raw)
  To: Maximiliano Sandoval; +Cc: fejfighter@gmail.com, 44034

Maximiliano Sandoval <msandova@protonmail.com> writes:

> In `~/some.html`.
>
> - Run in `emacs -Q` the function `(xwidget-webkit-browse-url
> "file://home/USERNAME/some.html") or whatever is the complete path of
> the file.` At this point two (or maybe four?) of the errors should
> appear on the terminal.

I'm unable to reproduce this bug on Debian bullseye.

Could you use `M-x report-emacs-bug' and post the version/OS information
on your system?

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no





^ permalink raw reply	[flat|nested] 6+ messages in thread

* bug#44034: 28.0.50; X-widget: assertion '!widget->priv->alloc_needed' failed
  2020-10-16 16:13 ` Lars Ingebrigtsen
@ 2020-10-16 16:32   ` Maximiliano Sandoval via Bug reports for GNU Emacs, the Swiss army knife of text editors
  2021-06-06 11:32     ` Lars Ingebrigtsen
  0 siblings, 1 reply; 6+ messages in thread
From: Maximiliano Sandoval via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2020-10-16 16:32 UTC (permalink / raw)
  To: Lars Ingebrigtsen; +Cc: fejfighter@gmail.com, 44034

Yes that was my bad,

> In GNU Emacs 28.0.50 (build 1, x86_64-redhat-linux-gnu, GTK+ Version 3.24.23, cairo version 1.16.0)
 of 2020-10-14 built on 9314bc75fe914fcba37266d0faf58377
Windowing system distributor 'System Description: Fedora 33 (Container Image Prerelease)

Please disregard the commit of emacs used as it does not correspond of the one used to reproduce this issue, it was on HEAD of master (at the time of posting).

In short:
- Fedora 33 Silverblue
- tested inside a toolbox 0.0.96 (podman) container
- GNOME 3.38
- Wayland
- Gtk 3.24.23

The configure options were
./configure --with-cairo --with-modules --with-xwidgets


I suspect that the issue might be in the Gtk or glib version.

Maximiliano Sandoval R.

‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐

On Friday, October 16th, 2020 at 4:13 PM, Lars Ingebrigtsen <larsi@gnus.org> wrote:

> Maximiliano Sandoval msandova@protonmail.com writes:
>
> > In `~/some.html`.
> >
> > -   Run in `emacs -Q` the function `(xwidget-webkit-browse-url "file://home/USERNAME/some.html") or whatever is the complete path of the file.` At this point two (or maybe four?) of the errors should
> >
> >     appear on the terminal.
>
> I'm unable to reproduce this bug on Debian bullseye.
>
> Could you use `M-x report-emacs-bug' and post the version/OS information
>
> on your system?
>
> --------------------------------------------------------------------------------------------------------------------------------------------------
>
> (domestic pets only, the antidote for overdose, milk.)
>
> bloggy blog: http://lars.ingebrigtsen.no





^ permalink raw reply	[flat|nested] 6+ messages in thread

* bug#44034: 28.0.50; X-widget: assertion '!widget->priv->alloc_needed' failed
  2020-10-16 16:32   ` Maximiliano Sandoval via Bug reports for GNU Emacs, the Swiss army knife of text editors
@ 2021-06-06 11:32     ` Lars Ingebrigtsen
  0 siblings, 0 replies; 6+ messages in thread
From: Lars Ingebrigtsen @ 2021-06-06 11:32 UTC (permalink / raw)
  To: Maximiliano Sandoval; +Cc: fejfighter@gmail.com, 44034

Maximiliano Sandoval <msandova@protonmail.com> writes:

> In short:
> - Fedora 33 Silverblue
> - tested inside a toolbox 0.0.96 (podman) container
> - GNOME 3.38
> - Wayland
> - Gtk 3.24.23
>
> The configure options were
> ./configure --with-cairo --with-modules --with-xwidgets
>
> I suspect that the issue might be in the Gtk or glib version.

I tried this with the current trunk on Fedora 32, and I couldn't
reproduce it there.  I guess I should install a newer Fedora VM...

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no





^ permalink raw reply	[flat|nested] 6+ messages in thread

* bug#44034: 28.0.50; X-widget: assertion '!widget->priv->alloc_needed' failed
  2020-10-16 11:24 bug#44034: 28.0.50; X-widget: assertion '!widget->priv->alloc_needed' failed Maximiliano Sandoval via Bug reports for GNU Emacs, the Swiss army knife of text editors
  2020-10-16 16:13 ` Lars Ingebrigtsen
@ 2022-05-07 12:49 ` Lars Ingebrigtsen
  2022-06-05 15:51   ` Lars Ingebrigtsen
  1 sibling, 1 reply; 6+ messages in thread
From: Lars Ingebrigtsen @ 2022-05-07 12:49 UTC (permalink / raw)
  To: Maximiliano Sandoval; +Cc: fejfighter@gmail.com, 44034

Maximiliano Sandoval <msandova@protonmail.com> writes:

> When opening a file using xwidget I get an error
>
> ```
> (emacs:150587): Gtk-CRITICAL **: 12:12:04.741: gtk_widget_draw: assertion '!widget->priv->alloc_needed' failed
>
> (emacs:150587): Gtk-CRITICAL **: 12:12:21.983: gtk_widget_draw: assertion '!widget->priv->alloc_needed' failed
>
> (emacs:151415): GLib-GObject-WARNING **: 12:18:44.591: instance with invalid (NULL) class pointer
>
> (emacs:151415): GLib-GObject-CRITICAL **: 12:18:44.591: g_signal_handlers_disconnect_matched: assertion 'G_TYPE_CHECK_INSTANCE (instance)' failed
> ```

(I'm going through old bug reports that unfortunately weren't resolved
at the time.)

If I remember correctly, there were a number of problems fixed in
xwidget (and Emacs' xwidget support) over the last year.  Do you still
see these warnings in Emacs 29/recent OS versions?

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no





^ permalink raw reply	[flat|nested] 6+ messages in thread

* bug#44034: 28.0.50; X-widget: assertion '!widget->priv->alloc_needed' failed
  2022-05-07 12:49 ` Lars Ingebrigtsen
@ 2022-06-05 15:51   ` Lars Ingebrigtsen
  0 siblings, 0 replies; 6+ messages in thread
From: Lars Ingebrigtsen @ 2022-06-05 15:51 UTC (permalink / raw)
  To: Maximiliano Sandoval; +Cc: fejfighter@gmail.com, 44034

Lars Ingebrigtsen <larsi@gnus.org> writes:

> If I remember correctly, there were a number of problems fixed in
> xwidget (and Emacs' xwidget support) over the last year.  Do you still
> see these warnings in Emacs 29/recent OS versions?

More information was requested, but no response was given within a
month, so I'm closing this bug report.  If the problem still exists,
please respond to this email and we'll reopen the bug report.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no





^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2022-06-05 15:51 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-10-16 11:24 bug#44034: 28.0.50; X-widget: assertion '!widget->priv->alloc_needed' failed Maximiliano Sandoval via Bug reports for GNU Emacs, the Swiss army knife of text editors
2020-10-16 16:13 ` Lars Ingebrigtsen
2020-10-16 16:32   ` Maximiliano Sandoval via Bug reports for GNU Emacs, the Swiss army knife of text editors
2021-06-06 11:32     ` Lars Ingebrigtsen
2022-05-07 12:49 ` Lars Ingebrigtsen
2022-06-05 15:51   ` Lars Ingebrigtsen

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).