bugGNUstep - Bugs: bug #21871, Exception when exporting Gorm file...

Group
 
 

bug #21871: Exception when exporting Gorm file to nib

Submitter:  Philippe Roussel <poroussel>
Submitted:  Sat 22 Dec 2007 02:00:54 PM UTC
   
 
Category:  Gorm Severity:  3 - Normal
Item Group:  Bug Status:  Duplicate
Privacy:  Public Assigned to:  gcasa
Open/Closed:  Closed
* Mandatory Fields

Add a New Comment Rich Markup
   

Fri 28 Dec 2007 04:25:46 PM UTC, comment #3: 

That's correct, they were created by Gorm in older versions.

I'm working on improving that method to the point where it will check on inconsistencies whenever a gorm is loaded.   The reason it's "hidden" is because the method is experimental at this point and I didn't want people using it all of the time.

I'm also aware of the issue with it finding inconsistencies each time.   I believe I know what that is, but I haven't had a chance to correct it.

GJC

Gregory John Casamento <gcasa>
Group administrator
Fri 28 Dec 2007 03:14:34 PM UTC, comment #2: 

Thanks Greg, it works great. However, the inconsistencies are, as far as I know, created by Gorm so it's a little strange to have that 'hidden' parameter to fix them.

Another thing : I can open/save Agenda.gorm (or any other Gorm file of SimpleAgenda for the matter) with GormRepairFileOnLoad YES multiple times, it always finds inconsistencies.

Philippe Roussel <poroussel>
Fri 28 Dec 2007 04:06:30 AM UTC, comment #1: 

This can be corrected by using:

defaults write Gorm GormRepairFileOnLoad YES

and letting Gorm correct the inconsistencies in the file.

Don't run with this turn on yes all of the time, since it's not well tested.

The nib that gets created has some issues.  That's separate from this issue and is being handled in another bug.

Gregory John Casamento <gcasa>
Group administrator
Sat 22 Dec 2007 02:00:54 PM UTC, original submission:  

With svn trunk from 2007/12/22 (and earlier releases too I think) for GNUstep and Gorm, exporting the appended Gorm document to nib gives me the following:

#0  0xb7fea410 in __kernel_vsyscall ()
#1  0xb76089a1 in raise () from /lib/tls/i686/cmov/libc.so.6
#2  0xb760a2b9 in abort () from /lib/tls/i686/cmov/libc.so.6
#3  0xb7bb4b9a in _NSAppKitUncaughtExceptionHandler (exception=0x83d1b48) at NSApplication.m:148
#4  0xb788196c in -[NSException raise] (self=0x83d1b48, _cmd=0xb7ab08a0) at NSException.m:832
#5  0xb7881445 in +[NSException raise:format:arguments:] (self=0xb7ab06a0, _cmd=0xb7ab0888, name=0xb7ab09b8, format=0xb7a8bd30,
    argList=0xbfffdd90 "\020ßb\bØ\226_\b\b\e=\b\b\e=\b`\035") at NSException.m:753
#6  0xb788137d in +[NSException raise:format:] (self=0xb7ab06a0, _cmd=0xb7a8bc00, name=0xb7ab09b8, format=0xb7a8bd30) at NSException.m:739
#7  0xb77db257 in -[GSMutableArray addObject:] (self=0x83d1b28, _cmd=0xb7eaa700, anObject=0x0) at GSArray.m:409
#8  0xb7daed51 in -[NSIBObjectData _valuesForKeys:inMap:] (self=0x875b6f8, _cmd=0xb7eaa740, keys=0x83d1b08, map=0x862df10)
    at GSNibCompatibility.m:1208
#9  0xb7daeefd in -[NSIBObjectData encodeWithCoder:] (self=0x875b6f8, _cmd=0xb7ab90e0, coder=0x857c228) at GSNibCompatibility.m:1224
#10 0xb789a94a in -[NSKeyedArchiver(Private) _encodeObject:conditional:] (self=0x857c228, _cmd=0xb7ab9078, anObject=0x875b6f8,
    conditional=0 '\000') at NSKeyedArchiver.m:338
#11 0xb789d962 in -[NSKeyedArchiver encodeObject:forKey:] (self=0x857c228, _cmd=0xb7fc4c40, anObject=0x875b6f8, aKey=0xb7fc4d44)
    at NSKeyedArchiver.m:619
#12 0xb7f5c5af in -[GormNibWrapperBuilder buildFileWrapperDictionaryWithDocument:] (self=0x8372000, _cmd=0xb7fe2380, doc=0x859b1c8)
    at GormNibWrapperBuilder.m:367
#13 0xb7f90e2b in -[GormWrapperBuilder buildFileWrapperWithDocument:] (self=0x8372000, _cmd=0xb7fae008, doc=0x859b1c8)
    at GormWrapperBuilder.m:50
#14 0xb7f390a2 in -[GormDocument fileWrapperRepresentationOfType:] (self=0x859b1c8, _cmd=0xb7e19d18, type=0x8182c20) at GormDocument.m:3246

This is on Ubuntu 6.10 x86 with gcc 4.0.3.

Tell me if you need more I can try patches if needed.

Philippe Roussel <poroussel>

 

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

Attach Files:
   
   
Comment:
   

Attached Files
file #14683:  agenda.tar.gz added by poroussel (10KiB - 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 gcasa (Updated the item)
  • -email is unavailable- added by poroussel (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 5 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2007-12-28 gcasa StatusIn Progress Duplicate
        Open/ClosedOpen Closed
    2007-12-25 gcasa StatusNone In Progress
        Assigned toNone gcasa
    2007-12-22 poroussel Attached File- Added agenda.tar.gz, #14683

    Back to the top

    Powered by Savane 3.13-02a9.
    Corresponding source code