Quantcast

Re: Antwort: Re: Strange Error

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Antwort: Re: Strange Error

Andrew Sinclair

I’m seeing this error as well:

 

Assertion at ../../../../mono/metadata/sgen-internal.c:441, condition `mh->size == size + sizeof (LargeInternalMemHeader)' not met

 

It’s not a predictable one – sometimes it occurs when setting up views within an activity (in particular it happened once within BitmapFactory.DecodeFile, but running that function 1000 times on the same file worked fine.)

 

I’ve also seen it occur in a background thread somewhere within a series of Http requests and associated database access.

 

The symptoms in both cases are the same – the device screen goes blank and it’s not possible to stop a debugging session from within VS. The error also happens when the app isn’t running through the debugger. The same areas of the application work fine at other times.

 

The message logged is the one above, it gets tagged with the same tag as my previous logging call, if that’s of any significance.

 

I’ll log this even though I don’t have a reproducible test case, I imagine it’s a bit of a fundamental one, with the app randomly crashing here and there.

 

Is there likely to be anything that can be done from the app side to work around this?

 

Thanks,

 

Andy

 

From: [hidden email] [mailto:[hidden email]] On Behalf Of [hidden email]
Sent: 04 April 2011 22:22
To: Discussions related to Mono for Android
Subject: [mono-android] Antwort: Re: Strange Error

 


Sorry but I am not able to reproduce this behavior on purpouse. So i cant file a testcase. If this changes i will inform you.


Jonathan Pryor <[hidden email]>
Gesendet von: [hidden email]

01.04.2011 19:37

Bitte antworten an
Discussions related to Mono for Android <[hidden email]>

An

Discussions related to Mono for Android <[hidden email]>

Kopie

Thema

Re: [mono-android] Strange Error

 




On Apr 1, 2011, at 12:40 PM, [hidden email] wrote:
somtimes when starting an activity i get the following error:

This looks like a Mono Runtime bug. Please file a test case at bugzilla.novell.com.

 - Jon
_______________________________________________
Monodroid mailing list
[hidden email]

UNSUBSCRIBE INFORMATION:
http://lists.ximian.com/mailman/listinfo/monodroid


_______________________________________________
Monodroid mailing list
[hidden email]

UNSUBSCRIBE INFORMATION:
http://lists.ximian.com/mailman/listinfo/monodroid
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Strange Error / GC issue

Andrew Sinclair

I logged a bug for this GC issue, https://bugzilla.novell.com/show_bug.cgi?id=687727

 

Is there anything at an application level that could be causing this or making this type of thing more likely? To me it just seems like the GC kicks in at some stage, SGEN may generate this error and the application stops. It’s causing me a fundamental problem and I’m happy to try anything at an app level to try and get around this.

 

The SGEN page that you link to (http://www.mono-project.com/Compacting_GC) from the  Mono for Android GC page says “the code is ready for wider testing but is not yet considered production ready”. Is that an old page and is SGEN now considered production ready?

 

If it’s a problem in the Mono GC then what are the implications for getting a fix within Mono for Android? Is it possible/supported to build against a custom Mono version?

 

I’ve had great success with the product so far, it’s excellent, but these random errors after using the app for a couple of minutes are obviously a big problem.

 

Thanks,

 

Andy

 

From: [hidden email] [mailto:[hidden email]] On Behalf Of Andrew Sinclair
Sent: 14 April 2011 23:33
To: 'Discussions related to Mono for Android'
Subject: Re: [mono-android] Antwort: Re: Strange Error

 

I’m seeing this error as well:

 

Assertion at ../../../../mono/metadata/sgen-internal.c:441, condition `mh->size == size + sizeof (LargeInternalMemHeader)' not met

 

It’s not a predictable one – sometimes it occurs when setting up views within an activity (in particular it happened once within BitmapFactory.DecodeFile, but running that function 1000 times on the same file worked fine.)

 

I’ve also seen it occur in a background thread somewhere within a series of Http requests and associated database access.

 

The symptoms in both cases are the same – the device screen goes blank and it’s not possible to stop a debugging session from within VS. The error also happens when the app isn’t running through the debugger. The same areas of the application work fine at other times.

 

The message logged is the one above, it gets tagged with the same tag as my previous logging call, if that’s of any significance.

 

I’ll log this even though I don’t have a reproducible test case, I imagine it’s a bit of a fundamental one, with the app randomly crashing here and there.

 

Is there likely to be anything that can be done from the app side to work around this?

 

Thanks,

 

Andy

 

From: [hidden email] [mailto:[hidden email]] On Behalf Of [hidden email]
Sent: 04 April 2011 22:22
To: Discussions related to Mono for Android
Subject: [mono-android] Antwort: Re: Strange Error

 


Sorry but I am not able to reproduce this behavior on purpouse. So i cant file a testcase. If this changes i will inform you.

Jonathan Pryor <[hidden email]>
Gesendet von: [hidden email]

01.04.2011 19:37

Bitte antworten an
Discussions related to Mono for Android <[hidden email]>

An

Discussions related to Mono for Android <[hidden email]>

Kopie

Thema

Re: [mono-android] Strange Error

 




On Apr 1, 2011, at 12:40 PM, [hidden email] wrote:
somtimes when starting an activity i get the following error:

This looks like a Mono Runtime bug. Please file a test case at bugzilla.novell.com.

 - Jon
_______________________________________________
Monodroid mailing list
[hidden email]

UNSUBSCRIBE INFORMATION:
http://lists.ximian.com/mailman/listinfo/monodroid


_______________________________________________
Monodroid mailing list
[hidden email]

UNSUBSCRIBE INFORMATION:
http://lists.ximian.com/mailman/listinfo/monodroid
Loading...