weird way to change backend now

View: New views
2 Messages — Rating Filter:   Alert me  

weird way to change backend now

by Antoine Jacoutot :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi.

(it seems my last mail never wetn through, so here it goes again; sorry
for any dup).


Since last GNUstep update (make, back, gui, base) I have the following
"problem".
Before, I could change my gnustep backend using:
$ defaults write NSGlobalDomain GSBackend back
Now, I need to use:
$ defaults write NSGlobalDomain GSBackend libgnustep-back-016

Otherwize, I get the following error:
2008-12-26 16:21:29.840 Calculator[6895] Did not find correct version of backend, falling back to std.
2008-12-26 16:21:29.842 Calculator[6895] NSApplication.m:286  Assertion
failed in initialize_gnustep_backend.  Unable to find backend back
Calculator: Uncaught exception NSInternalInconsistencyException, reason: NSApplication.m:286  Assertion failed in initialize_gnustep_backend.   Unable to find backend back

Note that I haven't followed development very closely lately, so this
may just be an expected behavior... but I find it weird somehow.

This is under OpenBSD with:
gnustep-back-0.16.0
gnustep-base-1.18.0
gnustep-examples-1.2.0
gnustep-gui-0.16.0
gnustep-make-2.0.7

Cheers!

--
Antoine


_______________________________________________
Help-gnustep mailing list
Help-gnustep@...
http://lists.gnu.org/mailman/listinfo/help-gnustep

Re: weird way to change backend now

by Richard Frith-Macdonald-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


On 27 Dec 2008, at 10:40, Antoine Jacoutot wrote:

> Hi.
>
> (it seems my last mail never wetn through, so here it goes again;  
> sorry
> for any dup).
>
>
> Since last GNUstep update (make, back, gui, base) I have the following
> "problem".
> Before, I could change my gnustep backend using:
> $ defaults write NSGlobalDomain GSBackend back
> Now, I need to use:
> $ defaults write NSGlobalDomain GSBackend libgnustep-back-016
>
> Otherwize, I get the following error:
> 2008-12-26 16:21:29.840 Calculator[6895] Did not find correct  
> version of backend, falling back to std.
> 2008-12-26 16:21:29.842 Calculator[6895] NSApplication.m:286  
> Assertion
> failed in initialize_gnustep_backend.  Unable to find backend back
> Calculator: Uncaught exception NSInternalInconsistencyException,  
> reason: NSApplication.m:286  Assertion failed in  
> initialize_gnustep_backend.   Unable to find backend back

That's odd, because I would expect either of those two settings to  
work since, looking through the code, I see that the GSBackend value  
normally has 'libgnustep-' prepended if it's not already there and  
tries both with '-016' appended (if you are using version 0.16 of the  
library) and not appended.

So, for a setting of 'back' the code looks like it tries 'libgnustep-
back-016' and 'libgnustep-back', while for a setting of 'libgnustep-
back-016' the code should be trying 'libgnustep-back-016-016' and  
'libgnustep-back-016'


If the second setting works and the first doesn't, it would seem to  
imply that the bundle has actually been called 'libgnustep-
back-016-016', which seems very unlikely.

Perhaps your best bet is to run under gdb and set breakpoints in  
initialize_gnustep_backend and gnustep_backend_bundle and try stepping  
thriough those functions to see what is actually going on.


_______________________________________________
Help-gnustep mailing list
Help-gnustep@...
http://lists.gnu.org/mailman/listinfo/help-gnustep