[Mono-dev] crash at mono_class_vtable

2015-02-25 Thread techi eth
Hi All,



I am getting one exception when running  IPhone application using mono.
Please find below stack trace.



Assertion at mini.c:6289, condition `vtable' not met



Stacktrace:



  at  <0x>

  at IPhone.MainService..ctor () <0x000ab>

  at (wrapper runtime-invoke) object.runtime_invoke_void__this__
(object,intptr,intptr,intptr) <0x>

  at  <0x>

  at (wrapper managed-to-native)
System.Reflection.MonoCMethod.InternalInvoke
(System.Reflection.MonoCMethod,object,object[],System.Exception&)
<0x>

  at System.Reflection.MonoCMethod.InternalInvoke (object,object[])
<0x0003b>

  at System.Activator.CreateInstance (System.Type,bool) <0x0018b>

  at System.Activator.CreateInstance (System.Type) <0x00017>

  at System.Reflection.Assembly.CreateInstance (string,bool) <0x0006f>

  at System.Reflection.Assembly.CreateInstance (string) <0x0001f>



Below is the detail of mono version.

mono --version

Mono JIT compiler version 3.10.0 (tarball Mon Dec  8 11:37:11 GMT 2014)

Copyright (C) 2002-2014 Novell, Inc, Xamarin Inc and Contributors.
www.mono-project.com

TLS:   __thread

SIGSEGV:   normal

Notifications: epoll

Architecture:  armel,vfp+fallback

Disabled:  aot,profiler

Misc:  softdebug

LLVM:  supported, not enabled.

GC:sgen



Regards,

techi
___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


Re: [Mono-dev] Mono release headsup

2015-02-25 Thread arocholl
I saw that – thank you guys, this is really going to make a difference for IoT 
with Mono.


Best Regards,

Ariel Rocholl



From: Rodrigo Kumpera [mailto:kump...@gmail.com] 
Sent: Wednesday, February 25, 2015 21:20
To: Ariel Rocholl
Cc: mono-devel-list@lists.ximian.com; Mono List
Subject: Re: [Mono-dev] Mono release headsup

 

Miguel merged a fix for that. I just cherry picked it to 4.0.

 

 

 

On Tue, Feb 24, 2015 at 12:26 PM, Ariel Rocholl mailto:publ...@arocholl.com> > wrote:

Great – hopefully he is still around and can answer. Otherwise which option B 
can work? Can I do a minor modification and re-submit as myself fix?


Or alternatively, at least add 25 and 50 which are IoT common baudrates 
not currently included?

 

Best Regards,

Ariel Rocholl

 

From: Rodrigo Kumpera [mailto:kump...@gmail.com  ] 
Sent: Tuesday, February 24, 2015 16:30
To: Ariel Rocholl
Cc: mono-devel-list@lists.ximian.com  
; Mono List
Subject: Re: [Mono-dev] Mono release headsup

 

The patch looks ok, but for it to be merge it must be released under the MIT 
license, so the author will have to do it.

 

 

 

On Tue, Feb 24, 2015 at 4:52 AM, Ariel Rocholl mailto:publ...@arocholl.com> > wrote:

Hi there,

 

Could the fix proposed for bug #8207 be considered for the release? This was 
proposed long ago but didn't progress, and recent renewed interest on high 
speed custom baud serial communication is required by all IoT gadgets and sort. 
We are not being able to propose Mono for IoT just because of this, and fix 
seems really easy to propagate.




Best Regards,

Ariel Rocholl

 

On Tue, Feb 24, 2015 at 1:08 AM, Rodrigo Kumpera mailto:kump...@gmail.com> > wrote:

Hello everyone,

 

We're branching mono for next release as we speak.

 

We'll be able to easily merge community PR until March 6. After that it will 
have to go through our

internal QA process, which raises the bar a lot and only release blockers can 
get in.

 

I'll be handling the intake of community changes for the release so make sure 
I'm aware of any PR targeting it to increase their likelihood of been included.

 

--

Rodrigo

 

___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com  
http://lists.ximian.com/mailman/listinfo/mono-devel-list

 

 

 

___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


Re: [Mono-dev] Mono release headsup

2015-02-25 Thread Rodrigo Kumpera
Miguel merged a fix for that. I just cherry picked it to 4.0.



On Tue, Feb 24, 2015 at 12:26 PM, Ariel Rocholl 
wrote:

> Great – hopefully he is still around and can answer. Otherwise which
> option B can work? Can I do a minor modification and re-submit as myself
> fix?
>
> Or alternatively, at least add 25 and 50 which are IoT common
> baudrates not currently included?
>
>
>
> Best Regards,
> 
> Ariel Rocholl
>
>
>
> *From:* Rodrigo Kumpera [mailto:kump...@gmail.com]
> *Sent:* Tuesday, February 24, 2015 16:30
> *To:* Ariel Rocholl
> *Cc:* mono-devel-list@lists.ximian.com; Mono List
> *Subject:* Re: [Mono-dev] Mono release headsup
>
>
>
> The patch looks ok, but for it to be merge it must be released under the
> MIT license, so the author will have to do it.
>
>
>
>
>
>
>
> On Tue, Feb 24, 2015 at 4:52 AM, Ariel Rocholl 
> wrote:
>
> Hi there,
>
>
>
> Could the fix proposed for bug #8207 be considered for the release? This
> was proposed long ago but didn't progress, and recent renewed interest on
> high speed custom baud serial communication is required by all IoT gadgets
> and sort. We are not being able to propose Mono for IoT just because of
> this, and fix seems really easy to propagate.
>
>
> Best Regards,
> 
> Ariel Rocholl
>
>
>
> On Tue, Feb 24, 2015 at 1:08 AM, Rodrigo Kumpera 
> wrote:
>
> Hello everyone,
>
>
>
> We're branching mono for next release as we speak.
>
>
>
> We'll be able to easily merge community PR until March 6. After that it
> will have to go through our
>
> internal QA process, which raises the bar a lot and only release blockers
> can get in.
>
>
>
> I'll be handling the intake of community changes for the release so make
> sure I'm aware of any PR targeting it to increase their likelihood of been
> included.
>
>
>
> --
>
> Rodrigo
>
>
>
> ___
> Mono-devel-list mailing list
> Mono-devel-list@lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-devel-list
>
>
>
>
>
___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


Re: [Mono-dev] Patch for Bug 8207: Can't set 1000000 baud with System.IO.Ports.SerialPort.BaudRate

2015-02-25 Thread Miguel de Icaza
Applied, and updated also to support Mac.

On Tue, Feb 24, 2015 at 3:45 PM, Christian Hofstaedtler <
ch---mono-de...@zeha.at> wrote:

> This patch (against mono-2.10.8.1 from Debian) allows setting
> custom baud rates, and very likely would support a baudrate of
> 100.
>
> I release this patch under the MIT license.
>
>
> --- serial.c.orig   2013-01-30 12:06:52.379691461 +0100
> +++ serial.c.orig   2013-01-30 13:05:50.383390154 +0100
> @@ -17,6 +17,11 @@
>  #endif
>  #include 
>
> +/* This is for ASYNC_*, serial_struct on linux */
> +#if defined(__linux__)
> +#include 
> +#endif
> +
>  #include 
>
>  /* This is for FIONREAD on solaris */
> @@ -151,6 +156,7 @@
>  set_attributes (int fd, int baud_rate, MonoParity parity, int dataBits,
> MonoStopBits stopBits, MonoHandshake handshake)
>  {
> struct termios newtio;
> +   gboolean custom_baud_rate = FALSE;
>
> if (tcgetattr (fd, &newtio) == -1)
> return FALSE;
> @@ -227,8 +233,10 @@
> break;
> case 50:
> case 0:
> -   default:
> baud_rate = B9600;
> +   break;
> +   default:
> +   custom_baud_rate = TRUE;
> break;
> }
>
> @@ -319,16 +327,54 @@
> newtio.c_iflag |= IXOFF | IXON;
> break;
> }
> -
> -   if (cfsetospeed (&newtio, baud_rate) < 0 || cfsetispeed (&newtio,
> baud_rate) < 0 ||
> -   tcsetattr (fd, TCSANOW, &newtio) < 0)
> +
> +   if (custom_baud_rate == FALSE)
> {
> -   return FALSE;
> +   if (cfsetospeed (&newtio, baud_rate) < 0 || cfsetispeed
> (&newtio, baud_rate) < 0)
> +   {
> +   return FALSE;
> +   }
> }
> else
> {
> -   return TRUE;
> +   /* On Linux, to set a custom baud rate, we must set the
> "standard" baud_rate
> +* to 38400. */
> +   if (cfsetospeed (&newtio, B38400) < 0 || cfsetispeed
> (&newtio, B38400) < 0)
> +   {
> +   return FALSE;
> +   }
> +   }
> +
> +   if (tcsetattr (fd, TCSANOW, &newtio) < 0)
> +   {
> +   return FALSE;
> +   }
> +
> +   if (custom_baud_rate == TRUE)
> +   {
> +#if defined(__linux__)
> +   struct serial_struct ser;
> +
> +   if (ioctl (fd, TIOCGSERIAL, &ser) < 0)
> +   {
> +   return FALSE;
> +   }
> +
> +   ser.custom_divisor = ser.baud_base / baud_rate;
> +   ser.flags &= ~ASYNC_SPD_MASK;
> +   ser.flags |= ASYNC_SPD_CUST;
> +
> +   if (ioctl (fd, TIOCSSERIAL, &ser) < 0)
> +   {
> +   return FALSE;
> +   }
> +#else
> +   /* Don't know how to set custom baud rate on this
> platform. */
> +   return FALSE;
> +#endif
> }
> +
> +   return TRUE;
>  }
>
>
> ___
> Mono-devel-list mailing list
> Mono-devel-list@lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-devel-list
>
___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


Re: [Mono-dev] Patch for Bug 8207: Can't set 1000000 baud with System.IO.Ports.SerialPort.BaudRate

2015-02-25 Thread Christian Hofstaedtler
Hi Miguel,

* Miguel de Icaza  [150225 03:07]:
> Hello Christian,
> 
> This looks fine.  Are you the original author of the patch?

Yes, I'm the original author of this patch (as posted to Bugzilla in
2013).

Christian

> 
> On Tue, Feb 24, 2015 at 3:45 PM, Christian Hofstaedtler <
> ch---mono-de...@zeha.at> wrote:
> 
> > This patch (against mono-2.10.8.1 from Debian) allows setting
> > custom baud rates, and very likely would support a baudrate of
> > 100.
> >
> > I release this patch under the MIT license.
> >
> >
> > --- serial.c.orig   2013-01-30 12:06:52.379691461 +0100
> > +++ serial.c.orig   2013-01-30 13:05:50.383390154 +0100
> > @@ -17,6 +17,11 @@
> >  #endif
> >  #include 
> >
> > +/* This is for ASYNC_*, serial_struct on linux */
> > +#if defined(__linux__)
> > +#include 
> > +#endif
> > +
> >  #include 
> >
> >  /* This is for FIONREAD on solaris */
> > @@ -151,6 +156,7 @@
> >  set_attributes (int fd, int baud_rate, MonoParity parity, int dataBits,
> > MonoStopBits stopBits, MonoHandshake handshake)
> >  {
> > struct termios newtio;
> > +   gboolean custom_baud_rate = FALSE;
> >
> > if (tcgetattr (fd, &newtio) == -1)
> > return FALSE;
> > @@ -227,8 +233,10 @@
> > break;
> > case 50:
> > case 0:
> > -   default:
> > baud_rate = B9600;
> > +   break;
> > +   default:
> > +   custom_baud_rate = TRUE;
> > break;
> > }
> >
> > @@ -319,16 +327,54 @@
> > newtio.c_iflag |= IXOFF | IXON;
> > break;
> > }
> > -
> > -   if (cfsetospeed (&newtio, baud_rate) < 0 || cfsetispeed (&newtio,
> > baud_rate) < 0 ||
> > -   tcsetattr (fd, TCSANOW, &newtio) < 0)
> > +
> > +   if (custom_baud_rate == FALSE)
> > {
> > -   return FALSE;
> > +   if (cfsetospeed (&newtio, baud_rate) < 0 || cfsetispeed
> > (&newtio, baud_rate) < 0)
> > +   {
> > +   return FALSE;
> > +   }
> > }
> > else
> > {
> > -   return TRUE;
> > +   /* On Linux, to set a custom baud rate, we must set the
> > "standard" baud_rate
> > +* to 38400. */
> > +   if (cfsetospeed (&newtio, B38400) < 0 || cfsetispeed
> > (&newtio, B38400) < 0)
> > +   {
> > +   return FALSE;
> > +   }
> > +   }
> > +
> > +   if (tcsetattr (fd, TCSANOW, &newtio) < 0)
> > +   {
> > +   return FALSE;
> > +   }
> > +
> > +   if (custom_baud_rate == TRUE)
> > +   {
> > +#if defined(__linux__)
> > +   struct serial_struct ser;
> > +
> > +   if (ioctl (fd, TIOCGSERIAL, &ser) < 0)
> > +   {
> > +   return FALSE;
> > +   }
> > +
> > +   ser.custom_divisor = ser.baud_base / baud_rate;
> > +   ser.flags &= ~ASYNC_SPD_MASK;
> > +   ser.flags |= ASYNC_SPD_CUST;
> > +
> > +   if (ioctl (fd, TIOCSSERIAL, &ser) < 0)
> > +   {
> > +   return FALSE;
> > +   }
> > +#else
> > +   /* Don't know how to set custom baud rate on this
> > platform. */
> > +   return FALSE;
> > +#endif
> > }
> > +
> > +   return TRUE;
> >  }

___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list