Coder Social home page Coder Social logo

GTK Error on childframes about emacs HOT 9 CLOSED

masm11 avatar masm11 commented on August 12, 2024
GTK Error on childframes

from emacs.

Comments (9)

masm11 avatar masm11 commented on August 12, 2024 1

@A6GibKm Thanks. #63 should fix this.

from emacs.

masm11 avatar masm11 commented on August 12, 2024 1

thanks for the testing.

from emacs.

fejfighter avatar fejfighter commented on August 12, 2024

step 2 not required,

confirmed,

#1 0x00000000005bf3d1 in frame_geometry (frame=, attribute=XIL(0xa890)) at pgtkfns.c:3327
3327 gtk_widget_get_allocation (FRAME_GTK_WIDGET (f), &alloc);

frame widget is null for that frame, which makes sense, it's a child "window"

from emacs.

A6GibKm avatar A6GibKm commented on August 12, 2024

In fact, I tried reproducing this with emacs -Q and this time it crashes

(emacs:113918): Gtk-CRITICAL **: 23:52:04.793: gtk_widget_get_allocation: assertion 'GTK_IS_WIDGET (widget)' failed

(emacs:113918): GLib-GObject-CRITICAL **: 23:52:04.820: g_object_get_data: assertion 'G_IS_OBJECT (object)' failed

(emacs:113918): GLib-GObject-CRITICAL **: 23:52:04.820: g_object_set_data: assertion 'G_IS_OBJECT (object)' failed

(emacs:113918): GLib-GObject-CRITICAL **: 23:52:04.820: g_object_get_data: assertion 'G_IS_OBJECT (object)' failed
Fatal error 11: Segmentation fault
Backtrace:
emacs[0x5012ed]
emacs[0x420178]
emacs[0x420a51]
emacs[0x622dbd]
/lib64/libpthread.so.0(+0x141e0)[0x7f35f65691e0]
emacs[0x4e3850]
emacs[0x46702e]
emacs[0x45978b]
emacs[0x56b574]
emacs[0x459705]
emacs[0x45d015]
emacs[0x4ec1da]
emacs[0x4fab58]
emacs[0x4ef76e]
emacs[0x56b4e7]
emacs[0x4e9aa4]
emacs[0x56b441]
emacs[0x4eae9b]
emacs[0x6355ab]
emacs[0x4ef4b3]
emacs[0x4298fa]
/lib64/libc.so.6(__libc_start_main+0xf2)[0x7f35f47851a2]
emacs[0x42bd5e]
Segmentation fault (core dumped)

from emacs.

fejfighter avatar fejfighter commented on August 12, 2024

Actually I think the widget hasn;t been created as yet, I got my macros mixed up

It's crashing with -Q as it;s trying to add the widget to a non frame that has not widgets allocated.

I have a suspicion we are creating 2 frames on startup and only one of those has widgets allocated

from emacs.

A6GibKm avatar A6GibKm commented on August 12, 2024

I just tested on the org.gnu.emacs flatpak (I can't think of another way of running a non pgtk emacs right now on my system) and running the snippet above does not cause any kind of crash nor error message.

from emacs.

fejfighter avatar fejfighter commented on August 12, 2024

@A6GibKm, Yes this appears to be specific to PGTK, and how frames are created. I don't expect this to affect gtk builds of upstream as the error appears to be in pgtkterm or pgtkfns

from emacs.

A6GibKm avatar A6GibKm commented on August 12, 2024

There is progress on #63,

(emacs:113918): Gtk-CRITICAL **: 23:52:04.793: gtk_widget_get_allocation: assertion 'GTK_IS_WIDGET (widget)' failed

no longer appears. But the core segmentation (emacs crashes) still happens when running as emacs -Q. For some reason it does not happen on my regular (Doom Emacs) setup.

from emacs.

A6GibKm avatar A6GibKm commented on August 12, 2024

Tested the newer commit, not only it fixes the crash. It also behaves as expected. Thanks, I will close the issue after it is merged.

from emacs.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.