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

Group
 
 

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

Submitter:  julian <julian_>
Submitted:  Wed 05 Oct 2011 12:57:34 PM UTC
   
 
Category:  Gui/AppKit Severity:  3 - Normal
Item Group:  Bug Status:  Fixed
Privacy:  Public Assigned to:  FredKiefer
Open/Closed:  Closed
* Mandatory Fields

Add a New Comment Rich Markup
   

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>
Group Member
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_>

 

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

Attach Files:
   
   
Comment:
   

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
  • -email is unavailable- added by FredKiefer (Posted a comment)
  • -email is unavailable- added by julian_ (Voted in favor of this item)
  • -email is unavailable- added by julian_ (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follow 7 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2011-11-01 FredKiefer StatusReady For Test Fixed
        Open/ClosedIn Test Closed
    2011-10-24 FredKiefer StatusNone Ready For Test
        Assigned toNone FredKiefer
        Open/ClosedOpen In Test
    2011-10-05 julian_ Carbon-Copy- Added julian_
    2011-10-05 julian_ Attached File- Added gnustepbug.tar.gz, #24101

    Back to the top

    Powered by Savane 3.13-caa5.
    Corresponding source code