bugPSPP - Bugs: bug #31511, Crashes on launch when built...

 
 

bug #31511: Crashes on launch when built against Gtk+2.22

Submitted by:  Fredrik Clementz <clementz>
Submitted on:  Mon 01 Nov 2010 04:00:17 PM UTC  
 
Category:  Compilation/Portability Severity:  5 - Average
Status:  Fixed Assigned to:  None
Open/Closed:  Closed Release:  None
Effort:  0.00

Add a New Comment (Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

( Jump to the original submission)

Sat 07 May 2011 04:40:19 PM UTC, comment #23: 

>Thanks! file #23362 is ideal solution! It fixed problem.


Thank you for testing it out.  I pushed this fix.

Ben Pfaff <blp>
Project Administrator
Sat 07 May 2011 07:47:53 AM UTC, comment #22: 
Mindaugas <embar>
Sat 07 May 2011 04:44:51 AM UTC, comment #21: 

>The patch that Mindaugas linked to might be a more reliable. We'd have to translate it to C.


OK, I did that and posted it to pspp-dev, also attached below.

Can someone confirm that this fixes the problem?  Thanks.

(file #23362)

Ben Pfaff <blp>
Project Administrator
Fri 06 May 2011 06:53:04 PM UTC, comment #20: 

The underlying problem isn't the recent manager per se.  It seems to be something to do with the icon factory.   The problem was particularly noticable because it occurs at startup.  Removing the recent files manager avoids the crash at startup, but I'm somewhat worried that it could be provoked by some other situation.

The patch that Mindaugas linked to might be a more reliable.  We'd have to translate it to C.

John Darrington <jmd>
Project Administrator
Fri 06 May 2011 04:09:23 PM UTC, comment #19: 

>But better solution would be to somehow test if problematic icon is accessible... It is possible?


I don't know.

I'd suggest just upgrading to GTK+ 2.24 if recent documents are important.

Ben Pfaff <blp>
Project Administrator
Fri 06 May 2011 11:43:16 AM UTC, comment #18: 

But better solution would be to somehow test if problematic icon is accessible... It is possible?

Mindaugas <embar>
Fri 06 May 2011 11:34:23 AM UTC, comment #17: 

Thanks, with patch I don't see recent files.


Mindaugas <embar>
Fri 06 May 2011 02:22:11 AM UTC, comment #16: 

>How about just not using the GtkRecentManager on GTK+ 2.22?


I posted a patch to pspp-dev that implements this solution.  Please look at it and test it.

Ben Pfaff <blp>
Project Administrator
Thu 05 May 2011 05:13:06 PM UTC, comment #15: 

>We could just solve this by insisting on Gtk+ 2.24 or we could remove the recent files menu items, or we could try to patch the broken Gtk install in pspp's make install target.


How about just not using the GtkRecentManager on GTK+ 2.22?  I think that would be pretty easy to do; if you think it is an acceptable solution then I will implement it.

Ben Pfaff <blp>
Project Administrator
Thu 05 May 2011 06:28:54 AM UTC, comment #14: 

>> I guess this one can be closed.


> Great, thank you. I'm closing it.


I'm not so sure.   Any recent version of psppire built against Gtk+ 2.22.x still has the possibility to crash (depending on what the chosen icon theme is).

We could just solve this by insisting on Gtk+ 2.24 or we could remove the recent files menu items, or we could try to patch the broken Gtk install in pspp's make install target.

I'm not sure that I like any of those solutions.

Re-opening this item.

John Darrington <jmd>
Project Administrator
Wed 04 May 2011 09:51:41 PM UTC, comment #13: 

> I guess this one can be closed.


Great, thank you.  I'm closing it.

Ben Pfaff <blp>
Project Administrator
Wed 04 May 2011 09:24:30 PM UTC, comment #12: 

I guess this one can be closed.

Harry Thijssen <unknown_one>
Mon 18 Apr 2011 01:16:39 PM UTC, comment #11: 

This bug is no longer actual for me.
I removed gtk2-branding-openSUSE package from my openSUSE 11.4 and installed this gtk2-branding-openSUSE package again.
Now in /etc/gtk-2.0/gtkrc file I see:

gtk-theme-name = "Sonar"
gtk-icon-theme-name = "Gilouche"
gtk-fallback-icon-theme = "gnome"

The last line is most important.
I will add gtk2-branding-openSUSE package as required for openSUSE packages.

Mindaugas <embar>
Sat 16 Apr 2011 10:58:56 AM UTC, comment #10: 

It's a nasty hack, but looks like it might be the only way to fix it (unless we just say don't build against Gtk+-2.22).

John Darrington <jmd>
Project Administrator
Fri 15 Apr 2011 06:55:30 AM UTC, comment #9: 

Inkscape also had this problem ("Gtk:ERROR:gtkrecentmanager.c:1942:get_icon_fallback: assertion failed: (retval != NULL)") some time ago. They made workaroud with this patch:

https://bugs.launchpad.net/inkscape/+bug/651678/+attachment/1756950/+files/copy_renamed_icons.patch

As described in https://bugs.launchpad.net/inkscape/+bug/651678/comments/38 by Jon A. Cruz: "Simple work-around to get copies of the renamed file and directory icons in so that the recent manager will not crash."

AND later they fixed this by https://launchpadlibrarian.net/65116550/9745_9744.diff or https://launchpadlibrarian.net/65611005/inkscape_0.48.0-1ubuntu1.2.debdiff (see https://bugs.launchpad.net/inkscape/+bug/658055)

Mindaugas <embar>
Sun 10 Apr 2011 10:01:57 AM UTC, comment #8: 

I"m fairly sure this is the same problem as reported in bug #32771

Let's summarize:
  * The problem seems to be apparent only with Gtk+-2.22.  Neither 2.20 nor 2.24 are affected.  So it seems reasonable to assume that the bug is a Gtk problem,  not a pspp problem per se.  That said, we  should try to work around it if possible.
  * It seems to happen only when there is data in the recently-used file record.
  * Deleting recently-used.xbel seems to avoid the problem.
  * Creating the file  /usr/share/icons/oxygen/16x16/mimetypes/gtk-file.png also seems to fix it - or changing the icon theme.

John Darrington <jmd>
Project Administrator
Sun 10 Apr 2011 08:37:59 AM UTC, comment #7: 

The problem is a toolchain issue and not a PSPP. At the moment I don't know if it is solved in the toolchain. But for PSPP it can be closed. However I have no rights to close it.

Harry Thijssen <unknown_one>
Sun 10 Apr 2011 12:14:47 AM UTC, comment #6: 

Harry, based on your remarks in comment #5, it sounds like this problem was fixed.  Is that right?  If so, please close this bug.

Ben Pfaff <blp>
Project Administrator
Wed 17 Nov 2010 10:04:50 PM UTC, comment #5: 

Thanks to Fredrik Clementz I now have a recently-used.xbel which causes a crash of PSPP on my system.

It has to do something with the versions of the used toolchain during the build and the .recently-used.xbel file as already suggested by John.

For people who have a problem with the 2010-10-30 version, un-install it and install the most recent version of pspp. If un-installing is not possible, just delete the c:\program files\pspp directory and install the most recent version.

Harry Thijssen <unknown_one>
Mon 15 Nov 2010 03:20:37 PM UTC, comment #4: 

Could someone with this problem check the next 3 tests and report the results?

test 1)
   del %userprofile%\.recently-used.xbel
   mkdir %userprofile%\.recently-used.xbel
   check wif PSPP now works.
this is maybe a temporary workaround but it could interfere with other programs.
After finishing the test
    rd %userprofile%\.recently-used.xbel

test 2)
add
  gtk-recent-files-limit = 0
  gtk-recent-files-max-age = 0
as the first 2 lines in ..\PSPP|share\themes\MS-Windows\GTK-2.0\gtkrc
Test what the effect is.

test 3)
- Uninstall the current PSPP version
- Download the test version
http://ovh.dl.sourceforge.net/project/pspp4windows/dont_use_this.exe
- install and look if it works
- if not, del %userprofile%\.recently-used.xbel  and try again

Finally:
If you can't get PSPP working again, recovery from all situations should be:
- Uninstall PSPP
- if uninstalling is not successful, delete the map where PSPP is installed.
- del %userprofile%\.recently-used.xbel
- install the 2010-09-08 version again.

Harry Thijssen <unknown_one>
Sat 13 Nov 2010 07:42:07 AM UTC, comment #3: 

Thanx for the report

At this moment I have no other solution as uninstalling PSPP and download the 2010908 version and use that one.

Have fun

Harry Thijssen <unknown_one>
Fri 12 Nov 2010 11:51:58 PM UTC, comment #2: 

I just installed pspp and was able to
run a simple data+command file during the initial session.
closed up, then tried to relaunch immediately via shortcut.
Similar error: 'caused runtime to terminate'
with suggestion to contact application's author.
Advice?
(other than reinstall?)
thanks.

ra kozinski <rozkoz>
Tue 02 Nov 2010 04:37:58 PM UTC, comment #1: 

Hi

Unfortunately I couldn't reproduce this. Not as a clean install nor as an update.

Can you try to uninstall PSPP (if necessary delete the pspp map in program files), download it again, and install it again?

Can you reproduce it on another PC?

Have fun

Harry Thijssen <unknown_one>
Mon 01 Nov 2010 04:00:17 PM UTC, original submission:  

AFter installing the last build of PSPPire for Windows
https://sourceforge.net/projects/pspp4windows/files/2010-10-30/pspp-master-20101030-Setup.exe/download

and trying to launch. It doesn't start at all but crash immediately after running psppire.exe. Installed default way in default folder.

Error message is "Runtime Error!" ..... the usual.

Bug found in Win XP Sp3 32bit.

Fredrik Clementz <clementz>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

Attached Files
file #23357:  PSPP without recent menu.png added by embar (140KiB - image/png - No recent menu)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by embar (Posted a comment)
  • -email is unavailable- added by jmd (Posted a comment)
  • -email is unavailable- added by blp (Posted a comment)
  • -email is unavailable- added by rozkoz (Posted a comment)
  • -email is unavailable- added by unknown_one (Posted a comment)
  • -email is unavailable- added by clementz (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

     

     

    Follow 12 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2011-05-07 blp StatusReady for Test/Review => Fixed
        Open/ClosedOpen => Closed
    2011-05-07 blp Attached File- => Added 0001-gui-Add-workaround-for-GTK-2.20-crash-at-startup.patch, #23362
    2011-05-06 embar Attached File- => Added PSPP without recent menu.png, #23357
    2011-05-06 blp StatusNone => Ready for Test/Review
    2011-05-05 jmd StatusFixed => None
        Open/ClosedClosed => Open
        SummaryPSPPIre 0.7.6 crashes on launch => Crashes on launch when built against Gtk+2.22
    2011-05-04 blp StatusNeed Info => Fixed
        Open/ClosedOpen => Closed
    2011-04-10 blp CategoryNone => Compilation/Portability
        StatusNone => Need Info

    Back to the top


    Powered by Savane 3.5