unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Po Lu via "Bug reports for GNU Emacs, the Swiss army knife of text editors" <bug-gnu-emacs@gnu.org>
To: Stephen Berman <stephen.berman@gmx.net>
Cc: 66068@debbugs.gnu.org
Subject: bug#66068: 30.0.50; xwidget-webkit-browse-url makes Emacs abort
Date: Sat, 30 Sep 2023 19:52:03 +0800	[thread overview]
Message-ID: <87il7rnajg.fsf@yahoo.com> (raw)
In-Reply-To: <87fs2wm0zk.fsf@gmx.net> (Stephen Berman's message of "Sat, 30 Sep 2023 12:03:43 +0200")

Stephen Berman <stephen.berman@gmx.net> writes:

> On Mon, 25 Sep 2023 12:22:19 +0200 Stephen Berman <stephen.berman@gmx.net> wrote:
>
>> On Mon, 25 Sep 2023 17:25:43 +0800 Po Lu <luangruo@yahoo.com> wrote:
>>
>>> Stephen Berman <stephen.berman@gmx.net> writes:
>>>
>>>> Now this is interesting: starting from within gdb with -q -xrm
>>>> "emacs.synchronous: true", then doing M-x xwidget-webkit-browse-url,
>>>> entering a URL and pressing RET now succeeds, i.e. the web page opens,
>>>> no crash.  Same when starting from within gdb with just -xrm
>>>> "emacs.synchronous: true", i.e., with my init file running in X
>>>> synchronous mode: xwidget-webkit-browse-url does not make Emacs crash.
>>>> However, then I start Emacs outside of gdb, i.e. directly from the shell
>>>> with -xrm "emacs.synchronous: true", either with or without -q, and
>>>> invoke xwidget-webkit-browse-url, then Emacs aborts as before (i.e. same
>>>> as when not running in X synchronous mode).  I hope you can make sense
>>>> of that.
>>>
>>> When Emacs aborts, it should print a stack trace.  Provided that your
>>> system is configured correctly, a core file should also be generated.
>>>
>>> If either of these two are available, please attempt to derive a stack
>>> trace from them; the procedure for the former case is illustrated within
>>> (emacs)Crashing.
>>
>> I have both the stack trace and the core file.
>>
>> The stack trace is essentially the same as the one at the end of the
>> backtrace I attached to my OP in this bug, see <87r0mvdccy.fsf@gmx.net>
>> <https://lists.gnu.org/archive/html/bug-gnu-emacs/2023-09/msg01905.html>.
>> However, using the sed with addr2line as described in (emacs) Crashing
>> only produces 41 lines like this: ?? ??:0.  Is this because my Emacs
>> build is out-of-tree?
>>
>> I've attached the full backtrace produced by running gdb on the core
>> file (though it starts with some warnings which may call its usefulness
>> into doubt).
>
> FWIW, I have updated webkitgtk from 2.41.92 to 2.42.1 and invoking
> xwidget-webkit-browse-url still makes Emacs crash.  But with two other
> GNU/Linux systems which have webkitgtk-2.40.1, xwidget-webkit-browse-url
> invoked in Emacs built from the same commit on master works fine.
>
> Steve Berman

I believe this is not a problem we can fix: the WebKitGTK developers
have elected to presume that WebViews are always placed within X
windows, and to unconditionally create GLX contexts for such views.

This loses, inasmuch as Emacs places each widget within an offscreen
window, facilitating the duplication of its contents when it is
simultaneously displayed within two Emacs windows.  Please report this
to the WebKitGTK developers.

WebKitGTK is not meant for displaying contents within programs that must
display the same widget in more than one location; that is the metier of
WPE (wpewebkit.org).  Several months ago, I asked for interested
individuals to step forth and undertake writing the code to replace
WebKitGTK by that library, but was met with silence.





  reply	other threads:[~2023-09-30 11:52 UTC|newest]

Thread overview: 39+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-09-18 10:06 bug#66068: 30.0.50; xwidget-webkit-browse-url makes Emacs abort Stephen Berman
2023-09-18 11:16 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-09-18 12:16   ` Stephen Berman
2023-09-18 14:11     ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-09-18 15:08       ` Stephen Berman
2023-09-20  3:22         ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-09-24 15:12           ` Stephen Berman
2023-09-25  0:30             ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-09-25  8:47               ` Stephen Berman
2023-09-25  9:25                 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-09-25 10:22                   ` Stephen Berman
2023-09-30 10:03                     ` Stephen Berman
2023-09-30 11:52                       ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors [this message]
2023-09-30 12:09                         ` Stephen Berman
2023-09-18 11:28 ` Eli Zaretskii
2023-09-18 12:17   ` Stephen Berman
2023-12-07 10:28 ` Ramon Diaz-Uriarte
2023-12-09 15:12   ` Stephen Berman via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-12-09 20:39     ` Stephen Berman via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-12-10  5:32       ` Eli Zaretskii
2023-12-10 13:36         ` Stephen Berman via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-12-10 15:02           ` Eli Zaretskii
2023-12-10 15:28             ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-12-10 15:47               ` Stephen Berman via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-12-11  0:43                 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-12-11  9:55                   ` Stephen Berman via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-12-11 10:16                     ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-12-10 15:49               ` Eli Zaretskii
2023-12-11 21:03           ` Ramon Diaz-Uriarte
2024-09-04 11:23 ` Peter Oliver
2024-09-05  8:14   ` Eli Zaretskii
2024-09-07  9:32   ` Eli Zaretskii
2024-09-14  7:45     ` Eli Zaretskii
2024-09-14 12:11       ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-09-14 14:21         ` Stefan Kangas
2024-09-21  9:01         ` Eli Zaretskii
2024-09-21 21:45 ` bug#66068: removing the WebKit when webkit2gtk3-2.42.5-1.el9.x86_64 will not alllow RL9 to configure Doug Maxey
2024-09-22  5:05   ` Eli Zaretskii
     [not found]     ` <db88e0b43b02580ee78171c3b0d55bcda6b2a458.camel@maxeygroup.tech>
2024-09-23 11:14       ` Eli Zaretskii

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87il7rnajg.fsf@yahoo.com \
    --to=bug-gnu-emacs@gnu.org \
    --cc=66068@debbugs.gnu.org \
    --cc=luangruo@yahoo.com \
    --cc=stephen.berman@gmx.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).