bugGNUstep - Bugs: bug #15992, ProjectCenter: Crash when opening...

Group
 
 

bug #15992: ProjectCenter: Crash when opening a file without having a project opened already

Submitter:  Nikolaus Waxweiler <madleser>
Submitted:  Sat 04 Mar 2006 06:41:13 PM UTC
   
 
Category:  Application Severity:  3 - Normal
Item Group:  Bug Status:  Fixed
Privacy:  Public Assigned to:  stoyan
Open/Closed:  Closed
* Mandatory Fields

Add a New Comment Rich Markup
   

Tue 05 Feb 2008 12:01:18 AM UTC, comment #5: 

Close as fixed.

Sergii Stoian <stoyan>
Group Member
Mon 21 Jan 2008 10:48:47 PM UTC, comment #4: 

Fixed in SVN. Check please.

Sergii Stoian <stoyan>
Group Member
Thu 24 Aug 2006 07:22:30 PM UTC, comment #3: 

patch that fixes the problem for me.
openFileInEditor now always returns editor, not only when ProjectCenter is used as the editor.

Sebastian Reitenbach <buzzdee>
Group Member
Mon 21 Aug 2006 06:37:20 PM UTC, comment #2: 

I have following versions installed:
gnustep-back-0.10.3.tar.gz
gnustep-base-1.12.0.tar.gz
gnustep-gui-0.10.3.tar.gz
gnustep-make-1.12.0.tar.gz
ProjectCenter-0.4.3

Sebastian Reitenbach <buzzdee>
Group Member
Mon 21 Aug 2006 06:32:41 PM UTC, comment #1: 

ran into the same bug, but it doesnt matter wheter a project is open or not.
GNUSTEP_FLATTENED=yes
GNUSTEP_HOST=i386-unknown-openbsd3.9
GNUSTEP_HOST_CPU=ix86
GNUSTEP_HOST_OS=openbsd3.9
GNUSTEP_HOST_VENDOR=unknown
GNUSTEP_LOCAL_ROOT=/usr/GNUstep/Local
GNUSTEP_MAKEFILES=/usr/GNUstep/System/Library/Makefiles
$ gcc -v
Reading specs from /usr/lib/gcc-lib/i386-unknown-openbsd3.9/3.3.5/specs
Configured with:
Thread model: single
gcc version 3.3.5 (propolice)

editor is set to:
/usr/GNUstep/System/Applications/vi.app
vi Window opens, then the window, informing about the exception pops up.
Using the default editor ProjectCenter, then PC does not crash.


Program exited with code 01.
(gdb) r
Starting program: /usr/GNUstep/System/Applications/ProjectCenter.debug/ProjectCenter
Breakpoint 1 at 0x50d2f91: file NSException.m, line 147.

Breakpoint 1, -[NSException raise] (self=0x8208aa68, _cmd=0x250e9260) at NSException.m:147
147       thread = GSCurrentThread();
(gdb) list
142     - (void) raise
143     {
144       NSThread      *thread;
145       NSHandler     *handler;
146
147       thread = GSCurrentThread();
148       handler = thread->_exception_handler;
149       if (handler == NULL)
150         {
151           static    BOOL    recursion = NO;
(gdb) bt
#0  -[NSException raise] (self=0x8208aa68, _cmd=0x250e9260) at NSException.m:147
#1  0x0506acfa in -[GSMutableDictionary setObject:forKey:] (self=0x8172f188, _cmd=0x20d86b68, anObject=0x0,
    aKey=0x7c5f1b08) at GSDictionary.m:407
#2  0x00d8d0cf in -[PCProjectManager openFileWithEditor:] (self=0x8b1a2208, _cmd=0x20d86d40, path=0x7c5f1b08)
    at PCProjectManager.m:1028
#3  0x00d8ccbc in -[PCProjectManager openFile] (self=0x8b1a2208, _cmd=0x3c006628) at PCProjectManager.m:961
#4  0x1c002438 in -[PCMenuController fileOpen:] (self=0x7f9d7208, _cmd=0x7fc54f60, sender=0x82f84288)
    at PCMenuController.m:152
#5  0x0fced573 in L10 () from /usr/local/lib/libavcall.so.0.0
#6  0x7f9d7208 in ?? ()
#7  0x7fc54f60 in ?? ()
#8  0x82f84288 in ?? ()
#9  0x00000000 in ?? ()
(gdb)

Critical Error in ProjectCenter
NSInvalidArgumentException: Tried to add nil value for key '/path/to/file/that/I/wanted/to/open/file.h' to dictionary

ABORT Button

(gdb) c
Continuing.

Breakpoint 1, -[NSException raise] (self=0x8208aa68, _cmd=0x2b3f2248) at NSException.m:147
147       thread = GSCurrentThread();
(gdb) list
142     - (void) raise
143     {
144       NSThread      *thread;
145       NSHandler     *handler;
146
147       thread = GSCurrentThread();
148       handler = thread->_exception_handler;
149       if (handler == NULL)
150         {
151           static    BOOL    recursion = NO;
(gdb) bt
#0  -[NSException raise] (self=0x8208aa68, _cmd=0x2b3f2248) at NSException.m:147
#1  0x0b3fc55b in _NSAppKitUncaughtExceptionHandler (exception=0x8208aa68) at NSApplication.m:135
#2  0x050d2fec in -[NSException raise] (self=0x8208aa68, _cmd=0x250e9260) at NSException.m:173
#3  0x0506acfa in -[GSMutableDictionary setObject:forKey:] (self=0x8172f188, _cmd=0x20d86b68, anObject=0x0,
    aKey=0x7c5f1b08) at GSDictionary.m:407
#4  0x00d8d0cf in -[PCProjectManager openFileWithEditor:] (self=0x8b1a2208, _cmd=0x20d86d40, path=0x7c5f1b08)
    at PCProjectManager.m:1028
#5  0x00d8ccbc in -[PCProjectManager openFile] (self=0x8b1a2208, _cmd=0x3c006628) at PCProjectManager.m:961
#6  0x1c002438 in -[PCMenuController fileOpen:] (self=0x7f9d7208, _cmd=0x7fc54f60, sender=0x82f84288)
    at PCMenuController.m:152
#7  0x0fced573 in L10 () from /usr/local/lib/libavcall.so.0.0
#8  0x7f9d7208 in ?? ()
#9  0x7fc54f60 in ?? ()
#10 0x82f84288 in ?? ()
#11 0x00000000 in ?? ()
(gdb) c
Continuing.
recursion encountered handling uncaught exception

Program exited with code 01.


Sebastian Reitenbach <buzzdee>
Group Member
Sat 04 Mar 2006 06:41:13 PM UTC, original submission:  

Do Command-o or File->Open and open some file.
-> The file is opened in a text editor and PC throws a NSInvalidArgumentException: "Tried to add nil value for key '<filepath>' to dictionary". Abort.
GDB doesn't catch any signals. In a way, this seems to be similar to bug #3367.

FreeBSD 6.0, gcc 3.4.4 [FreeBSD] 20050518, gnustep-back-0.10.2, gnustep-base-1.11.2_1, gnustep-gui-0.10.2_2, gnustep-make-1.11.2_1, ProjectCenter 0.4.3

Nikolaus Waxweiler <madleser>

 

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

Attach Files:
   
   
Comment:
   

Attached Files
file #10583:  patch.PCProjectEditor.m-openFileInEditor added by buzzdee (651B - application/octet-stream - patch that fixes the problem for me)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by stoyan (Posted a comment)
  •  

    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 6 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2008-02-05 stoyan Open/ClosedOpen Closed
    2008-01-21 stoyan StatusIn Progress Fixed
    2006-09-05 stoyan StatusNone In Progress
        Assigned toNone stoyan
    2006-08-24 buzzdee Attached File- Added patch.PCProjectEditor.m-openFileInEditor, #10583
    2006-08-21 buzzdee Carbon-Copy- Added buzzdee

    Back to the top

    Powered by Savane 3.13-758e.
    Corresponding source code