bugGNUstep - Bugs: bug #21979, Possible problem loading Mac OS X...

Group
 
 

bug #21979: Possible problem loading Mac OS X Nib

Submitter:  Peter Cooper <comrade>
Submitted:  Mon 07 Jan 2008 10:08:23 PM UTC
   
 
Category:  Gui/AppKit Severity:  3 - Normal
Item Group:  Bug Status:  Fixed
Privacy:  Public Assigned to:  gcasa
Open/Closed:  Closed
* Mandatory Fields

Add a New Comment Rich Markup
   

Jump to the original submission

Mon 03 Mar 2008 10:54:33 PM UTC, comment #6: 

As the original problem and the secondary one both are resolved, we should close this bug now.

Fred Kiefer <FredKiefer>
Group Member
Tue 08 Jan 2008 11:39:55 PM UTC, comment #5: 

If it is the NSObjectController class that fails, then it is easy to guess what goes wrong. Somebody added some code to the initWithCoder: method of NSController, but forgot about the corresponding change to the encodeWithCoder: method. Just adding these few lines should resolve the problem in the future. Already stored Gorm files are of course corrupted.

Fred Kiefer <FredKiefer>
Group Member
Tue 08 Jan 2008 06:47:46 PM UTC, comment #4: 

The failure is happening in NSObjectController when it is unarchiving the file.   I will look further into what's going on in that class.

GJC

Gregory John Casamento <gcasa>
Group administrator
Tue 08 Jan 2008 06:28:46 PM UTC, comment #3: 

Actually, the Nib is now opening. But when I save it as a .gorm file and attempt to re-open, the following error is received:

Failed to load file. Exception: expected object and got unsigned char

I attach a copy of the .gorm file.

Thanks

(file #14771)

Peter Cooper <comrade>
Tue 08 Jan 2008 06:53:03 AM UTC, comment #2: 

Working now. Many thanks!

Peter Cooper <comrade>
Mon 07 Jan 2008 11:54:09 PM UTC, comment #1: 

I reverted a recent change in SVN.  I tested your nib and it should load now.   Please test and comment.

Gregory John Casamento <gcasa>
Group administrator
Mon 07 Jan 2008 10:08:23 PM UTC, original submission:  

Trying to load the following Mac OS X Nib, part of the GraphX project, where some components of the  Nib loaded successfully (several windows), but Gorm remained unresponsive for at least 15 minutes using around 100% CPU.

I'm a bit doubtful that the Nib is actually broken although it's possible. It'd be nice if Gorm didn't respond by consuming endless CPU cycles in the case of broken Nibs either, although that might be a hard issue to resolve in the current Gorm design.

I've attached the Nib in question, (license appears to be CC Attribution 2.5 Generic) perhaps it'll help. Running Gorm in gdb didn't even display over the course of an hour of 100% CPU the windows that normally show up, so no backtrace or other hints, sorry.

Peter Cooper <comrade>

 

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

Attach Files:
   
   
Comment:
   

Attached Files
file #14771:  mainmenu-gorm.tgz added by comrade (10KiB - application/x-compressed-tar)
file #14764:  mainmenu-nib.tgz added by comrade (39KiB - application/x-compressed-tar - Nib file attached)

 

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 gcasa (Posted a comment)
  • -email is unavailable- added by comrade (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 12 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2008-03-04 gcasa Open/ClosedIn Test Closed
    2008-03-03 FredKiefer StatusIn Progress Fixed
        Open/ClosedOpen In Test
    2008-02-17 gcasa CategoryNone Gui/AppKit
        Item GroupNone Bug
    2008-01-08 gcasa StatusFixed In Progress
        Open/ClosedIn Test Open
    2008-01-08 comrade Attached File- Added mainmenu-gorm.tgz, #14771
    2008-01-07 gcasa StatusNone Fixed
        Assigned toNone gcasa
        Open/ClosedOpen In Test
    2008-01-07 comrade Attached File- Added mainmenu-nib.tgz, #14764

    Back to the top

    Powered by Savane 3.13-cf05.
    Corresponding source code