[INSERT] kills Seamonkey when posting to forum <KLUDGED>

A home for all kinds of Puppy related projects
Message
Author
User avatar
Pizzasgood
Posts: 6183
Joined: Wed 04 May 2005, 20:28
Location: Knoxville, TN, USA

#76 Post by Pizzasgood »

Cool. Turns out I only had to recompile gtk with the --enable-debug option. Works fine without touching glib.

I also compiled it with --enable-xinput=yes, because otherwise people with drawing tablets can't use pressure sensitivity, and I'm sure there are other peripherals that use xinput.

Just install this over your existing gtk. Note: you probably can't use this as a standalone gtk package in Unleashed. Most likely you need to copy this into the current package, overwriting the files, because I believe the original package has some other configuration files and such that aren't in this one.
gtk+-2.12.1-xinput-debug.pet
EDIT: file removed - it's slightly broken - does not work with SCIM. See several posts down, I posted a corrected version.

Tested on 4.11 and 4.12 only.

You'll have to restart at least the browser before it will take effect.
Last edited by Pizzasgood on Sat 25 Apr 2009, 19:29, edited 2 times in total.
[size=75]Between depriving a man of one hour from his life and depriving him of his life there exists only a difference of degree. --Muad'Dib[/size]
[img]http://www.browserloadofcoolness.com/sig.png[/img]

User avatar
Béèm
Posts: 11763
Joined: Wed 22 Nov 2006, 00:47
Location: Brussels IBM Thinkpad R40, 256MB, 20GB, WiFi ipw2100. Frugal Lin'N'Win

#77 Post by Béèm »

