Re: Winform exception while executing on settopbox, Please help
Prashanth Mn <[email protected]> Mon, 27 Apr 2015 14:16:05 +0530
| Newsgroups | gmane.comp.gnome.winforms |
|---|---|
| Message-ID | <CAHk2ySmo4Xzkh8t8ErX2VbkUR_OCOOD=phbQHjeSD1NW+u8-gg@mail.gmail.com> |
--===============0151116926== Content-Type: multipart/alternative; boundary=90e6ba6e8ad4c5fb130514b0c672 --90e6ba6e8ad4c5fb130514b0c672 Content-Type: text/plain; charset=UTF-8 > Hi, > > i'm using Mono to bring up sample form using Mono on settobbox (broadcom > chipset) . We could able to compile the sample code and also all the Mono > dependent libraries including libgdiplus, cairo, X11, Pixman etc using > cross toolchain provided by Broadcom. After cross compiling all the > required libraries, when we tried to bring up the sample form, we are > getting an exception related to display not being set. I've exported the > DISPLAY=0.0 and even then i'm getting the error. Any inputs to display > this windows form on to the TV will be a great help. Do we need to > integrate any Broadcom driver to libgdiplus.so so that it can render on TV? > > On Ubuntu LINUX, i'm able to bring up this windows form without any > issues. > > Below is few excerpt log of the exception. > > # echo $DISPLAY > > > 0.0 > > Unhandled Exception: > >> System.TypeInitializationException: An exception was thrown by the type >> initializer for System.Windows.Forms.WindowsFormsSynchronizationContext >> ---> System.TypeInitializationException: An exception was thrown by the >> type initializer for System.Windows.Forms.XplatUI ---> >> System.ArgumentNullException: Could not open display (X-Server required. >> Check you DISPLAY environment variable) >> Parameter name: Display >> at System.Windows.Forms.XplatUIX11.SetDisplay (IntPtr display_handle) >> [0x00000] in <filename unknown>:0 >> at System.Windows.Forms.XplatUIX11..ctor () [0x00000] in <filename >> unknown>:0 >> at System.Windows.Forms.XplatUIX11.GetInstance () [0x00000] in >> <filename unknown>:0 >> at System.Windows.Forms.XplatUI..cctor () [0x00000] in <filename >> unknown>:0 >> --- End of inner exception stack trace --- >> at System.Windows.Forms.Theme.get_MenuAccessKeysUnderlined () [0x00000] >> in <filename unknown>:0 >> at System.Windows.Forms.SystemInformation.get_MenuAccessKeysUnderlined >> () [0x00000] in <filename unknown>:0 >> at System.Windows.Forms.Control..ctor () [0x00000] in <filename >> unknown>:0 >> at (wrapper remoting-invoke-with-check) >> System.Windows.Forms.Control:.ctor () >> at System.Windows.Forms.WindowsFormsSynchronizationContext..cctor () >> [0x00000] in <filename unknown>:0 >> --- End of inner exception stack trace --- >> at System.Windows.Forms.Control..ctor () [0x00000] in <filename >> unknown>:0 >> at System.Windows.Forms.ScrollableControl..ctor () [0x00000] in >> <filename unknown>:0 >> at System.Windows.Forms.ContainerControl..ctor () [0x00000] in >> <filename unknown>:0 >> at System.Windows.Forms.Form..ctor () [0x00000] in <filename unknown>:0 >> at HelloWorld..ctor () [0x00000] in <filename unknown>:0 >> at (wrapper remoting-invoke-with-check) HelloWorld:.ctor () >> at HelloWorld.Main () [0x00000] in <filename unknown>:0 >> [ERROR] FATAL UNHANDLED EXCEPTION: System.TypeInitializationException: An >> exception was thrown by the type initializer for >> System.Windows.Forms.WindowsFormsSynchronizationContext ---> >> System.TypeInitializationException: An exception was thrown by the type >> initializer for System.Windows.Forms.XplatUI ---> >> System.ArgumentNullException: Could not open display (X-Server required. >> Check you DISPLAY environment variable) >> Parameter name: Display >> at System.Windows.Forms.XplatUIX11.SetDisplay (IntPtr display_handle) >> [0x00000] in <filename unknown>:0 >> at System.Windows.Forms.XplatUIX11..ctor () [0x00000] in <filename >> unknown>:0 >> at System.Windows.Forms.XplatUIX11.GetInstance () [0x00000] in >> <filename unknown>:0 >> at System.Windows.Forms.XplatUI..cctor () [0x00000] in <filename >> unknown>:0 >> --- End of inner exception stack trace --- >> at System.Windows.Forms.Theme.get_MenuAccessKeysUnderlined () [0x00000] >> in <filename unknown>:0 >> at System.Windows.Forms.SystemInformation.get_MenuAccessKeysUnderlined >> () [0x00000] in <filename unknown>:0 >> at System.Windows.Forms.Control..ctor () [0x00000] in <filename >> unknown>:0 >> at (wrapper remoting-invoke-with-check) >> System.Windows.Forms.Control:.ctor () >> at System.Windows.Forms.WindowsFormsSynchronizationContext..cctor () >> [0x00000] in <filename unknown>:0 >> --- End of inner exception stack trace --- >> at System.Windows.Forms.Control..ctor () [0x00000] in <filename >> unknown>:0 >> at System.Windows.Forms.ScrollableControl..ctor () [0x00000] in >> <filename unknown>:0 >> at System.Windows.Forms.ContainerControl..ctor () [0x00000] in >> <filename unknown>:0 >> at System.Windows.Forms.Form..ctor () [0x00000] in <filename unknown>:0 >> at HelloWorld..ctor () [0x00000] in <filename unknown>:0 >> at (wrapper remoting-invoke-with-check) HelloWorld:.ctor () >> at HelloWorld.Main () [0x00000] in <filename unknown>:0 >> # >> > --90e6ba6e8ad4c5fb130514b0c672 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr"><div class=3D"gmail_extra"><div class=3D"gmail_quote"><br>= <blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1p= x #ccc solid;padding-left:1ex"><div dir=3D"ltr"><span class=3D""><span styl= e=3D"font-size:13px">Hi,</span><div style=3D"font-size:13px"><br></div><div= style=3D"font-size:13px">i'm using Mono to=C2=A0<span style=3D"font-fa= mily:Calibri,sans-serif;font-size:11pt">bring up sample form using Mono on = settobbox (broadcom chipset) .=C2=A0 We could able to compile the sample co= de and also all the Mono dependent libraries including libgdiplus, cairo, X= 11, Pixman etc using cross toolchain provided by Broadcom.=C2=A0=C2=A0</spa= n><span style=3D"font-family:Calibri,sans-serif;font-size:11pt">After cross= compiling all the required libraries, when we tried to bring up the sample= form, we are getting an exception related to display not being set.=C2=A0 = I've exported the DISPLAY=3D0.0 =C2=A0and even then i'm getting the= error.=C2=A0 Any inputs to display this windows form on to the TV will be = a great help.=C2=A0 Do we need to integrate any Broadcom driver to libgdipl= us.so so that it can render on TV?</span></div><div style=3D"font-size:13px= "><span style=3D"font-family:Calibri,sans-serif;font-size:11pt"><br></span>= </div><div style=3D"font-size:13px"><span style=3D"font-family:Calibri,sans= -serif;font-size:11pt">On Ubuntu LINUX, i'm able to bring up this windo= ws form without any issues.=C2=A0</span></div><div style=3D"font-size:13px"= ><span style=3D"font-family:Calibri,sans-serif;font-size:11pt"><br></span><= /div></span><div style=3D"font-size:13px"><span style=3D"font-family:Calibr= i,sans-serif;font-size:11pt">Below is few excerpt log of the exception. =C2= =A0</span></div><div style=3D"font-size:13px"><span style=3D"font-family:Ca= libri,sans-serif;font-size:11pt"><br></span></div><div style=3D"font-size:1= 3px"><span class=3D""><div><font face=3D"Calibri, sans-serif"><span style= =3D"font-size:15px"># echo $DISPLAY =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0=C2=A0</span></font></div><div><font = face=3D"Calibri, sans-serif"><span style=3D"font-size:15px">0.0</span></fon= t></div><div><font face=3D"Calibri, sans-serif"><span style=3D"font-size:15= px"></span></font></div></span></div></div></blockquote><div>=C2=A0</div><b= lockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px = #ccc solid;padding-left:1ex"><div dir=3D"ltr"><div style=3D"font-size:13px"= ><span class=3D""><div><font face=3D"Calibri, sans-serif"><span style=3D"fo= nt-size:15px">=C2=A0</span></font><span style=3D"font-size:15px;font-family= :Calibri,sans-serif;color:rgb(80,0,80)">Unhandled Exception:</span></div></= span></div></div><div class=3D"HOEnZb"><div class=3D"h5"><div class=3D"gmai= l_extra"><div class=3D"gmail_quote"><blockquote class=3D"gmail_quote" style= =3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir= =3D"ltr"><div><div><font face=3D"Calibri, sans-serif"><span style=3D"font-s= ize:15px">System.TypeInitializationException: An exception was thrown by th= e type initializer for System.Windows.Forms.WindowsFormsSynchronizationCont= ext ---> System.TypeInitializationException: An exception was thrown by = the type initializer for System.Windows.Forms.XplatUI ---> System.Argume= ntNullException: Could not open display (X-Server required. Check you DISPL= AY environment variable)</span></font></div><div><font face=3D"Calibri, san= s-serif"><span style=3D"font-size:15px">Parameter name: Display</span></fon= t></div><div><font face=3D"Calibri, sans-serif"><span style=3D"font-size:15= px">=C2=A0 at System.Windows.Forms.XplatUIX11.SetDisplay (IntPtr display_ha= ndle) [0x00000] in <filename unknown>:0=C2=A0</span></font></div><div= ><font face=3D"Calibri, sans-serif"><span style=3D"font-size:15px">=C2=A0 a= t System.Windows.Forms.XplatUIX11..ctor () [0x00000] in <filename unknow= n>:0=C2=A0</span></font></div><div><font face=3D"Calibri, sans-serif"><s= pan style=3D"font-size:15px">=C2=A0 at System.Windows.Forms.XplatUIX11.GetI= nstance () [0x00000] in <filename unknown>:0=C2=A0</span></font></div= ><div><font face=3D"Calibri, sans-serif"><span style=3D"font-size:15px">=C2= =A0 at System.Windows.Forms.XplatUI..cctor () [0x00000] in <filename unk= nown>:0=C2=A0</span></font></div><div><font face=3D"Calibri, sans-serif"= ><span style=3D"font-size:15px">=C2=A0 --- End of inner exception stack tra= ce ---</span></font></div><div><font face=3D"Calibri, sans-serif"><span sty= le=3D"font-size:15px">=C2=A0 at System.Windows.Forms.Theme.get_MenuAccessKe= ysUnderlined () [0x00000] in <filename unknown>:0=C2=A0</span></font>= </div><div><font face=3D"Calibri, sans-serif"><span style=3D"font-size:15px= ">=C2=A0 at System.Windows.Forms.SystemInformation.get_MenuAccessKeysUnderl= ined () [0x00000] in <filename unknown>:0=C2=A0</span></font></div><d= iv><font face=3D"Calibri, sans-serif"><span style=3D"font-size:15px">=C2=A0= at System.Windows.Forms.Control..ctor () [0x00000] in <filename unknown= >:0=C2=A0</span></font></div><div><font face=3D"Calibri, sans-serif"><sp= an style=3D"font-size:15px">=C2=A0 at (wrapper remoting-invoke-with-check) = System.Windows.Forms.Control:.ctor ()</span></font></div><div><font face=3D= "Calibri, sans-serif"><span style=3D"font-size:15px">=C2=A0 at System.Windo= ws.Forms.WindowsFormsSynchronizationContext..cctor () [0x00000] in <file= name unknown>:0=C2=A0</span></font></div><div><font face=3D"Calibri, san= s-serif"><span style=3D"font-size:15px">=C2=A0 --- End of inner exception s= tack trace ---</span></font></div><div><font face=3D"Calibri, sans-serif"><= span style=3D"font-size:15px">=C2=A0 at System.Windows.Forms.Control..ctor = () [0x00000] in <filename unknown>:0=C2=A0</span></font></div><div><f= ont face=3D"Calibri, sans-serif"><span style=3D"font-size:15px">=C2=A0 at S= ystem.Windows.Forms.ScrollableControl..ctor () [0x00000] in <filename un= known>:0=C2=A0</span></font></div><div><font face=3D"Calibri, sans-serif= "><span style=3D"font-size:15px">=C2=A0 at System.Windows.Forms.ContainerCo= ntrol..ctor () [0x00000] in <filename unknown>:0=C2=A0</span></font><= /div><div><font face=3D"Calibri, sans-serif"><span style=3D"font-size:15px"= >=C2=A0 at System.Windows.Forms.Form..ctor () [0x00000] in <filename unk= nown>:0=C2=A0</span></font></div><div><font face=3D"Calibri, sans-serif"= ><span style=3D"font-size:15px">=C2=A0 at HelloWorld..ctor () [0x00000] in = <filename unknown>:0=C2=A0</span></font></div><div><font face=3D"Cali= bri, sans-serif"><span style=3D"font-size:15px">=C2=A0 at (wrapper remoting= -invoke-with-check) HelloWorld:.ctor ()</span></font></div><div><font face= =3D"Calibri, sans-serif"><span style=3D"font-size:15px">=C2=A0 at HelloWorl= d.Main () [0x00000] in <filename unknown>:0=C2=A0</span></font></div>= <div><font face=3D"Calibri, sans-serif"><span style=3D"font-size:15px">[ERR= OR] FATAL UNHANDLED EXCEPTION: System.TypeInitializationException: An excep= tion was thrown by the type initializer for System.Windows.Forms.WindowsFor= msSynchronizationContext ---> System.TypeInitializationException: An exc= eption was thrown by the type initializer for System.Windows.Forms.XplatUI = ---> System.ArgumentNullException: Could not open display (X-Server requ= ired. Check you DISPLAY environment variable)</span></font></div><div><font= face=3D"Calibri, sans-serif"><span style=3D"font-size:15px">Parameter name= : Display</span></font></div><div><font face=3D"Calibri, sans-serif"><span = style=3D"font-size:15px">=C2=A0 at System.Windows.Forms.XplatUIX11.SetDispl= ay (IntPtr display_handle) [0x00000] in <filename unknown>:0=C2=A0</s= pan></font></div><div><font face=3D"Calibri, sans-serif"><span style=3D"fon= t-size:15px">=C2=A0 at System.Windows.Forms.XplatUIX11..ctor () [0x00000] i= n <filename unknown>:0=C2=A0</span></font></div><div><font face=3D"Ca= libri, sans-serif"><span style=3D"font-size:15px">=C2=A0 at System.Windows.= Forms.XplatUIX11.GetInstance () [0x00000] in <filename unknown>:0=C2= =A0</span></font></div><div><font face=3D"Calibri, sans-serif"><span style= =3D"font-size:15px">=C2=A0 at System.Windows.Forms.XplatUI..cctor () [0x000= 00] in <filename unknown>:0=C2=A0</span></font></div><div><font face= =3D"Calibri, sans-serif"><span style=3D"font-size:15px">=C2=A0 --- End of i= nner exception stack trace ---</span></font></div><div><font face=3D"Calibr= i, sans-serif"><span style=3D"font-size:15px">=C2=A0 at System.Windows.Form= s.Theme.get_MenuAccessKeysUnderlined () [0x00000] in <filename unknown&g= t;:0=C2=A0</span></font></div><div><font face=3D"Calibri, sans-serif"><span= style=3D"font-size:15px">=C2=A0 at System.Windows.Forms.SystemInformation.= get_MenuAccessKeysUnderlined () [0x00000] in <filename unknown>:0=C2= =A0</span></font></div><div><font face=3D"Calibri, sans-serif"><span style= =3D"font-size:15px">=C2=A0 at System.Windows.Forms.Control..ctor () [0x0000= 0] in <filename unknown>:0=C2=A0</span></font></div><div><font face= =3D"Calibri, sans-serif"><span style=3D"font-size:15px">=C2=A0 at (wrapper = remoting-invoke-with-check) System.Windows.Forms.Control:.ctor ()</span></f= ont></div><div><font face=3D"Calibri, sans-serif"><span style=3D"font-size:= 15px">=C2=A0 at System.Windows.Forms.WindowsFormsSynchronizationContext..cc= tor () [0x00000] in <filename unknown>:0=C2=A0</span></font></div><di= v><font face=3D"Calibri, sans-serif"><span style=3D"font-size:15px">=C2=A0 = --- End of inner exception stack trace ---</span></font></div><div><font fa= ce=3D"Calibri, sans-serif"><span style=3D"font-size:15px">=C2=A0 at System.= Windows.Forms.Control..ctor () [0x00000] in <filename unknown>:0=C2= =A0</span></font></div><div><font face=3D"Calibri, sans-serif"><span style= =3D"font-size:15px">=C2=A0 at System.Windows.Forms.ScrollableControl..ctor = () [0x00000] in <filename unknown>:0=C2=A0</span></font></div><div><f= ont face=3D"Calibri, sans-serif"><span style=3D"font-size:15px">=C2=A0 at S= ystem.Windows.Forms.ContainerControl..ctor () [0x00000] in <filename unk= nown>:0=C2=A0</span></font></div><div><font face=3D"Calibri, sans-serif"= ><span style=3D"font-size:15px">=C2=A0 at System.Windows.Forms.Form..ctor (= ) [0x00000] in <filename unknown>:0=C2=A0</span></font></div><div><fo= nt face=3D"Calibri, sans-serif"><span style=3D"font-size:15px">=C2=A0 at He= lloWorld..ctor () [0x00000] in <filename unknown>:0=C2=A0</span></fon= t></div><div><font face=3D"Calibri, sans-serif"><span style=3D"font-size:15= px">=C2=A0 at (wrapper remoting-invoke-with-check) HelloWorld:.ctor ()</spa= n></font></div><div><font face=3D"Calibri, sans-serif"><span style=3D"font-= size:15px">=C2=A0 at HelloWorld.Main () [0x00000] in <filename unknown&g= t;:0=C2=A0</span></font></div><div><font face=3D"Calibri, sans-serif"><span= style=3D"font-size:15px">#=C2=A0</span></font></div></div></div></blockquo= te></div></div></div></div></blockquote><div>=C2=A0</div></div><br></div></= div> --90e6ba6e8ad4c5fb130514b0c672-- --===============0151116926== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Mono-winforms-list maillist - [email protected] http://lists.ximian.com/mailman/listinfo/mono-winforms-list --===============0151116926==--