Debian Bug report logs - #657022
mono-devel: Unhandled Exception: Mono.CSharp.InternalErrorException

version graph

Package: mono-devel; Maintainer for mono-devel is Debian Mono Group <pkg-mono-group@lists.alioth.debian.org>; Source for mono-devel is src:mono.

Reported by: Mathieu Malaterre <malat@debian.org>

Date: Mon, 23 Jan 2012 14:15:01 UTC

Severity: important

Found in versions mono/2.6.7-5, mono-devel/2.10.5-2

Reply or subscribe to this bug.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, Debian Mono Group <pkg-mono-group@lists.alioth.debian.org>:
Bug#657022; Package mono-devel. (Mon, 23 Jan 2012 14:15:04 GMT) Full text and rfc822 format available.

Acknowledgement sent to Mathieu Malaterre <mathieu.malaterre@gmail.com>:
New Bug report received and forwarded. Copy sent to Debian Mono Group <pkg-mono-group@lists.alioth.debian.org>. (Mon, 23 Jan 2012 14:15:05 GMT) Full text and rfc822 format available.

Message #5 received at submit@bugs.debian.org (full text, mbox):

From: Mathieu Malaterre <mathieu.malaterre@gmail.com>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: mono-devel: Unhandled Exception: Mono.CSharp.InternalErrorException
Date: Mon, 23 Jan 2012 15:13:13 +0100
Package: mono-devel
Version: 2.6.7-5
Severity: important


For some reason mono-csc segfault, and leads to the following:

[100%] Building C# library 'Kitware.VTK.GDCM'...
cd /home/mathieu/Perso/gdcm-mummy/Utilities/VTK && /usr/bin/mono-csc /out:/home/mathieu/Perso/gdcm-mummy/bin/./Kitware.VTK.GDCM.dll /doc:/home/mathieu/Perso/gdcm-mummy/bin/./Kitware.VTK.GDCM.xml /target:library /linkresource:/home/mathieu/Perso/gdcm-mummy/bin/./libKitware.VTK.vtkgdcm.Unmanaged.so /reference:/usr/lib/cli/ActiViz.NET/Kitware.VTK.dll @/home/mathieu/Perso/gdcm-mummy/Utilities/VTK/Kitware.VTK.GDCM.CscArgs.txt
/home/mathieu/Perso/gdcm-mummy/Utilities/VTK/csharp/vtkGDCMTesting.cs(23,31): error CS0246: The type or namespace name `vtkObject' could not be found. Are you missing a using directive or an assembly reference?
/home/mathieu/Perso/gdcm-mummy/Utilities/VTK/csharp/vtkImageColorViewer.cs(60,36): error CS0246: The type or namespace name `vtkObject' could not be found. Are you missing a using directive or an assembly reference?
/home/mathieu/Perso/gdcm-mummy/Utilities/VTK/csharp/vtkRTStructSetProperties.cs(27,41): error CS0246: The type or namespace name `vtkObject' could not be found. Are you missing a using directive or an assembly reference?

Unhandled Exception: Mono.CSharp.InternalErrorException: /home/mathieu/Perso/gdcm-mummy/Utilities/VTK/csharp/vtkGDCMImageReader.cs(65,14): Kitware.VTK.vtkGDCMImageReader ---> Mono.CSharp.InternalErrorException: /home/mathieu/Perso/gdcm-mummy/Utilities/VTK/csharp/vtkGDCMImageReader.cs(75,28): Kitware.VTK.vtkGDCMImageReader.MRFullTypeName ---> Mono.CSharp.InternalErrorException: Could not import type `Kitware.VTK.vtkMedicalImageReader2' from `Kitware.VTK, Version=5.8.0.607, Culture=neutral, PublicKeyToken=0738eb9f132ed756' ---> System.TypeLoadException: Could not load type 'Kitware.VTK.vtkMedicalImageReader2' from assembly 'Kitware.VTK, Version=5.8.0.607, Culture=neutral, PublicKeyToken=0738eb9f132ed756'.
  at (wrapper managed-to-native) System.MonoType:GetMethodsByName (System.MonoType,string,System.Reflection.BindingFlags,bool,System.Type)
  at System.MonoType.GetMethods (BindingFlags bindingAttr) [0x00000] in <filename unknown>:0 
  at System.Type.FindMembers (MemberTypes memberType, BindingFlags bindingAttr, System.Reflection.MemberFilter filter, System.Object filterCriteria) [0x00000] in <filename unknown>:0 
  at System.MonoType.GetMembers (BindingFlags bindingAttr) [0x00000] in <filename unknown>:0 
  at Mono.CSharp.ImportedTypeDefinition.LoadMembers (Mono.CSharp.TypeSpec declaringType, Boolean onlyTypes, Mono.CSharp.MemberCache& cache) [0x00000] in <filename unknown>:0 
  --- End of inner exception stack trace ---
  at Mono.CSharp.ImportedTypeDefinition.LoadMembers (Mono.CSharp.TypeSpec declaringType, Boolean onlyTypes, Mono.CSharp.MemberCache& cache) [0x00000] in <filename unknown>:0 
  at Mono.CSharp.TypeSpec.InitializeMemberCache (Boolean onlyTypes) [0x00000] in <filename unknown>:0 
  at Mono.CSharp.TypeSpec.get_MemberCache () [0x00000] in <filename unknown>:0 
  at Mono.CSharp.MemberCache.FindBaseMember (Mono.CSharp.MemberCore member, Mono.CSharp.MemberSpec& bestCandidate) [0x00000] in <filename unknown>:0 
  at Mono.CSharp.FieldBase.CheckBase () [0x00000] in <filename unknown>:0 
  at Mono.CSharp.FieldBase.DoMemberTypeDependentChecks () [0x00000] in <filename unknown>:0 
  at Mono.CSharp.MemberBase.Define () [0x00000] in <filename unknown>:0 
  at Mono.CSharp.Const.Define () [0x00000] in <filename unknown>:0 
  at Mono.CSharp.TypeContainer.DefineContainerMembers (IList mcal) [0x00000] in <filename unknown>:0 
  --- End of inner exception stack trace ---
  at Mono.CSharp.TypeContainer.DefineContainerMembers (IList mcal) [0x00000] in <filename unknown>:0 
  at Mono.CSharp.Class.DefineContainerMembers (IList list) [0x00000] in <filename unknown>:0 
  at Mono.CSharp.TypeContainer.DoDefineMembers () [0x00000] in <filename unknown>:0 
  at Mono.CSharp.ClassOrStruct.DoDefineMembers () [0x00000] in <filename unknown>:0 
  at Mono.CSharp.Class.DoDefineMembers () [0x00000] in <filename unknown>:0 
  at Mono.CSharp.TypeContainer.Define () [0x00000] in <filename unknown>:0 
  at Mono.CSharp.ModuleContainer.Define () [0x00000] in <filename unknown>:0 
  --- End of inner exception stack trace ---
  at Mono.CSharp.ModuleContainer.Define () [0x00000] in <filename unknown>:0 
  at Mono.CSharp.Driver.Compile () [0x00000] in <filename unknown>:0 
  at Mono.CSharp.Driver.Main (System.String[] args) [0x00000] in <filename unknown>:0 
[ERROR] FATAL UNHANDLED EXCEPTION: Mono.CSharp.InternalErrorException: /home/mathieu/Perso/gdcm-mummy/Utilities/VTK/csharp/vtkGDCMImageReader.cs(65,14): Kitware.VTK.vtkGDCMImageReader ---> Mono.CSharp.InternalErrorException: /home/mathieu/Perso/gdcm-mummy/Utilities/VTK/csharp/vtkGDCMImageReader.cs(75,28): Kitware.VTK.vtkGDCMImageReader.MRFullTypeName ---> Mono.CSharp.InternalErrorException: Could not import type `Kitware.VTK.vtkMedicalImageReader2' from `Kitware.VTK, Version=5.8.0.607, Culture=neutral, PublicKeyToken=0738eb9f132ed756' ---> System.TypeLoadException: Could not load type 'Kitware.VTK.vtkMedicalImageReader2' from assembly 'Kitware.VTK, Version=5.8.0.607, Culture=neutral, PublicKeyToken=0738eb9f132ed756'.
  at (wrapper managed-to-native) System.MonoType:GetMethodsByName (System.MonoType,string,System.Reflection.BindingFlags,bool,System.Type)
  at System.MonoType.GetMethods (BindingFlags bindingAttr) [0x00000] in <filename unknown>:0 
  at System.Type.FindMembers (MemberTypes memberType, BindingFlags bindingAttr, System.Reflection.MemberFilter filter, System.Object filterCriteria) [0x00000] in <filename unknown>:0 
  at System.MonoType.GetMembers (BindingFlags bindingAttr) [0x00000] in <filename unknown>:0 
  at Mono.CSharp.ImportedTypeDefinition.LoadMembers (Mono.CSharp.TypeSpec declaringType, Boolean onlyTypes, Mono.CSharp.MemberCache& cache) [0x00000] in <filename unknown>:0 
  --- End of inner exception stack trace ---
  at Mono.CSharp.ImportedTypeDefinition.LoadMembers (Mono.CSharp.TypeSpec declaringType, Boolean onlyTypes, Mono.CSharp.MemberCache& cache) [0x00000] in <filename unknown>:0 
  at Mono.CSharp.TypeSpec.InitializeMemberCache (Boolean onlyTypes) [0x00000] in <filename unknown>:0 
  at Mono.CSharp.TypeSpec.get_MemberCache () [0x00000] in <filename unknown>:0 
  at Mono.CSharp.MemberCache.FindBaseMember (Mono.CSharp.MemberCore member, Mono.CSharp.MemberSpec& bestCandidate) [0x00000] in <filename unknown>:0 
  at Mono.CSharp.FieldBase.CheckBase () [0x00000] in <filename unknown>:0 
  at Mono.CSharp.FieldBase.DoMemberTypeDependentChecks () [0x00000] in <filename unknown>:0 
  at Mono.CSharp.MemberBase.Define () [0x00000] in <filename unknown>:0 
  at Mono.CSharp.Const.Define () [0x00000] in <filename unknown>:0 
  at Mono.CSharp.TypeContainer.DefineContainerMembers (IList mcal) [0x00000] in <filename unknown>:0 
  --- End of inner exception stack trace ---
  at Mono.CSharp.TypeContainer.DefineContainerMembers (IList mcal) [0x00000] in <filename unknown>:0 
  at Mono.CSharp.Class.DefineContainerMembers (IList list) [0x00000] in <filename unknown>:0 
  at Mono.CSharp.TypeContainer.DoDefineMembers () [0x00000] in <filename unknown>:0 
  at Mono.CSharp.ClassOrStruct.DoDefineMembers () [0x00000] in <filename unknown>:0 
  at Mono.CSharp.Class.DoDefineMembers () [0x00000] in <filename unknown>:0 
  at Mono.CSharp.TypeContainer.Define () [0x00000] in <filename unknown>:0 
  at Mono.CSharp.ModuleContainer.Define () [0x00000] in <filename unknown>:0 
  --- End of inner exception stack trace ---
  at Mono.CSharp.ModuleContainer.Define () [0x00000] in <filename unknown>:0 
  at Mono.CSharp.Driver.Compile () [0x00000] in <filename unknown>:0 
  at Mono.CSharp.Driver.Main (System.String[] args) [0x00000] in <filename unknown>:0 
make[2]: *** [bin/./Kitware.VTK.GDCM.dll] Error 1
make[2]: Leaving directory `/home/mathieu/Perso/gdcm-mummy'
make[1]: *** [Utilities/VTK/CMakeFiles/Kitware.VTK.GDCM.dir/all] Error 2
make[1]: Leaving directory `/home/mathieu/Perso/gdcm-mummy'
make: *** [all] Error 2


-- System Information:
Debian Release: 6.0.1
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable'), (200, 'testing'), (100, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.32-5-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.utf8, LC_CTYPE=en_US.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages mono-devel depends on:
ii  libc6                         2.11.2-10  Embedded GNU C Library: Shared lib
ii  libglib2.0-0                  2.24.2-1   The GLib library of C routines
ii  libmono-cecil-private-cil     2.6.7-5    Mono.Cecil library
ii  libmono-cil-dev               2.6.7-5    Mono Base Class Libraries (BCL) - 
ii  libmono-corlib1.0-cil         2.6.7-5    Mono core library (for CLI 1.0)
ii  libmono-corlib2.0-cil         2.6.7-5    Mono core library (for CLI 2.0)
ii  libmono-getoptions2.0-cil     2.6.7-5    Mono.GetOptions library (for CLI 2
ii  libmono-relaxng1.0-cil        2.6.7-5    Mono Relaxng library (for CLI 1.0)
ii  libmono-relaxng2.0-cil        2.6.7-5    Mono Relaxng library (for CLI 2.0)
ii  libmono-security1.0-cil       2.6.7-5    Mono Security library (for CLI 1.0
ii  libmono-system-data-linq2.0-c 2.6.7-5    Mono System.Data.Linq Library
ii  libmono-system-data2.0-cil    2.6.7-5    Mono System.Data Library (for CLI 
ii  libmono-system-runtime1.0-cil 2.6.7-5    Mono System.Runtime library (for C
ii  libmono-system-web1.0-cil     2.6.7-5    Mono System.Web library (for CLI 1
ii  libmono-system-web2.0-cil     2.6.7-5    Mono System.Web Library (for CLI 2
ii  libmono-system1.0-cil         2.6.7-5    Mono System libraries (for CLI 1.0
ii  libmono-system2.0-cil         2.6.7-5    Mono System libraries (for CLI 2.0
ii  libmono-wcf3.0-cil            2.6.7-5    Mono WCF libraries (for CLI 2.0)
ii  libmono2.0-cil                2.6.7-5    Mono libraries (for CLI 2.0)
ii  mono-2.0-devel                2.6.7-5    Mono development tools for CLI 2.0
ii  mono-gac                      2.6.7-5    Mono GAC tool
ii  mono-runtime                  2.6.7-5    Mono runtime

Versions of packages mono-devel recommends:
ii  mono-csharp-shell             2.6.7-5    interactive C# shell

mono-devel suggests no packages.

-- no debconf information




Information forwarded to debian-bugs-dist@lists.debian.org, Debian Mono Group <pkg-mono-group@lists.alioth.debian.org>:
Bug#657022; Package mono-devel. (Mon, 23 Jan 2012 14:21:05 GMT) Full text and rfc822 format available.

Acknowledgement sent to Mathieu Malaterre <mathieu.malaterre@gmail.com>:
Extra info received and forwarded to list. Copy sent to Debian Mono Group <pkg-mono-group@lists.alioth.debian.org>. (Mon, 23 Jan 2012 14:21:06 GMT) Full text and rfc822 format available.

Message #10 received at 657022@bugs.debian.org (full text, mbox):

From: Mathieu Malaterre <mathieu.malaterre@gmail.com>
To: 657022@bugs.debian.org
Subject: Re: Bug#657022: Acknowledgement (mono-devel: Unhandled Exception: Mono.CSharp.InternalErrorException)
Date: Mon, 23 Jan 2012 15:18:03 +0100
[Message part 1 (text/plain, inline)]
I am attaching one of the problematic file: vtkGDCMImageReader.cs
[vtkGDCMImageReader.cs (text/x-csharp, attachment)]

Bug Marked as found in versions mono-devel/2.10.5-2. Request was from Mathieu Malaterre <mathieu.malaterre@gmail.com> to control@bugs.debian.org. (Mon, 23 Jan 2012 14:21:08 GMT) Full text and rfc822 format available.

Information forwarded to debian-bugs-dist@lists.debian.org, Debian Mono Group <pkg-mono-group@lists.alioth.debian.org>:
Bug#657022; Package mono-devel. (Mon, 23 Jan 2012 19:51:10 GMT) Full text and rfc822 format available.

Acknowledgement sent to Iain Lane <laney@debian.org>:
Extra info received and forwarded to list. Copy sent to Debian Mono Group <pkg-mono-group@lists.alioth.debian.org>. (Mon, 23 Jan 2012 19:51:10 GMT) Full text and rfc822 format available.

Message #17 received at 657022@bugs.debian.org (full text, mbox):

From: Iain Lane <laney@debian.org>
To: Mathieu Malaterre <mathieu.malaterre@gmail.com>, 657022@bugs.debian.org
Subject: Re: [pkg-mono-group] Bug#657022: mono-devel: Unhandled Exception: Mono.CSharp.InternalErrorException
Date: Mon, 23 Jan 2012 19:50:05 +0000
[Message part 1 (text/plain, inline)]
On Mon, Jan 23, 2012 at 03:13:13PM +0100, Mathieu Malaterre wrote:
> Package: mono-devel
> Version: 2.6.7-5
> Severity: important
> 
> 
> For some reason mono-csc segfault, and leads to the following:

thanks.

What were you trying to build? How can we get the source and reproduce
it?

-- 
Iain Lane                                  [ iain@orangesquash.org.uk ]
Debian Developer                                   [ laney@debian.org ]
Ubuntu Developer                                   [ laney@ubuntu.com ]
PhD student                                       [ ial@cs.nott.ac.uk ]
[signature.asc (application/pgp-signature, inline)]

Information forwarded to debian-bugs-dist@lists.debian.org, Debian Mono Group <pkg-mono-group@lists.alioth.debian.org>:
Bug#657022; Package mono-devel. (Mon, 23 Jan 2012 19:51:12 GMT) Full text and rfc822 format available.

Acknowledgement sent to Jo Shields <directhex@apebox.org>:
Extra info received and forwarded to list. Copy sent to Debian Mono Group <pkg-mono-group@lists.alioth.debian.org>. (Mon, 23 Jan 2012 19:51:12 GMT) Full text and rfc822 format available.

Message #22 received at submit@bugs.debian.org (full text, mbox):

From: Jo Shields <directhex@apebox.org>
To: Mathieu Malaterre <mathieu.malaterre@gmail.com>, 657022@bugs.debian.org
Cc: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: Re: Bug#657022: mono-devel: Unhandled Exception: Mono.CSharp.InternalErrorException
Date: Mon, 23 Jan 2012 19:50:30 +0000
On Mon, 2012-01-23 at 15:13 +0100, Mathieu Malaterre wrote:
> Package: mono-devel
> Version: 2.6.7-5
> Severity: important
> 
> 
> For some reason mono-csc segfault, and leads to the following:

Can you please provide a link to the problem source, so we can try to
reproduce the issue locally?





Information forwarded to debian-bugs-dist@lists.debian.org, Debian Mono Group <pkg-mono-group@lists.alioth.debian.org>:
Bug#657022; Package mono-devel. (Mon, 23 Jan 2012 20:00:03 GMT) Full text and rfc822 format available.

Acknowledgement sent to Jo Shields <directhex@apebox.org>:
Extra info received and forwarded to list. Copy sent to Debian Mono Group <pkg-mono-group@lists.alioth.debian.org>. (Mon, 23 Jan 2012 20:00:03 GMT) Full text and rfc822 format available.

Information forwarded to debian-bugs-dist@lists.debian.org, Debian Mono Group <pkg-mono-group@lists.alioth.debian.org>:
Bug#657022; Package mono-devel. (Mon, 23 Jan 2012 20:12:19 GMT) Full text and rfc822 format available.

Acknowledgement sent to Mathieu Malaterre <mathieu.malaterre@gmail.com>:
Extra info received and forwarded to list. Copy sent to Debian Mono Group <pkg-mono-group@lists.alioth.debian.org>. (Mon, 23 Jan 2012 20:12:20 GMT) Full text and rfc822 format available.

Message #32 received at 657022@bugs.debian.org (full text, mbox):

From: Mathieu Malaterre <mathieu.malaterre@gmail.com>
To: Jo Shields <directhex@apebox.org>
Cc: 657022@bugs.debian.org
Subject: Re: Bug#657022: mono-devel: Unhandled Exception: Mono.CSharp.InternalErrorException
Date: Mon, 23 Jan 2012 21:08:45 +0100
On Mon, Jan 23, 2012 at 8:50 PM, Jo Shields <directhex@apebox.org> wrote:
> On Mon, 2012-01-23 at 15:13 +0100, Mathieu Malaterre wrote:
>> Package: mono-devel
>> Version: 2.6.7-5
>> Severity: important
>>
>>
>> For some reason mono-csc segfault, and leads to the following:
>
> Can you please provide a link to the problem source, so we can try to
> reproduce the issue locally?

$ wget -O bla.cs
http://bugs.debian.org/cgi-bin/bugreport.cgi?msg=10;filename=vtkGDCMImageReader.cs;att=1;bug=657022
$ /usr/bin/mono-csc /out:bla.dll /target:library
/reference:/usr/lib/cli/ActiViz.NET/Kitware.VTK.dll bla.cs

You need to install libactiviz.net-cil first.

Thanks
-- 
Mathieu




Information forwarded to debian-bugs-dist@lists.debian.org, Debian Mono Group <pkg-mono-group@lists.alioth.debian.org>:
Bug#657022; Package mono-devel. (Mon, 23 Jan 2012 21:03:15 GMT) Full text and rfc822 format available.

Acknowledgement sent to Jo Shields <directhex@apebox.org>:
Extra info received and forwarded to list. Copy sent to Debian Mono Group <pkg-mono-group@lists.alioth.debian.org>. (Mon, 23 Jan 2012 21:03:15 GMT) Full text and rfc822 format available.

Message #37 received at 657022@bugs.debian.org (full text, mbox):

From: Jo Shields <directhex@apebox.org>
To: Mathieu Malaterre <mathieu.malaterre@gmail.com>, 657022@bugs.debian.org
Subject: Re: Bug#657022: mono-devel: Unhandled Exception: Mono.CSharp.InternalErrorException
Date: Mon, 23 Jan 2012 21:01:02 +0000
On Mon, 2012-01-23 at 21:08 +0100, Mathieu Malaterre wrote:
> On Mon, Jan 23, 2012 at 8:50 PM, Jo Shields <directhex@apebox.org> wrote:
> > On Mon, 2012-01-23 at 15:13 +0100, Mathieu Malaterre wrote:
> >> Package: mono-devel
> >> Version: 2.6.7-5
> >> Severity: important
> >>
> >>
> >> For some reason mono-csc segfault, and leads to the following:
> >
> > Can you please provide a link to the problem source, so we can try to
> > reproduce the issue locally?
> 
> $ wget -O bla.cs
> http://bugs.debian.org/cgi-bin/bugreport.cgi?msg=10;filename=vtkGDCMImageReader.cs;att=1;bug=657022
> $ /usr/bin/mono-csc /out:bla.dll /target:library
> /reference:/usr/lib/cli/ActiViz.NET/Kitware.VTK.dll bla.cs
> 
> You need to install libactiviz.net-cil first.

vtkgdcmEL_dll seems to be an undefined string? Is there a missing part
to this example?





Information forwarded to debian-bugs-dist@lists.debian.org, Debian Mono Group <pkg-mono-group@lists.alioth.debian.org>:
Bug#657022; Package mono-devel. (Mon, 23 Jan 2012 21:06:03 GMT) Full text and rfc822 format available.

Acknowledgement sent to Jo Shields <directhex@apebox.org>:
Extra info received and forwarded to list. Copy sent to Debian Mono Group <pkg-mono-group@lists.alioth.debian.org>. (Mon, 23 Jan 2012 21:06:09 GMT) Full text and rfc822 format available.

Message #42 received at submit@bugs.debian.org (full text, mbox):

From: Jo Shields <directhex@apebox.org>
To: Mathieu Malaterre <mathieu.malaterre@gmail.com>, 657022@bugs.debian.org
Cc: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: Re: Bug#657022: mono-devel: Unhandled Exception: Mono.CSharp.InternalErrorException
Date: Mon, 23 Jan 2012 21:04:41 +0000
On Mon, 2012-01-23 at 15:13 +0100, Mathieu Malaterre wrote:
> Package: mono-devel
> Version: 2.6.7-5

Looking more closely at your packages...

You report a problem with mono-devel 2.6.7-5 (from squeeze/wheezy) but
there's currently a transition happening for Mono in Unstable, and all
libraries relating to it (libactiviz.net-cil,
libkitware-mummy-runtime1.0-cil) require mono 2.10 as a minimum.
Compilation will fail when trying to build against any Sid Mono
libraries using Stable/Testing Mono.

Is reportbug misreporting the situation?





Information forwarded to debian-bugs-dist@lists.debian.org, Debian Mono Group <pkg-mono-group@lists.alioth.debian.org>:
Bug#657022; Package mono-devel. (Mon, 23 Jan 2012 21:06:42 GMT) Full text and rfc822 format available.

Acknowledgement sent to Jo Shields <directhex@apebox.org>:
Extra info received and forwarded to list. Copy sent to Debian Mono Group <pkg-mono-group@lists.alioth.debian.org>. (Mon, 23 Jan 2012 21:06:47 GMT) Full text and rfc822 format available.

Information forwarded to debian-bugs-dist@lists.debian.org, Debian Mono Group <pkg-mono-group@lists.alioth.debian.org>:
Bug#657022; Package mono-devel. (Tue, 24 Jan 2012 08:42:12 GMT) Full text and rfc822 format available.

Acknowledgement sent to Mathieu Malaterre <mathieu.malaterre@gmail.com>:
Extra info received and forwarded to list. Copy sent to Debian Mono Group <pkg-mono-group@lists.alioth.debian.org>. (Tue, 24 Jan 2012 08:42:13 GMT) Full text and rfc822 format available.

Message #52 received at 657022@bugs.debian.org (full text, mbox):

From: Mathieu Malaterre <mathieu.malaterre@gmail.com>
To: Jo Shields <directhex@apebox.org>
Cc: 657022@bugs.debian.org
Subject: Re: Bug#657022: mono-devel: Unhandled Exception: Mono.CSharp.InternalErrorException
Date: Tue, 24 Jan 2012 09:39:56 +0100
On Mon, Jan 23, 2012 at 10:04 PM, Jo Shields <directhex@apebox.org> wrote:
> On Mon, 2012-01-23 at 15:13 +0100, Mathieu Malaterre wrote:
>> Package: mono-devel
>> Version: 2.6.7-5
>
> Looking more closely at your packages...
>
> You report a problem with mono-devel 2.6.7-5 (from squeeze/wheezy) but
> there's currently a transition happening for Mono in Unstable, and all
> libraries relating to it (libactiviz.net-cil,
> libkitware-mummy-runtime1.0-cil) require mono 2.10 as a minimum.
> Compilation will fail when trying to build against any Sid Mono
> libraries using Stable/Testing Mono.
>
> Is reportbug misreporting the situation?
>

I used reportbug from my stable system, but the bug was seen from my
schroot/sid system.
The issue is that I am missing a /reference on the command line. I was
/hoping/ mono-csc would be smart enough to say 'hey I cant find ref
for class X', instead it simply generates this
Mono.CSharp.InternalErrorException. The code is incomplete, you can
remove the undefined string, this is a known issue with the C#
generator (mummy).

I can confirm (I did tag the bug report) I have the same behavior with:

$ apt-cache policy mono-devel
mono-devel:
  Installed: 2.10.5-2
  Candidate: 2.10.5-2
  Version table:
 *** 2.10.5-2 0
        500 http://ftp.fr.debian.org/debian/ sid/main amd64 Packages
        100 /var/lib/dpkg/status
     2.6.7-5 0
        500 http://ftp.fr.debian.org/debian/ sid/main amd64 Packages


$ /usr/bin/mono-csc /out:bla.dll /target:library
/reference:/usr/lib/cli/ActiViz.NET/Kitware.VTK.dll bla.cs

Unhandled Exception: Mono.CSharp.InternalErrorException:
bla.cs(65,14): Kitware.VTK.vtkGDCMImageReader --->
Mono.CSharp.InternalErrorException: bla.cs(75,28):
Kitware.VTK.vtkGDCMImageReader.MRFullTypeName --->
Mono.CSharp.InternalErrorException: Could not import type
`Kitware.VTK.vtkMedicalImageReader2' from `Kitware.VTK,
Version=5.8.0.607, Culture=neutral, PublicKeyToken=0738eb9f132ed756'
---> System.TypeLoadException: Could not load type
'Kitware.VTK.vtkMedicalImageReader2' from assembly 'Kitware.VTK,
Version=5.8.0.607, Culture=neutral, PublicKeyToken=0738eb9f132ed756'.
  at (wrapper managed-to-native) System.MonoType:GetMethodsByName
(System.MonoType,string,System.Reflection.BindingFlags,bool,System.Type)
  at System.MonoType.GetMethods (BindingFlags bindingAttr) [0x00000]
in <filename unknown>:0
  at System.Type.FindMembers (MemberTypes memberType, BindingFlags
bindingAttr, System.Reflection.MemberFilter filter, System.Object
filterCriteria) [0x00000] in <filename unknown>:0
  at System.MonoType.GetMembers (BindingFlags bindingAttr) [0x00000]
in <filename unknown>:0
  at Mono.CSharp.ImportedTypeDefinition.LoadMembers
(Mono.CSharp.TypeSpec declaringType, Boolean onlyTypes,
Mono.CSharp.MemberCache& cache) [0x00000] in <filename unknown>:0
  --- End of inner exception stack trace ---
  at Mono.CSharp.ImportedTypeDefinition.LoadMembers
(Mono.CSharp.TypeSpec declaringType, Boolean onlyTypes,
Mono.CSharp.MemberCache& cache) [0x00000] in <filename unknown>:0
  at Mono.CSharp.TypeSpec.InitializeMemberCache (Boolean onlyTypes)
[0x00000] in <filename unknown>:0
  at Mono.CSharp.TypeSpec.get_MemberCache () [0x00000] in <filename unknown>:0
  at Mono.CSharp.MemberCache.FindBaseMember (Mono.CSharp.MemberCore
member, Mono.CSharp.MemberSpec& bestCandidate) [0x00000] in <filename
unknown>:0
  at Mono.CSharp.FieldBase.CheckBase () [0x00000] in <filename unknown>:0
  at Mono.CSharp.FieldBase.DoMemberTypeDependentChecks () [0x00000] in
<filename unknown>:0
  at Mono.CSharp.MemberBase.Define () [0x00000] in <filename unknown>:0
  at Mono.CSharp.Const.Define () [0x00000] in <filename unknown>:0
  at Mono.CSharp.TypeContainer.DefineContainerMembers (IList mcal)
[0x00000] in <filename unknown>:0
  --- End of inner exception stack trace ---
  at Mono.CSharp.TypeContainer.DefineContainerMembers (IList mcal)
[0x00000] in <filename unknown>:0
  at Mono.CSharp.Class.DefineContainerMembers (IList list) [0x00000]
in <filename unknown>:0
  at Mono.CSharp.TypeContainer.DoDefineMembers () [0x00000] in
<filename unknown>:0
  at Mono.CSharp.ClassOrStruct.DoDefineMembers () [0x00000] in
<filename unknown>:0
  at Mono.CSharp.Class.DoDefineMembers () [0x00000] in <filename unknown>:0
  at Mono.CSharp.TypeContainer.Define () [0x00000] in <filename unknown>:0
  at Mono.CSharp.ModuleContainer.Define () [0x00000] in <filename unknown>:0
  --- End of inner exception stack trace ---
  at Mono.CSharp.ModuleContainer.Define () [0x00000] in <filename unknown>:0
  at Mono.CSharp.Driver.Compile () [0x00000] in <filename unknown>:0
  at Mono.CSharp.Driver.Main (System.String[] args) [0x00000] in
<filename unknown>:0
[ERROR] FATAL UNHANDLED EXCEPTION: Mono.CSharp.InternalErrorException:
bla.cs(65,14): Kitware.VTK.vtkGDCMImageReader --->
Mono.CSharp.InternalErrorException: bla.cs(75,28):
Kitware.VTK.vtkGDCMImageReader.MRFullTypeName --->
Mono.CSharp.InternalErrorException: Could not import type
`Kitware.VTK.vtkMedicalImageReader2' from `Kitware.VTK,
Version=5.8.0.607, Culture=neutral, PublicKeyToken=0738eb9f132ed756'
---> System.TypeLoadException: Could not load type
'Kitware.VTK.vtkMedicalImageReader2' from assembly 'Kitware.VTK,
Version=5.8.0.607, Culture=neutral, PublicKeyToken=0738eb9f132ed756'.
  at (wrapper managed-to-native) System.MonoType:GetMethodsByName
(System.MonoType,string,System.Reflection.BindingFlags,bool,System.Type)
  at System.MonoType.GetMethods (BindingFlags bindingAttr) [0x00000]
in <filename unknown>:0
  at System.Type.FindMembers (MemberTypes memberType, BindingFlags
bindingAttr, System.Reflection.MemberFilter filter, System.Object
filterCriteria) [0x00000] in <filename unknown>:0
  at System.MonoType.GetMembers (BindingFlags bindingAttr) [0x00000]
in <filename unknown>:0
  at Mono.CSharp.ImportedTypeDefinition.LoadMembers
(Mono.CSharp.TypeSpec declaringType, Boolean onlyTypes,
Mono.CSharp.MemberCache& cache) [0x00000] in <filename unknown>:0
  --- End of inner exception stack trace ---
  at Mono.CSharp.ImportedTypeDefinition.LoadMembers
(Mono.CSharp.TypeSpec declaringType, Boolean onlyTypes,
Mono.CSharp.MemberCache& cache) [0x00000] in <filename unknown>:0
  at Mono.CSharp.TypeSpec.InitializeMemberCache (Boolean onlyTypes)
[0x00000] in <filename unknown>:0
  at Mono.CSharp.TypeSpec.get_MemberCache () [0x00000] in <filename unknown>:0
  at Mono.CSharp.MemberCache.FindBaseMember (Mono.CSharp.MemberCore
member, Mono.CSharp.MemberSpec& bestCandidate) [0x00000] in <filename
unknown>:0
  at Mono.CSharp.FieldBase.CheckBase () [0x00000] in <filename unknown>:0
  at Mono.CSharp.FieldBase.DoMemberTypeDependentChecks () [0x00000] in
<filename unknown>:0
  at Mono.CSharp.MemberBase.Define () [0x00000] in <filename unknown>:0
  at Mono.CSharp.Const.Define () [0x00000] in <filename unknown>:0
  at Mono.CSharp.TypeContainer.DefineContainerMembers (IList mcal)
[0x00000] in <filename unknown>:0
  --- End of inner exception stack trace ---
  at Mono.CSharp.TypeContainer.DefineContainerMembers (IList mcal)
[0x00000] in <filename unknown>:0
  at Mono.CSharp.Class.DefineContainerMembers (IList list) [0x00000]
in <filename unknown>:0
  at Mono.CSharp.TypeContainer.DoDefineMembers () [0x00000] in
<filename unknown>:0
  at Mono.CSharp.ClassOrStruct.DoDefineMembers () [0x00000] in
<filename unknown>:0
  at Mono.CSharp.Class.DoDefineMembers () [0x00000] in <filename unknown>:0
  at Mono.CSharp.TypeContainer.Define () [0x00000] in <filename unknown>:0
  at Mono.CSharp.ModuleContainer.Define () [0x00000] in <filename unknown>:0
  --- End of inner exception stack trace ---
  at Mono.CSharp.ModuleContainer.Define () [0x00000] in <filename unknown>:0
  at Mono.CSharp.Driver.Compile () [0x00000] in <filename unknown>:0
  at Mono.CSharp.Driver.Main (System.String[] args) [0x00000] in
<filename unknown>:0


-- 
Mathieu




Changed Bug submitter to 'Mathieu Malaterre <malat@debian.org>' from 'Mathieu Malaterre <mathieu.malaterre@gmail.com>' Request was from Mathieu Malaterre <malat@debian.org> to control@bugs.debian.org. (Wed, 28 Mar 2012 13:55:11 GMT) Full text and rfc822 format available.

Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Wed Apr 16 23:31:15 2014; Machine Name: buxtehude.debian.org

Debian Bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.