Pizzasgood wrote:Well, I though I had it working fine, but I think it broke Geany now, so I just took down my package before anybody borks themselves (hopefully they haven't already...).

I will test further.
Ooops, downloaded but didn't install yet. Oef.
Time savers:
Find packages in a snap and install using Puppy Package Manager (Menu).
[url=http://puppylinux.org/wikka/HomePage]Consult Wikka[/url]
Use peppyy's [url=http://wellminded.com/puppy/pupsearch.html]puppysearch[/url]

User avatar
Pizzasgood
Posts: 6183
Joined: Wed 04 May 2005, 20:28
Location: Knoxville, TN, USA

#78 Post by Pizzasgood »

Oh, that reminds me: the working one I posted above will also correct the broken one, in case anybody did install it. At least, it seems to have. Everything that was goofed up before (geany, gnumeric, abiword, firefox's icons) is working now.
[size=75]Between depriving a man of one hour from his life and depriving him of his life there exists only a difference of degree. --Muad'Dib[/size]
[img]http://www.browserloadofcoolness.com/sig.png[/img]

disciple
Posts: 6984
Joined: Sun 21 May 2006, 01:46
Location: Auckland, New Zealand

HOORAY!

#79 Post by disciple »

Sorry I didn't test earlier PG, I didn't see it :(

Rather than installing it:
1. I took it apart, stripped the libs, and found they were still substantially bigger than the ones that came in Puppy, so I thought I'd try replacing files one by one.
2. I checked that INSERT still killed seamonkey.
3. I replaced libgtk-x11-2.0.so.0.1200.1 but INSERT still killed seamonkey
4. I replaced libgdk-x11-2.0.so.0.1200.1, and INSERT doesn't kill seamonkey anymore. HOORAY!!!! :):):):):):):):)

So it is fixed by either:
1. just replacing libgdk, or
2. (less likely IMNSHO) replacing libgtk and libgdk

Now we need to:
1. compile the latest GTK to see if it has the same problem
2. if so, upgrade so we can solve the bug without bloat, and if not report it properly.

Now I see this in a terminal when I press INSERT in seamonkey:

Code: Select all

(seamonkey-bin:8528): Gtk-CRITICAL **: gtk_text_buffer_get_insert: assertion `GTK_IS_TEXT_BUFFER (buffer)' failed

(seamonkey-bin:8528): Gtk-CRITICAL **: gtk_text_buffer_get_iter_at_mark: assertion `GTK_IS_TEXT_MARK (mark)' failed

(seamonkey-bin:8528): Gtk-CRITICAL **: _gtk_text_layout_get_block_cursor: assertion `layout != NULL' failed

(seamonkey-bin:8528): Gtk-CRITICAL **: gtk_text_layout_get_cursor_locations: assertion `layout != NULL' failed

(seamonkey-bin:8528): Gdk-CRITICAL **: gdk_window_invalidate_rect: assertion `window != NULL' failed

(seamonkey-bin:8528): Gdk-CRITICAL **: gdk_window_invalidate_rect: assertion `window != NULL' failed

(seamonkey-bin:8528): Gtk-CRITICAL **: gtk_text_buffer_get_insert: assertion `GTK_IS_TEXT_BUFFER (buffer)' failed

(seamonkey-bin:8528): Gtk-CRITICAL **: gtk_text_buffer_get_iter_at_mark: assertion `GTK_IS_TEXT_MARK (mark)' failed

(seamonkey-bin:8528): Gtk-CRITICAL **: _gtk_text_layout_get_block_cursor: assertion `layout != NULL' failed

(seamonkey-bin:8528): Gtk-CRITICAL **: gtk_text_layout_get_cursor_locations: assertion `layout != NULL' failed

(seamonkey-bin:8528): Gdk-CRITICAL **: gdk_window_invalidate_rect: assertion `window != NULL' failed

(seamonkey-bin:8528): Gdk-CRITICAL **: gdk_window_invalidate_rect: assertion `window != NULL' failed
Good night :)
Do you know a good gtkdialog program? Please post a link here

Classic Puppy quotes

ROOT FOREVER
GTK2 FOREVER

User avatar
Flash
Official Dog Handler
Posts: 13071
Joined: Wed 04 May 2005, 16:04
Location: Arizona USA

#80 Post by Flash »

Pizza, I didn't notice your .pet until this morning. I installed it immediately but haven't had time to restart (saving the session) and test it until now. While writing this I've hit the insert key several times without any effect at all. It looks like you not only found the cause of the problem but fixed it. Good job! You get two Attaboys. :D
[url=http://www.murga-linux.com/puppy/viewtopic.php?t=69321][color=blue]Puppy Help 101 - an interactive tutorial for Lupu 5.25[/color][/url]

User avatar
Pizzasgood
Posts: 6183
Joined: Wed 04 May 2005, 20:28
Location: Knoxville, TN, USA

#81 Post by Pizzasgood »

A: I didn't find this, thekevinday did. 13 posts above. I just put together a package.

B: It isn't really "fixed", just worked-around. What I did was enable debug-mode. But we shouldn't need to have that enabled.
[size=75]Between depriving a man of one hour from his life and depriving him of his life there exists only a difference of degree. --Muad'Dib[/size]
[img]http://www.browserloadofcoolness.com/sig.png[/img]

disciple
Posts: 6984
Joined: Sun 21 May 2006, 01:46
Location: Auckland, New Zealand

#82 Post by disciple »

And C: it seems to be much bigger with debug enabled.
Do you know a good gtkdialog program? Please post a link here

Classic Puppy quotes

ROOT FOREVER
GTK2 FOREVER

User avatar
Pizzasgood
Posts: 6183
Joined: Wed 04 May 2005, 20:28
Location: Knoxville, TN, USA

#83 Post by Pizzasgood »

Part of that is that I also enabled xinput, so that people with tablets can take advantage of them without having to recompile GTK (it always used to be enabled in older versions of Puppy, pre 4.0). But I did test it without that first, so I know it's only the enable-debug option that was needed.

Though I don't think that makes a big size difference. I imagine the debug option makes up the bulk of that increase.

EDIT: Actually, by my measurements, xinput adds only about 8k, after stripping. Cool. I thought it would be a bit more than that. Well, that's how much it adds without debug. It probably adds more with debug, because then the debug info for xinput has to be included too. But I'm not about to recompile it again to compare that too. Takes too long. Would rather see if I can find those ZZZzzzzzs I misplaced.

EDIT 2: Something seemed off. You said a substantial size increase, but I'm only seeing a 50k difference between the debug and non-debug versions I compiled. So I dug up the original, and there's a much bigger difference - 120k. So there is something else different. Possibly that I didn't specify an architecture, or maybe he explicitly disabled something. But those ZZZzzzzzzs are getting lonely without me, so I'll work on it another day. (Not tomorrow - must study for exams).
[size=75]Between depriving a man of one hour from his life and depriving him of his life there exists only a difference of degree. --Muad'Dib[/size]
[img]http://www.browserloadofcoolness.com/sig.png[/img]

User avatar
Flash
Official Dog Handler
Posts: 13071
Joined: Wed 04 May 2005, 16:04
Location: Arizona USA

#84 Post by Flash »

Pizzasgood wrote:A: I didn't find this, thekevinday did. 13 posts above. I just put together a package.
Oops, my mistake. Sorry, thekevinday. I should have read the whole thread more carefully before posting. You'll have to share Pizza's Attaboys. :)
B: It isn't really "fixed", just worked-around. What I did was enable debug-mode. But we shouldn't need to have that enabled.
All I had to do was click a few times and the problem went away. That's a fix as far as I'm concerned. :)

vanchutr
Posts: 438
Joined: Sat 05 Aug 2006, 12:04

#85 Post by vanchutr »

Does 4.1.2 incorporate the fix Pizzasgood found for the bug where hitting the Insert key while composing a message in this forum causes Seamonkey to close?
In 4.1.2, I'd used the fix pet (Pizzasgood's gtk+-2.12.1-xinput-debug.pet) but INSERT key still killed seamonkey when I'm posting in forum.

Sorry! Sorry!
I'd made mistake: Isert key won't killed seamonkey after "restart x server"
TK

disciple
Posts: 6984
Joined: Sun 21 May 2006, 01:46
Location: Auckland, New Zealand

#86 Post by disciple »

FWIW I can confirm it is only necessary to replace libgdk, not libgtk :)
Does anybody know if this fix is making it into 4.2?
Do you know a good gtkdialog program? Please post a link here

