gpt4 book ai didi

c - 我在这个 GTK/webkit 程序中缺少什么

转载 作者:塔克拉玛干 更新时间:2023-11-03 00:21:59 26 4
gpt4 key购买 nike

我有一个程序是我手头几个月编码的结果,每当我 alt+f4 退出程序然后立即重新启动它时,我都会收到此错误

Segmentation fault (core dumped)
ozan@ozan-PORTEGE-R700:~/dev/alpha2$ The program 'gtk-gnash' received an X Window System error.
This probably reflects a bug in the program.
The error was 'BadWindow (invalid Window parameter)'.
(Details: serial 202 error_code 3 request_code 12 minor_code 0)
(Note to programmers: normally, X errors are reported asynchronously;
that is, you will receive the error a while after causing it.
To debug your program, run it with the --sync command line
option to change this behavior. You can then get a meaningful
backtrace from your debugger if you break on the gdk_x_error() function.)
The program 'gtk-gnash' received an X Window System error.
This probably reflects a bug in the program.
The error was 'BadWindow (invalid Window parameter)'.
(Details: serial 202 error_code 3 request_code 12 minor_code 0)
(Note to programmers: normally, X errors are reported asynchronously;
that is, you will receive the error a while after causing it.
To debug your program, run it with the --sync command line
option to change this behavior. You can then get a meaningful
backtrace from your debugger if you break on the gdk_x_error() function.)
The program 'gtk-gnash' received an X Window System error.
This probably reflects a bug in the program.
The error was 'BadWindow (invalid Window parameter)'.
(Details: serial 198 error_code 3 request_code 12 minor_code 0)
(Note to programmers: normally, X errors are reported asynchronously;
that is, you will receive the error a while after causing it.
To debug your program, run it with the --sync command line
option to change this behavior. You can then get a meaningful
backtrace from your debugger if you break on the gdk_x_error() function.)
The program 'gtk-gnash' received an X Window System error.
This probably reflects a bug in the program.
The error was 'BadWindow (invalid Window parameter)'.
(Details: serial 198 error_code 3 request_code 12 minor_code 0)
(Note to programmers: normally, X errors are reported asynchronously;
that is, you will receive the error a while after causing it.
To debug your program, run it with the --sync command line
option to change this behavior. You can then get a meaningful
backtrace from your debugger if you break on the gdk_x_error() function.)
The program 'gtk-gnash' received an X Window System error.
This probably reflects a bug in the program.
The error was 'BadWindow (invalid Window parameter)'.
(Details: serial 198 error_code 3 request_code 12 minor_code 0)
(Note to programmers: normally, X errors are reported asynchronously;
that is, you will receive the error a while after causing it.
To debug your program, run it with the --sync command line
option to change this behavior. You can then get a meaningful
backtrace from your debugger if you break on the gdk_x_error() function.)

这是通常出现在终端中的错误信息。该程序有 4 个线程。我怀疑他们没有退出。问题是如果我 alt+f4 或 ctrl+c 退出主线程,我如何让这些流氓线程退出。除非我在重新启动前等待大约 30 秒,否则我总是会收到这些错误。你可能会说等一下,但我想让这东西工作。抱歉打扰了:)

最佳答案

我的猜测是,当您尝试重新启动程序时,窗口句柄尚未被销毁。也许此链接可以解决您的问题:https://bbs.archlinux.org/viewtopic.php?id=123176

关于c - 我在这个 GTK/webkit 程序中缺少什么,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20071085/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com