Daniel Leidert | 1 Feb 2011 20:00
Picon

Crash report and missing localization on MacOSX (was: bluefish)

Hi Olivier (cc-ed),

This is the mail I got from a German Mac user. I will translate inline:

-------- Weitergeleitete Nachricht --------
[..]
> Problem: Bluefish 2.0.2 (Final-Version vom 16.09.2010) startet nicht auf Intel Mac, MacOS X 10.5.8, deutsch.

Bluefish 2.0.2 doesn't start on Intel Mac, MacOS X 10.5.8, German.

> Beim Startversuch erscheint jedesmal die Fehlermeldung

There is always the same error message ...

> "Das Programm Bluefish wurde unerwartet beendet

"The program ... died unexpectedly ...

>  ... unknown required load command 0x80000022" und, wenn aufgerufen,
> folgender Fehlerbericht (relevanter Auszug):

... showing the following report:

> Process:	bluefish [218]
> Path:	 /Applications/Bluefish.app/Contents/MacOS/launcher.sh
> Identifier:	nl.openoffice.bluefish
> Version:	??? (???)
> Code Type:	X86 (Native)
> Parent Process:	launchd [96]
> ...
(Continue reading)

Olivier Sessink | 1 Feb 2011 21:44
Picon
Gravatar

Re: Crash report and missing localization on MacOSX (was: bluefish)

currently the binary only works on Mac OSX 10.6.

danke für die ubersetzung, aber ich spreche gut genug Deutsch um das 
selber zu lesen ;-)

tschüss,

Olivier

On 02/01/2011 08:00 PM, Daniel Leidert wrote:
> Hi Olivier (cc-ed),
>
> This is the mail I got from a German Mac user. I will translate inline:
>
> -------- Weitergeleitete Nachricht --------
> [..]
>> Problem: Bluefish 2.0.2 (Final-Version vom 16.09.2010) startet nicht auf Intel Mac, MacOS X 10.5.8, deutsch.
>
> Bluefish 2.0.2 doesn't start on Intel Mac, MacOS X 10.5.8, German.
>
>> Beim Startversuch erscheint jedesmal die Fehlermeldung
>
> There is always the same error message ...
>
>> "Das Programm Bluefish wurde unerwartet beendet
>
> "The program ... died unexpectedly ...
>
>>   ... unknown required load command 0x80000022" und, wenn aufgerufen,
>> folgender Fehlerbericht (relevanter Auszug):
(Continue reading)

Peter Moll | 1 Feb 2011 22:02
Picon
Favicon

Re: Crash report and missing localization on MacOSX (was: bluefish)

I don't know if it has gone unnoticed, but I posted a solution ( I think :-) to this problem in this bug report:
https://bugzilla.gnome.org/show_bug.cgi?id=632592 .

Peter
Op 1 feb 2011, om 21:44 heeft Olivier Sessink het volgende geschreven:

> currently the binary only works on Mac OSX 10.6.
> 
> danke für die ubersetzung, aber ich spreche gut genug Deutsch um das selber zu lesen ;-)
> 
> tschüss,
> 
> Olivier
> 
> On 02/01/2011 08:00 PM, Daniel Leidert wrote:
>> Hi Olivier (cc-ed),
>> 
>> This is the mail I got from a German Mac user. I will translate inline:
>> 
>> -------- Weitergeleitete Nachricht --------
>> [..]
>>> Problem: Bluefish 2.0.2 (Final-Version vom 16.09.2010) startet nicht auf Intel Mac, MacOS X 10.5.8, deutsch.
>> 
>> Bluefish 2.0.2 doesn't start on Intel Mac, MacOS X 10.5.8, German.
>> 
>>> Beim Startversuch erscheint jedesmal die Fehlermeldung
>> 
>> There is always the same error message ...
>> 
>>> "Das Programm Bluefish wurde unerwartet beendet
(Continue reading)

Olivier Sessink | 2 Feb 2011 08:52
Picon
Gravatar

Re: Crash report and missing localization on MacOSX

On 02/01/2011 10:02 PM, Peter Moll wrote:
> I don't know if it has gone unnoticed, but I posted a solution ( I
> think :-) to this problem in this bug report:
> https://bugzilla.gnome.org/show_bug.cgi?id=632592 .

does that require the OSX 10.5 SDK or will that work with the OSX 10.6 SDK?

Olivier

--

-- 
Bluefish website http://bluefish.openoffice.nl/
Blog http://oli4444.wordpress.com/
Peter Moll | 2 Feb 2011 12:48
Picon
Favicon

Re: Crash report and missing localization on MacOSX

It requires the osx 10.5 sdk when building, but that is installed by default afaik, when you install Xcode.

Op 2 feb 2011, om 08:52 heeft Olivier Sessink het volgende geschreven:

