LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 07-31-2005, 12:36 AM   #1
elvalith
LQ Newbie
 
Registered: Jul 2005
Location: Virginia, USA
Distribution: Arch Linux
Posts: 6

Rep: Reputation: 0
Problems with Gtk and Pango


I recently decided to try out linux and installed Arch Linux 0.7 on my Toshiba laptop. Afterwords, I download a few apps but when I tried to run them, but they wouldn't run. So I went aterm and typed in
"/opt/mozilla/bin/firefox"
and this is what popped up
"""
(firefox-bin:5537): Gdk-WARNING **: gdk_property_get(): length value has wrapped in calculation (did you pass G_MAXLONG?)

(firefox-bin:5537): GdkPixBuf-WARNING **: Cannot open pixbuf loader module file '/etc/gtk-2.0/gdk-pixbuf.loaders': No such file or directory

(same thing repeats 4 times)

(firefox-bin:5537): Pango-WARNING **: No builtin or dynamically loaded modules were found. Pango will not work correctly. This probably means there was an error in the creation of:
'/etc/pango/pango.modules'
You may be able to recreate this file by running pango-querymodules.

(firefox-bin:5537): Glib-GObject-CRITICAL **: g_object_ref: assertion 'G_IS_OBJECT (object) failed

(firefox-bin:5537): Pango-CRITICAL **: _pango_engine_shape_shape: assertion 'PANGO_IS_FONT (font)' failed

Pango-ERROR **: file shape.c: line 75 (pango_shape): assertion failed: (glyphs->nrm_glyphs > 0)
aborting...
/opt/mozilla/lib/firefox-1.0.4/run-mozilla.sh: line 159: 5537 Aborted
"$prog" ${1+"$@"}
"""
Pretty much the same thing pops up whenever I try to run anything that uses Gdk and/or pango from the command prompt (gaim, abiword, etc) give or take a few more error messages (gaim dosn't have the Gdk errors). All the other programs that don't use Gtk and Pango (fluxbox, mutt, mc, etc.) work just fine.
Any help would be greatly appreciated.
 
Old 07-31-2005, 06:03 PM   #2
cs-cam
Senior Member
 
Registered: May 2004
Location: Australia
Distribution: Gentoo
Posts: 3,545

Rep: Reputation: 57
Did you install the glib2, gtk and pango packages via pacman or did you compile them yourself? If you installed them with pacman, what mirror did you use? What versions do you have installed (pacman -Qi pango)? Does /etc/pango/pango.modules actually exist? That file isn't installed by any package so perhaps try running a GTK app as root which would give pango the permissions to write that file.
 
Old 07-31-2005, 09:50 PM   #3
elvalith
LQ Newbie
 
Registered: Jul 2005
Location: Virginia, USA
Distribution: Arch Linux
Posts: 6

Original Poster
Rep: Reputation: 0
I installed everything on my machine from pacman so far from ftp://ftp.archlinux.org/current/os/i686. I have Pango v. 1.8.1-1, glib2 2.6.5-1, and gtk 1.2.10-4 installed. However, /etc/pango/pango.modules does not exist. I tried running several GTK apps as root and all of them simply printed back the same messages they did when I was just a regular user. I tried doing "pango-querymodules" but all that did was spit back a bunch of text without solving anything. Any idea how I could make a pango.modules file either automatically or manually?
 
Old 08-01-2005, 05:15 AM   #4
cs-cam
Senior Member
 
Registered: May 2004
Location: Australia
Distribution: Gentoo
Posts: 3,545

Rep: Reputation: 57
While I am aware that this is certainly not the solution since at some point in time, the file should have been created of it's own accord, following is a link to mine. Try putting it in place and 0666 permissions so everyone can read it and see what results you have.

http://www.myfilebin.com/userfiles/cam/pango.modules
 
Old 08-01-2005, 11:49 AM   #5
elvalith
LQ Newbie
 
Registered: Jul 2005
Location: Virginia, USA
Distribution: Arch Linux
Posts: 6

Original Poster
Rep: Reputation: 0
I copied your pango.modules into my directory and firefox (as well as every other one of my problamatic apps) actually worked (I'm actually posting this from my laptop). However, all of the non pango error messages still popped up when I ran it from aterm ((firefox-bin:5537): Gdk-WARNING **: gdk_property_get(): length value has wrapped in calculation (did you pass G_MAXLONG?) etc.). Thanks for your help. Also if its not too much trouble, would you happen to have any theories as to why my pango.modules wouldn't generate automatically and why the other error messages still popped up? Once again, thanks for all the help. I really appreciate it.
 
Old 08-01-2005, 08:40 PM   #6
cs-cam
Senior Member
 
Registered: May 2004
Location: Australia
Distribution: Gentoo
Posts: 3,545

Rep: Reputation: 57
No idea, but I saw your post over at the Archlinux forums so hopefully you'll get a better answer over there
 
Old 08-04-2005, 03:11 AM   #7
shellreef
LQ Newbie
 
Registered: Aug 2005
Posts: 1

Rep: Reputation: 0
Quote:
Originally posted by elvalith
However, all of the non pango error messages still popped up when I ran it from aterm ((firefox-bin:5537): Gdk-WARNING **: gdk_property_get(): length value has wrapped in calculation (did you pass G_MAXLONG?) etc.).
Hi there,

This error was bothering me too. Fortunately it is easy to fix. Open gfx/src/gtk/nsScreenGtk.cpp and look for this call:
Quote:
if (!gdk_property_get(root_window,
gdk_atom_intern ("_NET_WORKAREA", FALSE),
cardinal_atom,
0, G_MAXLONG, FALSE,
&type_returned,
&format_returned,
&length_returned,
(guchar **) &workareas)) {
Change G_MAXLONG to G_MAXLONG - 3 and recompile. I found the fix from Loic Minier here, and (its already fixed in Debian).

Hope this helps.
 
Old 08-04-2005, 05:12 AM   #8
Harmaa Kettu
Member
 
Registered: Apr 2005
Location: Finland
Posts: 196

Rep: Reputation: 30
Looks like your system is missing some files that gtk needs. They are normally included in the gtk packages or created during installation, but you can also create them yourself.

Try this:
Code:
pango-querymodules > /etc/pango/pango.modules
gdk-pixbuf-query-loaders > /etc/gtk-2.0/gdk-pixbuf.loaders
gtk-query-immodules-2.0 > /etc/gtk-2.0/gtk.immodules
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Freerock uninstall stole GTK looking for up-to-date pango, atk, gtk, glib and xft tgz Oholiab Slackware 8 09-18-2005 11:57 AM
pango and gtk+ linuxienne Linux - Software 2 06-13-2005 08:09 AM
GTK install: Pango Problems Daddywags Linux - Software 9 04-27-2005 08:57 AM
GTK+2.5.0 and Pango 1.4.1 linkage problems.... SyBEX Linux - Software 10 10-29-2004 01:09 PM
Gtk+ and Pango problems rundjuling Linux - Software 8 05-17-2004 01:15 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:20 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration