LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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 11-26-2004, 08:13 PM   #1
jonr
Senior Member
 
Registered: Jan 2003
Location: Kansas City, Missouri, USA
Distribution: Ubuntu
Posts: 1,040

Rep: Reputation: 47
Gimp xpm plugin cannot save file


Using Gimp 2 I wanted to alter an .xpm image file for use in a window-manager theme.

Gimp opened the file OK, let me work on it, but then after appearing to process the file for saving, gave me the message "Plugin could not save image."

I uninstalled Gimp and reinstalled it and everything urpmi wanted to associate with it, and got the same result.

The list of plugins shows an .xpm_open and an .xpm_save plugin, so it's not a missing plugin that's at fault.

I've created .xpm files in the past, and am pretty sure it was with The Gimp, but for some reason with this version, and under Mandrake 10.1 OE and kernel 2.6.8.1-20mdk, no go.

Has anybody else experienced this problem and solved it?
 
Old 11-28-2004, 02:13 PM   #2
covex
LQ Newbie
 
Registered: Nov 2004
Posts: 8

Rep: Reputation: 0
I found today exactly the same problem. After saving progress bar completes gimp says:

Code:
GIMP Message
Saving '/home/me/something.xpm' failed:

Plug-In could not save image
I have FC2 and I tried all the versions of gimp from 2.0.1 to 2.0.5. I assume problem could be somewhere else than in gimp.
 
Old 11-28-2004, 02:23 PM   #3
covex
LQ Newbie
 
Registered: Nov 2004
Posts: 8

Rep: Reputation: 0
Hm.. the latest update of xorg says:
Quote:
Update Information:

Several integer overflow flaws in the X.Org libXpm library used to decode
XPM (X PixMap) images have been found and addressed. An attacker could
create a carefully crafted XPM file which would cause an application to
crash or potentially execute arbitrary code if opened by a victim. The
Common Vulnerabilities and Exposures project (cve.mitre.org) has assigned
the name CAN-2004-0914 to this issue.
For me it is update from xorg-x11-6.7.0-9 to xorg-x11-6.7.0-10.
On xorg-x11-6.7.0-9 this seems to work.. (different computer without update).
 
Old 11-28-2004, 02:34 PM   #4
jonr
Senior Member
 
Registered: Jan 2003
Location: Kansas City, Missouri, USA
Distribution: Ubuntu
Posts: 1,040

Original Poster
Rep: Reputation: 47
Here's what I get, after trying several spellings (they can't seem to decide how to spell their own name...):
Code:
[root@bodhisattva jon]# Xorg -version

Release Date: 18 December 2003
X Protocol Version 11, Revision 0, Release 6.7
Build Operating System: Linux 2.4.19-44mdkenterprise i686 [ELF] 
Current Operating System: Linux bodhisattva 2.6.8.1-20mdk #1 Mon Nov 8 12:35:22 CET 2004 i686
Build Date: 18 November 2004
        Before reporting problems, check http://wiki.X.Org
        to make sure that you have the latest version.
Module Loader present
Any idea about obtaining an update? Mandrake update doesn't list any as needed. Besides, if I understand you correctly, covex, it wouldn't solve teh problem anyway.

Edit, update: The documentation links on the xorg, or XOrg, or Xorg, or X.Org site, are all inoperative. That's hardly encouraging. I doubt that installing a new version would be within my capability anyway. So I guess I'm just stuck with not being able to handle xpm's anymore because some evildoers MIGHT send along ones that affect my system.



Sigh...

P. S. The reason I get huffy about the various spellilngs is that it does NOT help a user to do a locate, even with the -i switch, if spellings are not consistent, and especially if a dot is included sometimes and not others, as in the title of the site itself. It also raises doubts about the attention to detail given to documentation and work in general.

Last edited by jonr; 11-28-2004 at 02:42 PM.
 
Old 11-28-2004, 03:01 PM   #5
covex
LQ Newbie
 
Registered: Nov 2004
Posts: 8

Rep: Reputation: 0
The only way to try it is to downgrade. I see your xorg build is from 18.11. - probably mandrake provided also an update of it.

This is mein:
Code:
Release Date: 18 December 2003
X Protocol Version 11, Revision 0, Release 6.7
Build Operating System: Linux 2.4.21-23.ELsmp i686 [ELF] 
Current Operating System: Linux all 2.6.8.1 #1 Sat Oct 23 19:36:09 CEST 2004 i686
Build Date: 16 November 2004
Build Host: bugs.build.redhat.com
I do not have a time to play with xorg downgrade now...
 
Old 11-28-2004, 06:21 PM   #6
jonr
Senior Member
 
Registered: Jan 2003
Location: Kansas City, Missouri, USA
Distribution: Ubuntu
Posts: 1,040

Original Poster
Rep: Reputation: 47
Quote:
Originally posted by covex
The only way to try it is to downgrade. I see your xorg build is from 18.11. - probably mandrake provided also an update of it.


I do not have a time to play with xorg downgrade now...
And I don't have the courage!

I wouldn't even know where/how to start. So I'll just live without the ability to edit/create .xpm images.

I read that they're very inefficient and bad in many ways anyhow and generally on their way out for widespread use; unfortunately they are also what IceWM
uses for its window decorations, as well as some other window managers (most?).

Maybe someday window managers will change over to .png images, we can all alter them to our hearts'
content, go out and buy more RAM, and be happy!

I have a high-speed connection. Perhaps I'll download the latest Knoppix and see if I can use Gimp from
it with .xpm successfully, just as an experiment.

Thanks for your help and suggestions!

Last edited by jonr; 11-28-2004 at 06:23 PM.
 
Old 11-29-2004, 04:54 AM   #7
covex
LQ Newbie
 
Registered: Nov 2004
Posts: 8

Rep: Reputation: 0
I've submit a bug 141047 to redhat bugzilla, we will see if there is really something wrong... the strange thing is we have a different distributions but same behaviour..

BTW: I am more than a user of IceWM.
 
Old 11-29-2004, 06:27 AM   #8
covex
LQ Newbie
 
Registered: Nov 2004
Posts: 8

Rep: Reputation: 0
Confirmed xorg bug: https://bugs.freedesktop.org/show_bug.cgi?id=1924
 
Old 11-29-2004, 09:24 AM   #9
jonr
Senior Member
 
Registered: Jan 2003
Location: Kansas City, Missouri, USA
Distribution: Ubuntu
Posts: 1,040

Original Poster
Rep: Reputation: 47
Quote:
Originally posted by covex
I've submit a bug 141047 to redhat bugzilla, we will see if there is really something wrong... the strange thing is we have a different distributions but same behaviour..

BTW: I am more than a user of IceWM.
Thanks for the bug action! I suspect the problem's very well known by now, but surprised an easy fix doesn't seem to be available. At least for Mandrake. By poking around I find that both the X.Org and xpm libraries have been revised, apparently in response to this conflict. But I couldn't find out how to implement a fix.

Curious: when you say "more than a user," you don't happen to mean you're one of the IceWM developers, do you? Congrats if you are! Anyway, I keep coming back to IceWM though I'm enjoying Fluxbox at the moment--never could get it to work till Mandrake 10.1....
 
Old 11-30-2004, 04:21 AM   #10
covex
LQ Newbie
 
Registered: Nov 2004
Posts: 8

Rep: Reputation: 0
Quote:
Originally posted by jonr
Thanks for the bug action! I suspect the problem's very well known by now, but surprised an easy fix doesn't seem to be available. At least for Mandrake. By poking around I find that both the X.Org and xpm libraries have been revised, apparently in response to this conflict. But I couldn't find out how to implement a fix.
There is no easy way to fix it, it is a bug in libXpm, hence without recompiling X, or atleast libXpm you can not fix it. I expect it to be fixed in next update of mandrake xorg package... but dono when it will be.

Quote:
Curious: when you say "more than a user," you don't happen to mean you're one of the IceWM developers, do you? Congrats if you are! Anyway, I keep coming back to IceWM though I'm enjoying Fluxbox at the moment--never could get it to work till Mandrake 10.1....
Only a maintainer of some docs and website.
IceWM is also a reason why I needed to work with xpm images and found I can not save them.
 
Old 11-30-2004, 09:27 AM   #11
jonr
Senior Member
 
Registered: Jan 2003
Location: Kansas City, Missouri, USA
Distribution: Ubuntu
Posts: 1,040

Original Poster
Rep: Reputation: 47
Quote:
Originally posted by covex
There is no easy way to fix it, it is a bug in libXpm, hence without recompiling X, or atleast libXpm you can not fix it. I expect it to be fixed in next update of mandrake xorg package... but dono when it will be.



Only a maintainer of some docs and website.
IceWM is also a reason why I needed to work with xpm images and found I can not save them.
Well, covex, thanks very much for the confirmation that this is not something to waste time on anymore. That's sometimes the most helpful kind of answer.

If you find out one of these days that a fix is ready (and doable by a normal user like me!), I hope you'll post a thread about it, or send me a private message.

Thanks again and good luck with your Web work!
 
Old 11-30-2004, 12:28 PM   #12
Tormented
Member
 
Registered: Feb 2003
Location: ???
Distribution: Mandriva 2006
Posts: 92

Rep: Reputation: 15
There are fixed packages for libxpm in Mandrake Update now.
 
Old 11-30-2004, 01:19 PM   #13
jonr
Senior Member
 
Registered: Jan 2003
Location: Kansas City, Missouri, USA
Distribution: Ubuntu
Posts: 1,040

Original Poster
Rep: Reputation: 47
Quote:
Originally posted by Tormented
There are fixed packages for libxpm in Mandrake Update now.
I updated my urpmi sources this morning (urpmi.udate -a) and then ran MandrakeUpdate and was told
nothing to update.

What am I doing wrong?
 
Old 11-30-2004, 02:39 PM   #14
Tormented
Member
 
Registered: Feb 2003
Location: ???
Distribution: Mandriva 2006
Posts: 92

Rep: Reputation: 15
The mirror you're using probably wasn't updated with the new packages when you checked it. Wait a couple of hours and try again.
The new packages are libxpm4-3.4k-28.2.101mdk and libxpm4-devel-3.4k-28.2.101mdk.
 
Old 11-30-2004, 04:05 PM   #15
jonr
Senior Member
 
Registered: Jan 2003
Location: Kansas City, Missouri, USA
Distribution: Ubuntu
Posts: 1,040

Original Poster
Rep: Reputation: 47
Quote:
Originally posted by Tormented
The mirror you're using probably wasn't updated with the new packages when you checked it. Wait a couple of hours and try again.
The new packages are libxpm4-3.4k-28.2.101mdk and libxpm4-devel-3.4k-28.2.101mdk.
Hey, thanks! That worked--after I got me a new "update" medium source. I'd read in another thread in LQ that the "proxad" mirror in France is very up-to-date and reliable, so I deleted my U. S. source and replaced it with proxad, and was able to get the new libraries.

And now I can manipulate .xpm files!

Happy ending (till the next thing goes wrong).
 
  


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
Slack 10.1/Gimp/.xpm Any Luck? jong357 Slackware 5 04-03-2005 09:57 PM
Gimp 2.2.2 file open/save dialogues mbeattie74 Linux - Software 10 01-18-2005 08:00 PM
gimp cant save xpm doralsoral Linux - Software 2 11-21-2004 05:22 PM
Altering the appearance of the taskbar ? I can't find the .xpm file lostboy Linux - General 2 05-21-2003 06:30 PM
GIMP and xpm nu2linux Linux - Newbie 1 08-02-2002 01:22 AM


All times are GMT -5. The time now is 09:04 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration