[Mono-list] mono charting

matthieu barthélemy bonsouere at gmail.com
Thu Mar 9 14:55:50 EST 2006


>  Hi colin, hi all,
>
> You're right, the output looks ugly :-)
> As an additionl information to anybody willing to debug/better 
> System.Drawing and libgdiplus, the expected result is:
> http://zedgraph.org/wiki/index.php?title=Image:Piedemo.png
>
> I think zedGraph doesn't have to mono-compatible, it is pure managed 
> .Net, so mono should be able to run it 100%.
> Could this library be a good basis to debug and make drawing parts of 
> mono better? I don't know anything about regression tests, unit tests, 
> but could we use the samples from zedgraph.org, compare them regularly 
> with what zedgraph outputs under mono, in order to test compatibility 
> between MS and Mono frameworks?
>
> I'm going to investigate more, maybe will I be able to find more 
> precisely what drawing functions don't work as expected in mono.
>
> Regards,
>
> Matth
>
>
> Colin JN Breame wrote:
>> Your sample seems to work if you set the legend to not-visible.  However, the 
>> output doesn't look quite right...(take a look at the attachment)
>>
>> I guess this means that zedgraph isn't really mono-compatible (or mono isn't 
>> zedgraph ready?)...which is a shame 'cos it looks really good.
>>
>> On Wednesday 08 March 2006 20:43, matthieu barthélemy wrote:
>>   
>>> 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,singl
>>> e) 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:
>>>     




More information about the Mono-list mailing list