bugGNUstep - Bugs: bug #34481, GNUstep seems to release...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #34481: GNUstep seems to release top-level-nib objects although it shouldn't

Submitted by:  julian <julian_>
Submitted on:  Wed 05 Oct 2011 12:57:34 PM UTC  
 
Category: Gui/AppKitSeverity: 3 - Normal
Item Group: BugStatus: Fixed
Privacy: PublicAssigned to: Fred Kiefer <FredKiefer>
Open/Closed: Closed

Tue 25 Oct 2011 12:42:57 PM UTC, comment #3:

its fixed, thanks.

julian <julian_>
Mon 24 Oct 2011 02:54:49 PM UTC, comment #2:

I just committed a rewrite of the XIB loading that should fix this issue (and a few others). Please give it a try.

Fred Kiefer <FredKiefer>
Project MemberIn charge of this item.
Wed 05 Oct 2011 01:21:02 PM UTC, comment #1:

sending the top level xib objects an extra retain in awakeFromNib: "fixes" the issue, but this shouldn't be needed.

julian <julian_>
Wed 05 Oct 2011 12:57:34 PM UTC, original submission:

GNUstep handling of top-level-nib objects doesn't seem to match Cocoa. in Cocoa, top-level-nib objects are retained, and the application is responsible for releasing them. in GNUstep the objects don't seem to be retained.

attached is a small sample project to illustrate the issue.
awakeFromNib starts a timer and after 4.5 seconds a method wants to add a top-level-object from the nib, a NSBox to the window. in cocoa this works just fine, in gnustep this crashes because the box already has been deallocated.

i can't believe that something so fundamental is broken in gnustep, perhaps it only occurs for XIB files?

julian <julian_>

 

Attached Files
file #24101:  gnustepbug.tar.gz added by julian_ (169KiB - application/x-gzip)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by FredKiefer (Posted a comment)
  • -unavailable- added by julian_ (Voted in favor of this item)
  • -unavailable- added by julian_ (Submitted the item)
  •  

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

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 7 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Tue 01 Nov 2011 07:15:59 PM UTCFredKieferStatusReady For Test=>Fixed
      Open/ClosedIn Test=>Closed
    Mon 24 Oct 2011 02:54:49 PM UTCFredKieferStatusNone=>Ready For Test
      Assigned toNone=>FredKiefer
      Open/ClosedOpen=>In Test
    Wed 05 Oct 2011 12:57:53 PM UTCjulian_Carbon-Copy-=>Added julian_
    Wed 05 Oct 2011 12:57:34 PM UTCjulian_Attached File-=>Added gnustepbug.tar.gz, #24101

    Back to the top


    Powered by Savane 3.1-cleanup1