[Mono-list] mono charting

matthieu barthélemy bonsouere at gmail.com
Wed Mar 8 15:43:02 EST 2006


Works for a simple example, but I got sigsegv with a more complicated one.

#mono -V
Mono JIT compiler version 1.1.13, (C) 2002-2005 Novell, Inc and 
Contributors. www.mono-project.com
        TLS:           normal
        GC:            Included Boehm (with typed GC)
        SIGSEGV      : normal

#uname -a
linux 2.6.15-default #3 SMP Fri Jan 13 19:09:35 CET 2006 i686 i686 i386 
GNU/Linux

mono installed from go-mono rpms, Suse 10.1 beta4

zedgraph v4.2.4

# rpm -qa | grep -i gdiplus
libgdiplus-1.1.13.2-2


Steps to reproduce :

1) download mentionned version of zedgraph, and put it in your current 
folder.
2) Compile the attached sample code with:
gmcs -t:exe sample_console.cs -r:System.Drawing -r:ZedGraph.dll

3) run compiled assembly...

Below is what I obtained.

Regards, matt


=================================================================
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:

in <0x4> (wrapper managed-to-native) 
System.Drawing.GDIPlus:GdipFillRectangle 
(intptr,intptr,single,single,single,single)
in <0xffffffa9> (wrapper managed-to-native) 
System.Drawing.GDIPlus:GdipFillRectangle 
(intptr,intptr,single,single,single,single)
in <0x59> System.Drawing.Graphics:FillRectangle 
(System.Drawing.Brush,single,single,single,single)
in <0x78> System.Drawing.Graphics:FillRectangle 
(System.Drawing.Brush,System.Drawing.RectangleF)
in <0x5e68> (wrapper remoting-invoke-with-check) 
System.Drawing.Graphics:FillRectangle 
(System.Drawing.Brush,System.Drawing.RectangleF)
in <0x98> ZedGraph.PieItem:DrawLegendKey 
(System.Drawing.Graphics,ZedGraph.GraphPane,System.Drawing.RectangleF,single)
in <0x3cd> ZedGraph.Legend:Draw 
(System.Drawing.Graphics,ZedGraph.PaneBase,single)
in <0x9bf> ZedGraph.GraphPane:Draw (System.Drawing.Graphics)
in <0x102> ZedGraph.PaneBase:get_Image ()
in <0xb45> ConsoleApplication1.Program:CreateGraph (ZedGraph.GraphPane)
in <0x96> ConsoleApplication1.Program:Main (string[])
in <0xc7656ac7> (wrapper runtime-invoke) 
System.Object:runtime_invoke_void_string[] (object,intptr,intptr,intptr)

Native stacktrace:

        mono(mono_handle_native_sigsegv+0xba) [0x814c1da]
        mono [0x81386af]
        [0xffffe440]
        /usr/lib/libgdiplus.so(create_tile_linear+0x204) [0x40ced044]
        /usr/lib/libgdiplus.so [0x40ced5cc]
        /usr/lib/libgdiplus.so(gdip_brush_setup+0x23) [0x40cd2c93]
        /usr/lib/libgdiplus.so(GdipFillRectangle+0xa4) [0x40cd7914]
        [0x40cad64a]
        [0x40cad5a2]
        [0x40cad4f9]
        [0x40cad43f]
        [0x40cb31d9]
        [0x40cb2b66]
        [0x40cab9c0]
        [0x40caa40b]
        [0x40ae9c36]
        [0x40ae1c7f]
        [0x40ae1ac3]
        mono [0x8138560]
        mono(mono_runtime_invoke+0x27) [0x80d4d37]
        mono(mono_runtime_exec_main+0x5c) [0x80d5e4c]
        mono(mono_runtime_run_main+0x171) [0x80d5a71]
        mono(strftime+0x1b52) [0x805ce52]
        mono(mono_main+0x786) [0x805d766]
        mono(__fxstat64+0x12b) [0x805c21b]
        /lib/libc.so.6(__libc_start_main+0xd8) [0x4013e748]
        mono(sinh+0x41) [0x805c171]
Aborted



matthieu barthélemy wrote:
> Hi Joe,
>
> I have been looking for a long time for such a library, and never 
> found it...
> This one looks promising.
> So, many thanks.
>
> Matt
>
>
> Joe Audette wrote:
>> I haven't tried it yet but this one looks promising. I think its all 
>> managed code so it should work in mono but again I havan't tried it yet.
>>
>> http://zedgraph.org/wiki/index.php?title=Main_Page
>>
>> Hope it helps, let us know if it does work.
>>
>> Cheers,
>>
>> Joe
>>  
>>  
>> joe_audette [at] yahoo dotcom http://www.joeaudette.com 
>> http://www.mojoportal.com
>>
>> ----- Original Message ----
>> From: Colin JN Breame <colin at breame.net>
>> To: mono-list at lists.ximian.com
>> Sent: Wednesday, March 8, 2006 1:23:21 PM
>> Subject: [Mono-list] mono charting
>>
>> Could anyone recommend a (FLOSS) general chart library that works 
>> with mono?
>>
>> Thanks
>> _______________________________________________
>> Mono-list maillist  -  Mono-list at lists.ximian.com
>> http://lists.ximian.com/mailman/listinfo/mono-list
>>
>>
>>
>>
>> _______________________________________________
>> Mono-list maillist  -  Mono-list at lists.ximian.com
>> http://lists.ximian.com/mailman/listinfo/mono-list
>>
>>   
>
>
> _______________________________________________
> Mono-list maillist  -  Mono-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-list
>

-------------- next part --------------
A non-text attachment was scrubbed...
Name: sample_console.cs
Type: text/x-csharp
Size: 3059 bytes
Desc: not available
Url : http://lists.ximian.com/pipermail/mono-list/attachments/20060308/e044292f/sample_console.bin


More information about the Mono-list mailing list