Classic Puppy quotes

ROOT FOREVER
GTK2 FOREVER

User avatar
droope
Posts: 801
Joined: Fri 01 Aug 2008, 00:17
Location: Uruguay, Mercedes

#87 Post by droope »

Ha! i always remove INS key, because firepup also shuts down when i am posting and I press INS:

Annoying as hell, once i had a 1340 words text written... of course i didn't had it anywhere else, so i simply cryed "WHY GOD??!??! WHY????" before i shut down PC and went to bed (at 7 pm).

User avatar
Béèm
Posts: 11763
Joined: Wed 22 Nov 2006, 00:47
Location: Brussels IBM Thinkpad R40, 256MB, 20GB, WiFi ipw2100. Frugal Lin'N'Win

#88 Post by Béèm »

No problems in 4.2 hitting the insert key.
Time savers:
Find packages in a snap and install using Puppy Package Manager (Menu).
[url=http://puppylinux.org/wikka/HomePage]Consult Wikka[/url]
Use peppyy's [url=http://wellminded.com/puppy/pupsearch.html]puppysearch[/url]

User avatar
canbyte
Posts: 264
Joined: Sat 10 Jan 2009, 20:20
Location: Hamilton, Canada

#89 Post by canbyte »

Note that this problem also occurs with numlock off using the 0 key on the numbers pad. Must also be typing something in seamonkey such as filling in this form or profile form etc.
[color=orange]1. Dell Dimension E521, AMD Athln 64, 2 GHz 1.93GB ram,
Puppy 533 on CD, accesses flash drive only,
FFox Nightly12.0
2. Compaq P3 733Hz 375RAM
Printer: Oki C3400 > LAN [/color]

User avatar
Pizzasgood
Posts: 6183
Joined: Wed 04 May 2005, 20:28
Location: Knoxville, TN, USA

#90 Post by Pizzasgood »

The package I posted above doesn't cooperate with SCIM for some reason. I actually encountered the problem months ago, but didn't realize that it was GTK causing the problem.

I'm not sure what is wrong with it to cause the problem. Everything else seems to work.

Anyway, I recompiled it, and it turns out the debug option isn't actually needed - simply recompiling it is enough to stop the insert error from killing things. And this time, it worked with SCIM. I still used the --with-xinput option to support pressure sensitivity on my Wacom tablet.

gtk+-2.12.1-xinput.pet
gtk+_DEV-2.12.1-xinput.pet
gtk+_DOC-2.12.1-xinput.pet
gtk+_NLS-2.12.1-xinput.pet

These have been tested in both 4.1.2 and 4.2.
[size=75]Between depriving a man of one hour from his life and depriving him of his life there exists only a difference of degree. --Muad'Dib[/size]
[img]http://www.browserloadofcoolness.com/sig.png[/img]

User avatar
mikeb
Posts: 11297
Joined: Thu 23 Nov 2006, 13:56

#91 Post by mikeb »

gtk+-2.12.1-xinput.pet
gtk+_DEV-2.12.1-xinput.pet
gtk+_DOC-2.12.1-xinput.pet
gtk+_NLS-2.12.1-xinput.pet
note that this update/fix also fixes a crash with avidemux 2.4 and searchmonkey

nice one :)

mike

User avatar
ttuuxxx
Posts: 11171
Joined: Sat 05 May 2007, 10:00
Location: Ontario Canada,Sydney Australia
Contact:

#92 Post by ttuuxxx »

yes excellent job, now if we just had a updated xorg pet then Firefox 3 series would run right on series4.0 and it would be worth keep 4 series around a bit longer. :wink:
ttuuxxx
http://audio.online-convert.com/ <-- excellent site
http://samples.mplayerhq.hu/A-codecs/ <-- Codec Test Files
http://html5games.com/ <-- excellent HTML5 games :)

Post Reply