> On 02/01/2011 10:02 PM, Peter Moll wrote:
>> I don't know if it has gone unnoticed, but I posted a solution ( I
>> think :-) to this problem in this bug report:
>> https://bugzilla.gnome.org/show_bug.cgi?id=632592 .
> 
> does that require the OSX 10.5 SDK or will that work with the OSX 10.6 SDK?
> 
> Olivier
> 
> -- 
> Bluefish website http://bluefish.openoffice.nl/
> Blog http://oli4444.wordpress.com/
> -- 
> To unsubscribe from this list: send the line "unsubscribe bluefish-dev" in
> the body of a message to listar@... or visit the list control
panel at http://www.ems.ru/cgi-bin/listargate.cgi
> Bluefish web site: http://bluefish.openoffice.nl/
> 
> 

Olivier Sessink | 2 Feb 2011 20:41
Picon
Gravatar

Re: RFC/RFH: Setting language via preferences not working on Windows

On 01/27/2011 10:46 PM, Daniel Leidert wrote:
[..]
> Another independent issue: We call setlocale() *after* gtk_init() (this
> one is called via gtk_get_option_group()), which is highly discouraged
> by the Gtk+ reference.

while looking at the code to see if we could re-arrange the option 
loading I found out that we don't call gtk_init() at all?

Olivier

--

-- 
Bluefish website http://bluefish.openoffice.nl/
Blog http://oli4444.wordpress.com/
Daniel Leidert | 2 Feb 2011 20:52
Picon

Re: RFC/RFH: Setting language via preferences not working on Windows

Am Mittwoch, den 02.02.2011, 20:41 +0100 schrieb Olivier Sessink:
> On 01/27/2011 10:46 PM, Daniel Leidert wrote:
> [..]
> > Another independent issue: We call setlocale() *after* gtk_init() (this
> > one is called via gtk_get_option_group()), which is highly discouraged
> > by the Gtk+ reference.
> 
> while looking at the code to see if we could re-arrange the option 
> loading I found out that we don't call gtk_init() at all?

As written above, gtk_get_option_group() does this. See also the Gtk+
reference.

Regards, Daniel

Olivier Sessink | 2 Feb 2011 21:36
Picon
Gravatar

Re: RFC/RFH: Setting language via preferences not working on Windows

On 02/02/2011 08:52 PM, Daniel Leidert wrote:
> Am Mittwoch, den 02.02.2011, 20:41 +0100 schrieb Olivier Sessink:
>> On 01/27/2011 10:46 PM, Daniel Leidert wrote:
>> [..]
>>> Another independent issue: We call setlocale() *after* gtk_init() (this
>>> one is called via gtk_get_option_group()), which is highly discouraged
>>> by the Gtk+ reference.
>>
>> while looking at the code to see if we could re-arrange the option 
>> loading I found out that we don't call gtk_init() at all?
> 
> As written above, gtk_get_option_group() does this. See also the Gtk+
> reference.

I did look in the gtk reference and couldn't find any reference for that:
GOptionGroup *      gtk_get_option_group                (gboolean
open_default_display);
Returns a GOptionGroup for the commandline arguments recognized by GTK+
and GDK. You should add this group to your GOptionContext with
g_option_context_add_group(), if you are using g_option_context_parse()
to parse your commandline arguments.

Can you give a reference where I can find more info?

Olivier
Daniel Leidert | 2 Feb 2011 22:06
Picon

Re: RFC/RFH: Setting language via preferences not working on Windows

Am Mittwoch, den 02.02.2011, 21:36 +0100 schrieb Olivier Sessink:
> On 02/02/2011 08:52 PM, Daniel Leidert wrote:
> > Am Mittwoch, den 02.02.2011, 20:41 +0100 schrieb Olivier Sessink:
[..]
> > As written above, gtk_get_option_group() does this. See also the Gtk+
> > reference.
> 
> I did look in the gtk reference and couldn't find any reference for that:
[snip]
> Can you give a reference where I can find more info?

Of course. It is based on my reading of the gtk_init() reference:

gtk_init ()
void                gtk_init                            (int *argc,
                                                         char ***argv);

Call this function before using any other GTK+ functions in your GUI
applications. It will initialize everything needed to operate the
toolkit and parses some standard command line options. argc and argv are
adjusted accordingly so your own code will never see those standard
arguments.

Note that there are some alternative ways to initialize GTK+: if you are
calling gtk_parse_args(), gtk_init_check(),gtk_init_with_args() or g_option_context_parse()
with the option group returned by gtk_get_option_group(), you don't have to call gtk_init().

Regards, Daniel

(Continue reading)

Olivier Sessink | 2 Feb 2011 22:12
Picon
Gravatar

Re: RFC/RFH: Setting language via preferences not working on Windows

On 02/02/2011 09:36 PM, Olivier Sessink wrote:

> Can you give a reference where I can find more info?

never mind, I found it.  g_option_context_parse() will call gtk_init()
if it is called with an option group gtk_get_option_group().

Daniel: did you try the following sequence in your test program :?

gtk_disable_setlocale ();
gtk_init();
putenv() ;
setlocale();
gtk_set_locale ();

this might work but needs some testing..

Another solution might be to move the config file parsing close to the
beginning of main(); It does call various glib functions (Hash tables,
string functions and GList functions mostly), but I don't think glib
needs to be initialized before you can use it.

Olivier

Gmane