[prev in list] [next in list] [prev in thread] [next in thread] 

List:       mono-devel-list
Subject:    Re: [Mono-dev] Unhandled Exception with System.DateTime
From:       Rodrigo Kumpera <kumpera () gmail ! com>
Date:       2012-04-27 22:27:22
Message-ID: CACmR+BDEJqTKjYKjYzT7ngpbSYpyX+0-=o2gC+05iFmnjVF6zw () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


This is a JIT bug regarding int->long conversion. Please check with trunk
as this where most of the recent MIPS work happened.



On Fri, Apr 27, 2012 at 2:59 PM, the mad mole <madmole@gmail.com> wrote:

> I have cross-compiled Mono 10.2.8 for an embedded MIPS platform, including
> a few patches suggested by Autif Khan on this forum.  Basic functionality
> seems to be there, however I'm getting an exception when I try to
> instantiate DateTime.Now (or UtcTime, doesn't matter).  Any suggestion on
> how to debug this?  The constant "4004668917" (0xEEB265F5) is always
> printed, i.e. it's not increasing like a time value.
>
> Thanks in advance: TMM
>
>
>
>  Unhandled Exception: System.TypeInitializationException: An exception was
> thrown
>  by the type initializer for System.DateTime --->
> System.ArgumentOutOfRangeExcep
> tion: Value 4004668917 is outside the valid range [0,4004668917].
> Parameter name: ticks
>   at System.DateTime.InvalidTickValue (Int64 ticks) [0x00000] in <filename
> unkno
> wn>:0
>   at System.DateTime..ctor (Int64 ticks) [0x00000] in <filename unknown>:0
>   at System.DateTime..cctor () [0x00000] in <filename unknown>:0
>   --- End of inner exception stack trace ---
>   at SumPair.Timer.get_Counter () [0x00000] in <filename unknown>:0
>   at SumPair.Program.Main (System.String[] args) [0x00000] in <filename
> unknown>
> :0
> [ERROR] FATAL UNHANDLED EXCEPTION: System.TypeInitializationException: An
> except
> ion was thrown by the type initializer for System.DateTime --->
> System.ArgumentO
> utOfRangeException: Value 4004668917 is outside the valid range
> [0,4004668917].
> Parameter name: ticks
>   at System.DateTime.InvalidTickValue (Int64 ticks) [0x00000] in <filename
> unknown>:0
>   at System.DateTime..ctor (Int64 ticks) [0x00000] in <filename unknown>:0
>   at System.DateTime..cctor () [0x00000] in <filename unknown>:0
>   --- End of inner exception stack trace ---
>   at SumPair.Timer.get_Counter () [0x00000] in <filename unknown>:0
>   at SumPair.Program.Main (System.String[] args) [0x00000] in <filename
> unknown>:0
>
> _______________________________________________
> Mono-devel-list mailing list
> Mono-devel-list@lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-devel-list
>
>

[Attachment #5 (text/html)]

<div class="gmail_extra">This is a JIT bug regarding int-&gt;long conversion. Please \
check with trunk as this where most of the recent MIPS work happened.</div><div \
class="gmail_extra"><br></div><div class="gmail_extra"><br> <br><div \
class="gmail_quote">On Fri, Apr 27, 2012 at 2:59 PM, the mad mole <span \
dir="ltr">&lt;<a href="mailto:madmole@gmail.com" \
target="_blank">madmole@gmail.com</a>&gt;</span> wrote:<br><blockquote \
class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex"> <div>I have cross-compiled Mono 10.2.8 for an embedded MIPS \
platform, including a few patches suggested by Autif Khan on this forum.  Basic \
functionality seems to be there, however I&#39;m getting an exception when I try to \
instantiate DateTime.Now (or UtcTime, doesn&#39;t matter).  Any suggestion on how to \
debug this?  The constant &quot;4004668917&quot; (0xEEB265F5) is always printed, i.e. \
it&#39;s not increasing like a time value.</div>


<div> </div>
<div>Thanks in advance: TMM</div>
<div> </div>
<div> </div>
<div> </div>
<div> Unhandled Exception: System.TypeInitializationException: An exception was \
thrown<br> by the type initializer for System.DateTime ---&gt; \
System.ArgumentOutOfRangeExcep<br>tion: Value 4004668917 is outside the valid range \
[0,4004668917].<br>

Parameter name: ticks<br>  at System.DateTime.InvalidTickValue (Int64 ticks) \
[0x00000] in &lt;filename unkno<br>wn&gt;:0<br>  at System.DateTime..ctor (Int64 \
ticks) [0x00000] in &lt;filename unknown&gt;:0<br>  at System.DateTime..cctor () \
[0x00000] in &lt;filename unknown&gt;:0<br>

  --- End of inner exception stack trace ---<br>  at SumPair.Timer.get_Counter () \
[0x00000] in &lt;filename unknown&gt;:0<br>  at SumPair.Program.Main (System.String[] \
args) [0x00000] in &lt;filename unknown&gt;<br>:0<br>

[ERROR] FATAL UNHANDLED EXCEPTION: System.TypeInitializationException: An \
except<br>ion was thrown by the type initializer for System.DateTime ---&gt; \
System.ArgumentO<br>utOfRangeException: Value 4004668917 is outside the valid range \
[0,4004668917].<br>

Parameter name: ticks<br>  at System.DateTime.InvalidTickValue (Int64 ticks) \
[0x00000] in &lt;filename unknown&gt;:0<br>  at System.DateTime..ctor (Int64 ticks) \
[0x00000] in &lt;filename unknown&gt;:0<br>  at System.DateTime..cctor () [0x00000] \
in &lt;filename unknown&gt;:0<br>

  --- End of inner exception stack trace ---<br>  at SumPair.Timer.get_Counter () \
[0x00000] in &lt;filename unknown&gt;:0<br>  at SumPair.Program.Main (System.String[] \
args) [0x00000] in &lt;filename unknown&gt;:0</div> \
<br>_______________________________________________<br> Mono-devel-list mailing \
list<br> <a href="mailto:Mono-devel-list@lists.ximian.com">Mono-devel-list@lists.ximian.com</a><br>
 <a href="http://lists.ximian.com/mailman/listinfo/mono-devel-list" \
target="_blank">http://lists.ximian.com/mailman/listinfo/mono-devel-list</a><br> \
<br></blockquote></div><br></div>



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


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic