[Mono-dev] Trying to use uno binding for mono - OpenOffice.org
Daniel Morgan
monodanmorg at yahoo.com
Tue Oct 17 18:34:08 EDT 2006
Thought others might be interested.
--- Hubert FONGARNAND
<informatique.internet at fiducial.fr> wrote:
> Subject: Re: [Mono-dev] Trying to use uno binding
> for mono
> From: Hubert FONGARNAND
> <informatique.internet at fiducial.fr>
> To: Daniel Morgan <monodanmorg at yahoo.com>
> Date: Tue, 17 Oct 2006 18:14:51 +0200
>
> Miguel has reproduce the problem with the current
> mono... But it does'nt
> seems that my bug is the TLS related one...
> It crashes when I call the bootstrap() function and
> the stack trace is
> not the same as
> http://bugzilla.ximian.com/show_bug.cgi?id=78767
>
> I think it's a recent regression...
>
>
> Le mardi 17 octobre 2006 Ã 08:27 -0700, Daniel
> Morgan a écrit :
>
> > Are you using the included Mono that came with
> Suse
> > Linux or a newer Mono? As far as I know, it has
> > fixed. Unless, its a regression.
> >
> > Have you emailed the Open Office.org mailing
> lists?
> >
> > If you paid for Suse Linux, you may able to get
> > support for this problem.
> >
> > Here is a bug that could be your problem. It
> > supposedly was fixed.
> >
> > http://bugzilla.ximian.com/show_bug.cgi?id=78767
> >
> > If not, maybe you create a new bug?
> >
> > --- Hubert FONGARNAND
> > <informatique.internet at fiducial.fr> wrote:
> >
> > > I've read that "there is a vicious TLS bug in
> Mono
> > > just now that breaks
> > > the OO.o integration" is it true?
> > >
> > > Le lundi 16 octobre 2006 Ã 12:54 -0700, Daniel
> > > Morgan a écrit :
> > >
> > > > You will not get much replies on the mono
> lists.
> > > Try
> > > > the OpenOffice.org Ximian Edition mailing
> list.
> > > >
> > > >
> > >
> http://lists.ximian.com/mailman/listinfo/openoffice
> > > >
> > > > As far as I know, the UNO Bridge for the CLI
> only
> > > > works on .NET/Windows. You need a special UNO
> > > Bridge
> > > > for Mono which is only available via the
> ooo-build
> > > > 680. If you have Suse Linux 10, you may
> already
> > > have
> > > > it. Other distros do not have it unless you
> build
> > > it
> > > > from your distros source of oo. Vanilla oo
> source
> > > > from upstream may not have it.
> > > >
> > > > Also, it may help to join IRC channels #go-oo
> and
> > > > #openoffice.org at irc.freenode.net.
> > > >
> > > > Michael Meeks maybe able to help you.
> > > >
> > > > I've tried using the CLI Bridge with Mono and
> it
> > > fails
> > > > for me too on Windows. This is a shame since
> the
> > > only
> > > > way we are going to go to OpenOffice.org is if
> we
> > > get
> > > > all our .net code working on it.
> > > >
> > > > Currently, Managed C++ is used to build the
> CLI
> > > > Bridge. Michael Meeks suggested to re-write
> the
> > > > Mono/CLI Bridge to emit IL on-the-fly. Maybe
> > > > Mono.Cecil could be used to do this. Or
> CodeDom
> > > or
> > > > Reflection.Emit.
> > > >
> > > > Zoltan has gotten Mono to work with the Mono
> > > Bridge in
> > > > the past. I wonder if he could provide any
> ideas.
> > > >
> > > > And Jonathon Chambers has added code to Mono
> for
> > > COM
> > > > Interop and is researching on how to get
> Mozilla
> > > XPCOM
> > > > to interop as well. He maybe to provide
> insights
> > > into
> > > > getting Mono to interop with UNO.
> > > >
> > > > Martin Kretzschmar was the original programmer
> who
> > > > created the Mono Bridge.
> > > >
> > > >
> > > > --- Hubert FONGARNAND
> > > > <informatique.internet at fiducial.fr> wrote:
> > > >
> > > > > I've installed UNO bindings for C#/mono on
> my
> > > dev
> > > > > machine...
> > > > >
> > > > > When i try to run this
> > > > > public static void Main(string[] args)
> > > > > {
> > > > > Console.WriteLine("Hello World!");
> > > > > MainClass main=new MainClass();
> > > > > main.Run();
> > > > >
> > > > > }
> > > > >
> > > > > private void Run()
> > > > > {
> > > > > mxMSFactory = connect();
> > > > >
> > > > > // Create a new spreadsheet
> document
> > > > > mxDocument = initDocument();
> > > > > }
> > > > >
> > > > >
> > > > > private XMultiServiceFactory connect( )
> > > > > {
> > > > >
> > > > > m_xContext =
> > > > > uno.util.Bootstrap.bootstrap();
> > > > >
> > > > > return (XMultiServiceFactory)
> > > > > m_xContext.getServiceManager();
> > > > > }
> > > > >
> > > > > I get:
> > > > >
> > > > >
> > > > >
> > > > >
> > > > >
> > > >
> > >
> >
>
=================================================================
> > > > > Got a SIGSEGV while executing native code.
> This
> > > > > usually indicates
> > > > > a fatal error in the mono runtime or one of
> the
> > > > > native libraries
> > > > > used by your application.
> > > > >
> > > >
> > >
> >
>
=================================================================
> > > > >
> > > > > Stacktrace:
> > > > >
> > > > > at (wrapper managed-to-native)
> > > > > uno.util.Bootstrap.native_bootstrap ()
> > > > > <0x00004>
> > > > > at (wrapper managed-to-native)
> > > > > uno.util.Bootstrap.native_bootstrap ()
> > > > > <0xffffffff>
> > > > > at uno.util.Bootstrap.bootstrap ()
> <0x0000d>
> > > > > at testoo.MainClass.connect () <0x00012>
> > > > > at testoo.MainClass.Run () <0x00012>
> > > > > at testoo.MainClass.Main (string[])
> <0x00036>
> > > > > at (wrapper runtime-invoke)
> > > > > System.Object.runtime_invoke_void_string[]
> > > > > (object,intptr,intptr,intptr) <0xffffffff>
> > > > >
> > > > > Native stacktrace:
> > > > >
> > > > > mono [0x8162486]
> > > > > mono [0x814c2a3]
> > > > > [0xb7f62440]
> > > > >
> > > > >
> > > >
> > >
> >
>
/usr/lib/openoffice/program/libcli_uno.so(uno_ext_getMapping
> > > > > +0xee) [0xb3f4307e]
> > > > >
> > > /usr/lib/openoffice/program/libuno_cppu.so.3
> > > > > [0xb6fbf634]
> > > > >
> > > /usr/lib/openoffice/program/libuno_cppu.so.3
> > > > > [0xb6fbfbb4]
> > > > >
> > > /usr/lib/openoffice/program/libuno_cppu.so.3
> > > > > [0xb6fbfdac]
> > > > >
> > > > >
> > > >
> > >
> >
>
/usr/lib/openoffice/program/libuno_cppu.so.3(uno_getMapping
> > > > > +0x68c) [0xb6fc0938]
> > > > >
> > > > >
> > > >
> > >
> >
>
/usr/lib/openoffice/program/libuno_cppu.so.3(uno_getMappingByName+0x98)
> > > > > [0xb6fc0abc]
> > > > >
> > > > >
> /usr/lib/openoffice/program/libcli_uno_glue.so
> > > > > [0xb79f27c4]
> > > > >
> > > > >
> /usr/lib/openoffice/program/libcli_uno_glue.so
> > > > > [0xb79f235a]
> > > > >
> > > > >
> > > >
> > >
> >
>
/usr/lib/openoffice/program/libcli_uno_glue.so(native_bootstrap
> > > > > +0x26) [0xb79f2420]
> > > > > [0xb79fd261]
> > > > > [0xb79fd166]
> > > > > [0xb79fd08b]
> > > > > [0xb79fd03b]
> > > > > [0xb79f7877]
> > > > > [0xb79f77c3]
> > > > > mono(mono_runtime_exec_main+0x60)
> > > > > [0x80d6730]
> > > > > mono(mono_runtime_run_main+0x21f)
> > > > > [0x80d6a9f]
> > > > > mono(mono_main+0xf17) [0x8058d77]
> > > > > mono [0x805797e]
> > > > >
> /lib/libc.so.6(__libc_start_main+0xe6)
> > > > > [0xb7d56866]
> > > > > mono(dl_iterate_phdr+0x191)
> [0x80578c1]
> > > > >
> > > > > Debug info from gdb:
> > > > >
> > > > > Using host libthread_db library
> > > > > "/lib/libthread_db.so.1".
> > > > > [Thread debugging using libthread_db
> enabled]
> > > > > [New Thread -1210882368 (LWP 11059)]
> > > > > [New Thread -1267319904 (LWP 11485)]
> > > > > [New Thread -1258861664 (LWP 11483)]
> > > > > [New Thread -1249965152 (LWP 11063)]
> > > > > [New Thread -1229464672 (LWP 11062)]
> > > > > [New Thread -1221407840 (LWP 11061)]
> > > > > [New Thread -1221391456 (LWP 11060)]
> > > > > 0xb7f62410 in ?? ()
> > > > > 7 Thread -1221391456 (LWP 11060)
> 0xb7f62410
> > > in ??
> > > > > ()
> > >
> > === message truncated ===
> >
> >
> > __________________________________________________
> > Do You Yahoo!?
> > Tired of spam? Yahoo! Mail has the best spam
> protection around
> > http://mail.yahoo.com
> _______________________________________________
> Ce message et les �ventuels documents joints
peuvent
> contenir des informations confidentielles.
> Au cas o� il ne vous serait pas destin�, nous
vous
> remercions de bien vouloir le supprimer et en aviser
> imm�diatement l'exp�diteur. Toute utilisation de
ce
> message non conforme � sa destination, toute
> diffusion ou publication, totale ou partielle et
> quel qu'en soit le moyen est formellement interdite.
> Les communications sur internet n'�tant pas
> s�curis�es, l'int�grit� de ce message n'est
pas
> assur�e et la soci�t� �mettrice ne peut
�tre tenue
> pour responsable de son contenu.
>
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
More information about the Mono-devel-list
mailing list