Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

X-Widget: assertion '!widget->priv->alloc_needed' failed #71

Closed
A6GibKm opened this issue Oct 16, 2020 · 5 comments
Closed

X-Widget: assertion '!widget->priv->alloc_needed' failed #71

A6GibKm opened this issue Oct 16, 2020 · 5 comments

Comments

@A6GibKm
Copy link

A6GibKm commented Oct 16, 2020

When opening a file using xwdiget 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

This seems to be harmless.

How to reproduce: Not really see below

As in #69, 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

Then run inside emacs

(xwidget-webkit-browse-url "file://home/USERNAME/some.html") or whatever is the complete path of the file.

@A6GibKm A6GibKm changed the title X-Widget assertion '!widget->priv->alloc_needed' failed X-Widget: assertion '!widget->priv->alloc_needed' failed Oct 16, 2020
@fejfighter
Copy link

I cannot reproduce this one, but I do see #72

@A6GibKm
Copy link
Author

A6GibKm commented Oct 16, 2020

This is indeed not reproducible with emacs -Q. I will try too look a bit deeper into it.

It is probably due to my personal config + Doom Emacs, since it is not reproducible with Doom emacs without my personal config either.

@A6GibKm
Copy link
Author

A6GibKm commented Oct 16, 2020

Update: I found a way.

Steps to reproduce

  • Enter emacs -Q
  • Run (xwidget-webkit-browse-url "file://home/USERNAME/some.html")
  • Press C-x C-b to pop up the buffer selection
  • click on the xwidget buffer

Screencast from 10-16-2020 12:58:38 PM.zip

Relevant Note

This is somewhat reproducible in master, but slightly different. In master I see the error four times instead of two, this suggest that the issue might lie in the master branch. I will file a bug later with CC to @fejfighter.

@fejfighter
Copy link

yup Confirmed with new recipe

@A6GibKm
Copy link
Author

A6GibKm commented Oct 16, 2020

Both this issue and #72 were reported at http://debbugs.gnu.org/cgi/bugreport.cgi?bug=44034.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants