[karmic] System.TypeInitializationException

Bug #390966 reported by Asif Youssuff
28
This bug affects 3 people
Affects Status Importance Assigned to Milestone
gnome-do (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Binary package hint: gnome-do

When starting do, I get these errors in console:

Unhandled Exception: System.TypeInitializationException: An exception was thrown by the type initializer for Mono.Unix.Native.Stdlib ---> System.DllNotFoundException: libMonoPosixHelper.so
  at (wrapper managed-to-native) Mono.Unix.Native.Stdlib:GetDefaultSignal ()
  at Mono.Unix.Native.Stdlib..cctor () [0x00000]
  --- End of inner exception stack trace ---
  at Mono.Unix.UnixMarshal.AllocHeap (Int64 size) [0x00000]
  at Mono.Unix.UnixMarshal.StringToHeap (System.String s, Int32 index, Int32 count, System.Text.Encoding encoding) [0x00000]
  at Mono.Unix.UnixMarshal.StringToHeap (System.String s, System.Text.Encoding encoding) [0x00000]
  at Mono.Unix.UnixMarshal.StringToHeap (System.String s) [0x00000]
  at Mono.Unix.Catalog.MarshalStrings (System.String s1, System.IntPtr& p1, System.String s2, System.IntPtr& p2, System.String s3, System.IntPtr& p3) [0x00000]
  at Mono.Unix.Catalog.Init (System.String package, System.String localedir) [0x00000]
  at Do.Do.Main (System.String[] args) [0x00000]

Unhandled Exception: System.TypeInitializationException: An exception was thrown by the type initializer for Mono.Unix.Native.Stdlib ---> System.DllNotFoundException: libMonoPosixHelper.so
  at (wrapper managed-to-native) Mono.Unix.Native.Stdlib:GetDefaultSignal ()
  at Mono.Unix.Native.Stdlib..cctor () [0x00000]
  --- End of inner exception stack trace ---
  at Mono.Unix.UnixMarshal.AllocHeap (Int64 size) [0x00000]
  at Mono.Unix.UnixMarshal.StringToHeap (System.String s, Int32 index, Int32 count, System.Text.Encoding encoding) [0x00000]
  at Mono.Unix.UnixMarshal.StringToHeap (System.String s, System.Text.Encoding encoding) [0x00000]
  at Mono.Unix.UnixMarshal.StringToHeap (System.String s) [0x00000]
  at Mono.Unix.Catalog.MarshalStrings (System.String s1, System.IntPtr& p1, System.String s2, System.IntPtr& p2, System.String s3, System.IntPtr& p3) [0x00000]
  at Mono.Unix.Catalog.Init (System.String package, System.String localedir) [0x00000]
  at Do.Do.Main (System.String[] args) [0x00000]

ProblemType: Bug
Architecture: amd64
Date: Tue Jun 23 01:14:36 2009
DistroRelease: Ubuntu 9.10
NonfreeKernelModules: nvidia
Package: gnome-do 0.8.1.3+dfsg-1
ProcEnviron:
 SHELL=/bin/bash
 LANG=en_US.UTF-8
ProcVersionSignature: Ubuntu 2.6.30-9.10-generic
SourcePackage: gnome-do
Uname: Linux 2.6.30-9-generic x86_64

Revision history for this message
Asif Youssuff (yoasif) wrote :
Mingming Ren (portis25)
Changed in gnome-do (Ubuntu):
status: New → Confirmed
Mingming Ren (portis25)
Changed in gnome-do (Ubuntu):
status: Confirmed → Fix Released
Revision history for this message
Juvenn Woo (juvenn) wrote :

This happened exactly on my Jaunty laptop, i.e. it produced same error message. And I know it related to Mono packages, apt-get notifies me Mono packages are not upgraded. But when I apt-get upgrade, it simply said all Mono packages are kept back. I've no idea what it means. So, anyone could help? Thanks

Revision history for this message
macat (attila-maczak) wrote :

Robert says (https://bugs.launchpad.net/ubuntu/+source/gnome-do/+bug/401069/comments/2) this bug resolved, but the mono applications still does not start.

DISTRIB_DESCRIPTION="Ubuntu 9.04"
2.6.28-13-generic #45-Ubuntu SMP

Revision history for this message
Robert Dyer (psybers) wrote :

The fix is to make sure you have the libmono-posix2.0-cil package installed, as an upgrade to mono seems to somehow remove that for some people.

Note however that the trace you attached does not appear to be *this* bug. You may be experiencing a different bug, and need to submit a different bug report.

This bug and bug 401069 are identical and resolved.

Revision history for this message
Mrawhimskell (uduogah-gmail) wrote :
Download full text (3.3 KiB)

Hi Robert,

I can confirm i have libmono-posix2.0-cil installed. I even reinstalled it to make sure but my mono apps still aren't working and gives same error messages as before
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

$ sudo aptitude reinstall libmono-posix2.0-cil
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initialising package states... Done
The following packages will be REINSTALLED:
  libmono-posix2.0-cil
0 packages upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 0 not upgraded.
Need to get 103kB of archives. After unpacking 0B will be used.
Writing extended state information... Done
Get:1 http://ubuntu.virginmedia.com jaunty-updates/main libmono-posix2.0-cil 2.0.1-4ubuntu0.1 [103kB]
Fetched 103kB in 0s (260kB/s)
(Reading database ... 322176 files and directories currently installed.)
Preparing to replace libmono-posix2.0-cil 2.0.1-4ubuntu0.1 (using .../libmono-posix2.0-cil_2.0.1-4ubuntu0.1_all.deb) ...
Unpacking replacement libmono-posix2.0-cil ...
Setting up libmono-posix2.0-cil (2.0.1-4ubuntu0.1) ...
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initialising package states... Done

$ gnome-do

Unhandled Exception: System.TypeInitializationException: An exception was thrown by the type initializer for Mono.Unix.Native.Stdlib ---> System.DllNotFoundException: libMonoPosixHelper.so
  at (wrapper managed-to-native) Mono.Unix.Native.Stdlib:GetDefaultSignal ()
  at Mono.Unix.Native.Stdlib..cctor () [0x00000]
  --- End of inner exception stack trace ---
  at Mono.Unix.UnixMarshal.AllocHeap (Int64 size) [0x00000]
  at Mono.Unix.UnixMarshal.StringToHeap (System.String s, Int32 index, Int32 count, System.Text.Encoding encoding) [0x00000]
  at Mono.Unix.UnixMarshal.StringToHeap (System.String s, System.Text.Encoding encoding) [0x00000]
  at Mono.Unix.UnixMarshal.StringToHeap (System.String s) [0x00000]
  at Mono.Unix.Catalog.MarshalStrings (System.String s1, System.IntPtr& p1, System.String s2, System.IntPtr& p2, System.String s3, System.IntPtr& p3) [0x00000]
  at Mono.Unix.Catalog.Init (System.String package, System.String localedir) [0x00000]
  at Do.Do.Main (System.String[] args) [0x00000]

Unhandled Exception: System.TypeInitializationException: An exception was thrown by the type initializer for Mono.Unix.Native.Stdlib ---> System.DllNotFoundException: libMonoPosixHelper.so
  at (wrapper managed-to-native) Mono.Unix.Native.Stdlib:GetDefaultSignal ()
  at Mono.Unix.Native.Stdlib..cctor () [0x00000]
  --- End of inner exception stack trace ---
  at Mono.Unix.UnixMarshal.AllocHeap (Int64 size) [0x00000]
  at Mono.Unix.UnixMarshal.StringToHeap (System.String s, Int32 index, Int32 count, System.Text.Encoding encoding) [0x00000]
  at Mono.Unix.UnixMarshal.StringToHeap (System.String s, System.Text.Encoding encoding) [0x00000]
  at Mono.Unix.UnixMarshal.StringToHeap (System.String s) [0x00000]
  at Mono.Unix.Catalog.MarshalStrings (System.String s1, System.IntPtr& p1, System.String s2, System.IntPtr& p2, Syst...

Read more...

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.