Re: Using Mozilla without DISPLAY set

[email protected] (Christian Smith)
Newsgroups gmane.comp.mozilla.devel.unix
Organization Another Netscape Collabra Server User
Message-ID <[email protected]>
In article <[email protected]>,
	[email protected] (Christian Smith) writes:
> In article <[email protected]>,
> 	Christian Biesinger <[email protected]> writes:
>> Christian Smith wrote:
>>> Now, this occurs if I don't initialise libgtk. If libgtk is initialised, the
>>> crash does not happen. I'll recreate the problem on Linux with a debug build
>>> of Mozilla (1.7.2, BTW) and post more details.
>> 
>> Hm... if I'm using TestProtocols w/o DISPLAY set, it works just fine for 
>> me, it successfully loads http://www.mozilla.org...
> 
> Further investigation reveals that nsAppShell::ListenToEventQueue() adds
> the getNextRequest() function to some callback mechanism in the event queue,
> and nsAppShell::ListenToEventQueue is defined in:
> widget/src/gtk/nsAppShell.cpp
> 
> So the necko and DOM backtraces are just red herrings. I'll try removing
> nsAppShell references from my app when not running under X, and see
> if that helps.


This was indeed the case, and removing the nsAppShell call to the initialize
function worked a treat.


> 
> Cheers,
> Christian
> 

-- 
    /"\ 
    \ /    ASCII RIBBON CAMPAIGN - AGAINST HTML MAIL 
     X                           - AGAINST MS ATTACHMENTS
    / \
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.