bug-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSWorkspace bug


From: Enrico Sersale
Subject: Re: NSWorkspace bug
Date: Tue, 22 Jan 2002 14:06:38 +0200 (EET)

On Tue, 22 Jan 2002, Richard Frith-Macdonald wrote:

>
> On Tuesday, January 22, 2002, at 11:21 AM, Enrico Sersale wrote:
>
> >
> > After the last changes, calling NSWorkspace's
> > [getInfoForFile:application:type:], crashes the app.
> >
>
> Well, the line numbers reported don't tie up, so I suspect that you don't
> have the latest source (so I'm not sur what changes you are referring
> to).

These:

2002-01-22 Richard Frith-Macdonald <rfm@gnu.org>

  * Source/NSWorkspace.m: Many tidyups and little fixes, major change
  to -getBestApp... so that it picks the best available app rather
  than just the one specifed by the user as 'best'.  This means you can
  always use it to get an app even if the user has set no preference.

I've just updated from CVS.

> Assuming the stack traceback is correct, the getBestIconForExtension:
> method is calling a method on an object which doesn't know about it.
> I can't see how that could happen really.
>
> However ... the getInfoForFile:application:type: method does not call
> getBestIconForExtension: either in the latest source or in source I have
> lying around from a couple of weeks ago.
>
> Perhaps you have some old or corrupt code?

I don't think so, because I've just reinstalled all the stuff, make, base,
gui and xgps from fresh sources.

I try to send all the trace:

#0  0x403d861c in -[NSException raise] (self=0x85e9440, _cmd=0x404b3c10)
    at NSException.m:169
#1  0x403d8304 in +[NSException raise:format:arguments:] (self=0x404b3b80,
    _cmd=0x404b3bf8, name=0x819bfd8, format=0x404bb418,
argList=0xbfffe4ac)
    at NSException.m:129
#2  0x403d8247 in +[NSException raise:format:] (self=0x404b3b80,
    _cmd=0x404bac18, name=0x819bfd8, format=0x404bb418) at
NSException.m:115
#3  0x403f69fe in -[NSObject doesNotRecognizeSelector:] (self=0x402d12c0,
    _cmd=0x404bac50, aSelector=0x402d1e50) at NSObject.m:810
#4  0x403f6b71 in -[NSObject forwardInvocation:] (self=0x402d12c0,
    _cmd=0x8124d68, anInvocation=0x85e9360) at NSObject.m:827
#5  0x404503ba in GSInvocationCallback (callback_data=0x404d2a60,
    args=0xbfffe5f4) at GSFFCallInvocation.m:863
#6  0x40506ab9 in __vacall_r () at eval.c:41
#7  0x401dfb68 in -[NSWorkspace(GNUstep) getBestAppInRole:forExtension:] (
    self=0x8351808, _cmd=0x402d17e0, role=0x0, ext=0x85e9500)
    at NSWorkspace.m:1022
#8  0x401de384 in -[NSWorkspace getInfoForFile:application:type:] (
    self=0x8351808, _cmd=0x80f6ef0, fullPath=0x822d670,
appName=0xbfffe778,
    type=0xbfffe774) at NSWorkspace.m:539
#9  0x805a5ce in -[IconViewsIcon initForPaths:inContainer:]
(self=0x85e9100,
    _cmd=0x80fd2d8, fpaths=0x822d628, acontainer=0x8590e10)
    at IconViewsIcon.m:82
#10 0x8066bef in -[ShelfIcon initForPaths:inContainer:] (self=0x85e9100,
    _cmd=0x810edb0, fpaths=0x822d628, acontainer=0x8590e10)
    at Shelf/ShelfIcon.m:51
#11 0x8090f2a in -[DesktopViewIcon initForPaths:atPosition:inContainer:] (
    self=0x85e9100, _cmd=0x810db60, fpaths=0x822d628, pos={x = 300, y =
105},
    acontainer=0x8590e10) at Desktop/DesktopViewIcon.m:46
#12 0x808d6b5 in -[DesktopView addIconWithPaths:atPosition:]
(self=0x8590e10,
    _cmd=0x810daa8, iconpaths=0x822d628, pos={x = 300, y = 105})
    at Desktop/DesktopView.m:203
#13 0x808d247 in -[DesktopView init] (self=0x8590e10, _cmd=0x404baba8)
    at Desktop/DesktopView.m:149
#14 0x403f6319 in +[NSObject new] (self=0x810d0e0, _cmd=0x810cc80)
    at NSObject.m:648
#15 0x808c3cc in -[DesktopWindow init] (self=0x8590098, _cmd=0x80f2dd0)
    at Desktop/DesktopWindow.m:48
#16 0x8054228 in -[GWorkspace showDesktop:] (self=0x8253ee8,
_cmd=0x80f2020,
    sender=0x0) at GWorkspace.m:1209
#17 0x804e2f4 in -[GWorkspace applicationDidFinishLaunching:]
(self=0x8253ee8,
    _cmd=0x4027f810, aNotification=0x83a1210) at GWorkspace.m:243
#18 0x403eb1ee in -[NSNotificationCenter postNotification:]
(self=0x819a678,
    _cmd=0x404b7f00, notification=0x83a1210) at
NSNotificationCenter.m:1083
#19 0x403eb298 in -[NSNotificationCenter postNotificationName:object:] (
    self=0x819a678, _cmd=0x4027ec28, name=0x402d6620, object=0x813b3c0)
    at NSNotificationCenter.m:1111
#20 0x400b9f1e in -[NSApplication finishLaunching] (self=0x813b3c0,
    _cmd=0x4027edd8) at NSApplication.m:700
#21 0x400bab85 in -[NSApplication run] (self=0x813b3c0, _cmd=0x80f04b8)
    at NSApplication.m:895
#22 0x804c435 in main (argc=1, argv=0xbfffed34, env=0xbfffed3c) at
main.m:42
#23 0x40583091 in __libc_start_main (main=0x804c2f0 <main>, argc=1,
    ubp_av=0xbfffed34, init=0x804c020 <_init>, fini=0x80af320 <_fini>,
    rtld_fini=0x4000e374 <_dl_fini>, stack_end=0xbfffed2c)
---Type <return> to continue, or q <return> to quit---
    at ../sysdeps/generic/libc-start.c:129





reply via email to

[Prev in Thread] Current Thread [Next in Thread]