Re: [Mono-dev] Mono crash

2014-09-08 Thread mono user
The following seems to work:

i) follow the instructions at
https://my.vertica.com/docs/4.1/HTML/Master/12962.htm also see
https://bugzilla.xamarin.com/show_bug.cgi?id=6216#c26
ii) use recent mono, 3.8.0 and current master both work
iii) compile mono with --with-large-heap
iv) use boehm gc

Now it runs well enough to get as far as dying on an assertion inside Mono
:-)

Many thanks to everyone who replied.

On 7 September 2014 01:23, Rodrigo Kumpera kump...@gmail.com wrote:

 This last backtrace looks perfectly fine.

 It's the GC suspend signal handler been executed.


 On Sat, Sep 6, 2014 at 10:39 AM, mono user mono.user...@gmail.com wrote:

 I am afraid that max-heap-size might not be the reason. I am seeing the
 crashes at different levels of memory usage.

 I have checked that setting the heap size to a small value does not
 result in a crash - an exception is thrown instead. It does not appear to
 be the same OOM exception as under .net, but there is no crash with mono
 stacktraces etc. In contrast, the issue I need help with produces several
 native stacktraces and no IL stacktrace.

 Also, it would be be hard to explain why running under a debugger might
 make the problem go away if that was the reason.

 BTW, The message at the end of this stacktrace didn't use to happen under
 mono 3.6 and might be an additional indication that some mono internals are
 rather ill at crashtime, though in principle it could be unprovoked and/or
 unrelated gdb breakage.

 Thread 1 (Thread 0x7fedacfca780 (LWP 30016)):
 #0  0x7fedac1b19e4 in sigsuspend () from /lib64/libc.so.6
 #1  0x005cbf54 in suspend_thread (sig=value optimized out,
 siginfo=value optimized out, context=0x7fffaa5a8440) at
 sgen-os-posix.c:113
 #2  suspend_handler (sig=value optimized out, siginfo=value optimized
 out, context=0x7fffaa5a8440) at sgen-os-posix.c:140
 #3  signal handler called
 #4  0x7fedac51e5ba in pthread_cond_wait@@GLIBC_2.3.2 () from
 /lib64/libpthread.so.0
 #5  0x0060d99c in _wapi_handle_timedwait_signal_handle
 (handle=0x280a, timeout=0x0, alertable=1, poll=value optimized
 out) at handles.c:1596
 #6  0x0061fe4b in WaitForSingleObjectEx (handle=0x280a,
 timeout=4294967295, alertable=1) at wait.c:194
 #7  0x0058233c in ves_icall_System_Threading_Thread_Join_internal
 (this=0x7fedacf242d0, ms=-1, thread=0x280a) at threads.c:1306
 #8  0x414e04de in ?? ()
 #9  0x7feda5c50908 in ?? ()
 #10 0x7fffaa5a8fa0 in ?? ()
 #11 0x0001 in ?? ()
 #12 0x7fffaa5a8fa0 in ?? ()
 #13 0x414c5c40 in ?? ()
 #14 0x00a0ba50 in ?? ()
 #15 0x414e046c in ?? ()
 #16 0x7fffaa5a8d40 in ?? ()
 #17 0x7fffaa5a8b30 in ?? ()
 #18 0x7feda45a51b3 in System.Threading.Thread:Join
 (this=../../gdb/dwarf2-frame.c:694: internal-error: Unknown CFI
 encountered.
 A problem internal to GDB has been detected,
 further debugging may prove unreliable.
 Quit this debugging session? (y or n) [answered Y; input not from
 terminal]
 ../../gdb/dwarf2-frame.c:694: internal-error: Unknown CFI encountered.
 A problem internal to GDB has been detected,
 further debugging may prove unreliable.
 Create a core file of GDB? (y or n) [answered Y; input not from terminal]





 On 6 September 2014 08:58, Andrea Francesco Iuorio 
 andreafrancesco.iuo...@gmail.com wrote:

 Stupid question but someone have to ask: have you set MONO_GC_PARAMS for
 use a bigger heap ? You can set mono heap size appending
 max-heap-size= to your MONO_GC_PARAMS.


 2014-09-05 20:24 GMT+02:00 mono user mono.user...@gmail.com:

 Sorry, I meant to say I was using 3.8.0, not 3.0.8. I'll try the git
 version later.


 On 5 September 2014 19:19, Juan Cristóbal Olivares 
 cristo...@cxsoftware.com wrote:

 I think you should try with mono 3.8 or, even better, with the git
 version.


 On Fri, Sep 5, 2014 at 1:26 PM, mono user mono.user...@gmail.com
 wrote:

 It was suggested I try the boehm garbage collector. My code dies
 quickly, saying Too many heap sections: Increase MAXHINCR or
 MAX_HEAP_SECTS

 It was also suggested the reason might be that I am running out of
 memory. That is a possibility, though I now have a crash that happens 
 when
 Mono is using about 12G of virtual space on a 64G machine. I still wanted
 to verify if the reason was a failed allocation, and ran mono in a
 debugger. The code then executed fine, suggesting that lack of resources
 might not be the reason for the crashes. The same code fails reliably 
 when
 started from the command line. Having said that, something probably does
 think that memory has run out. I have seen error messages along the lines
 of Error: Garbage collector could not allocate 16384 bytes of memory for
 major heap section. even though there is plenty of memory available. I
 have also seen clean out-of-memory crashes (i.e. my code terminates 
 cleanly
 with a clear error message and no 

Re: [Mono-dev] [Mono-list] Per-process memory overhead

2014-09-08 Thread Chris Morgan
On Fri, Sep 5, 2014 at 8:03 PM, Chris Morgan chmor...@gmail.com wrote:

 Posting to the devel list to see if anyone has any other ideas. I'd love
 to get the overhead of these processes down rather than be worried about
 running out of memory or having to rewrite code in c/c++...


 On Sun, Aug 31, 2014 at 10:26 AM, Agustin Gimenez geni...@gmail.com
 wrote:

 Hi Chris.

 .net and mono always have some overhead, so I think it's normal.

 Instead of creating a dozen of processes, why don't you create just one
 and as many buses as you need inside that process?


 The thought crossed my mind to do that. It isn't the simplest approach
 though but it would work. If it works then its suitable if say 12 of these
 bridges would fit inside of a single 14MB process. If not then I'll end up
 having to reimplement in c and I'd prefer not to go that route.

 Is ~14MB really the overhead I should be expecting per-process? I haven't
 tried mono 3.6 yet but nothing in the release notes indicated a large
 memory overhead savings.





 Cheers.
 El 31/08/2014 02:52, Chris Morgan chmor...@gmail.com escribió:

  Hello.

 I'm looking to use mono for some dbus bridges with dbus-sharp. I've got
 a pretty simple bridge, a couple of classes and a single dbus interface
 that bridges to a socket in a console application. It looks like each
 instance has ~14MB of memory overhead, from smem output:

 30038 cmorgan  mono display_interface.exe 01679219650
  23488

 So, 16.7MB USS, 19.65MB PSS and 23.48MB RSS.

 Using mono 3.4 on Fedora 20.


 I ran the alloc profiler on the application and it looks like there was
 some 700k of memory allocated in the application itself, quite small
 compared to the process memory.

 I'd like to be able to use mono to create a dozen or more of these dbus
 bridges but the embedded arm system I'm using only has 512MB of ram.

 I haven't tested on the arm platform yet, but I'm assuming a similar
 amount of overhead for each process.

 Is this a normal amount of overhead per-process? Thoughts on how I might
 be able to reduce it?

 Chris


 ___
 Mono-list maillist  -  mono-l...@lists.ximian.com
 http://lists.ximian.com/mailman/listinfo/mono-list





Anyone have any experience in this area of trying to run several mono
applications on an embedded system with limited memory?

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


[Mono-dev] New to Mono: Port from iOS to Android Question

2014-09-08 Thread jimscott007
I'm looking to get involved in a project that already has a working iOS app
registered with the store and available for download. The next step is to
code the Android version of the app and I'm told that the iOS version was
built using Mono.

I'm trying to get an idea for what kind of lift this is. The dev shop that
built the iOS app is a professional near shore developer and they've been
used before so I'm assuming the existing code is pretty good. I was curious
if anyone here has any experience with something like this and was hoping
they'd be willing to share their thoughts.



--
View this message in context: 
http://mono.1490590.n4.nabble.com/New-to-Mono-Port-from-iOS-to-Android-Question-tp4663783.html
Sent from the Mono - Dev mailing list archive at Nabble.com.
___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


Re: [Mono-dev] New to Mono: Port from iOS to Android Question

2014-09-08 Thread Jonathan Pryor
On Sep 8, 2014, at 1:31 PM, jimscott007 jimscott...@gmail.com wrote:
 I'm looking to get involved in a project that already has a working iOS app 
 registered with the store and available for download. The next step is to 
 code the Android version of the app and I'm told that the iOS version was 
 built using Mono.

In all likelihood, the iOS app was written with MonoTouch or Xamarin.iOS. You 
may be able to use Xamarin.Android to assist in the Android port:

http://xamarin.com/platform

 - Jon

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