Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unhandled Exception v1.1.3 on Linux x64 #542

Closed
ErrHead opened this issue Dec 10, 2014 · 7 comments
Closed

Unhandled Exception v1.1.3 on Linux x64 #542

ErrHead opened this issue Dec 10, 2014 · 7 comments

Comments

@ErrHead
Copy link

ErrHead commented Dec 10, 2014

When I try to run ckan v1.1.3 on my Debian box, uname: Linux 3.2.0-4-amd64 #1 SMP Debian 3.2.63-2+deb7u2 x86_64 GNU/Linux, I get a fatal unhandled exception.

 ./ckan.exe
exception inside UnhandledException handler: Object reference not set to an instance of an object

[ERROR] FATAL UNHANDLED EXCEPTION: System.InvalidCastException: Cannot cast from source type to destination type.
  at CKAN.Main.InitializeComponent () [0x00000] in <filename unknown>:0 
  at CKAN.Main..ctor () [0x00000] in <filename unknown>:0 
  at (wrapper remoting-invoke-with-check) CKAN.Main:.ctor ()
  at CKAN.GUI.Main () [0x00000] in <filename unknown>:0 
  at CKAN.CmdLine.MainClass.Gui () [0x00000] in <filename unknown>:0 
  at CKAN.CmdLine.MainClass.Main (System.String[] args) [0x00000] in <filename unknown>:0 

I noticed you pointed to a different v1.1.3 binary on another issue, I figured it was for debugging so I ran it as well:

System.Windows.Forms.SplitContainer doesn't implement interface System.ComponentModel.ISupportInitialize

Stacktrace:

  at CKAN.Main.InitializeComponent () <0x00fef>
  at CKAN.Main..ctor () <0x001f3>
  at (wrapper remoting-invoke-with-check) CKAN.Main..ctor () <0xffffffff>
  at CKAN.GUI.Main () <0x000a3>
  at CKAN.CmdLine.MainClass.Gui () <0x0000b>
  at CKAN.CmdLine.MainClass.Main (string[]) <0x000ef>
  at (wrapper runtime-invoke) <Module>.runtime_invoke_int_object (object,intptr,intptr,intptr) <0xffffffff>

Native stacktrace:

    /usr/bin/cli() [0x4983a9]
    /lib/x86_64-linux-gnu/libpthread.so.0(+0xf0a0) [0x7fd002d8a0a0]
    /lib/x86_64-linux-gnu/libc.so.6(gsignal+0x35) [0x7fd002a21165]
    /lib/x86_64-linux-gnu/libc.so.6(abort+0x180) [0x7fd002a243e0]
    /usr/bin/cli() [0x5cfcdf]
    /usr/bin/cli() [0x5cfd62]
    /usr/bin/cli() [0x49a06f]
    /usr/bin/cli() [0x49a784]
    [0x403f7bba]

Debug info from gdb:

[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[New Thread 0x7fcffe57a700 (LWP 6035)]
[New Thread 0x7fcfff9e8700 (LWP 6034)]
[New Thread 0x7fd0001e9700 (LWP 6033)]
[New Thread 0x7fd0009ea700 (LWP 6032)]
[New Thread 0x7fd0011eb700 (LWP 6031)]
[New Thread 0x7fd0019ec700 (LWP 6030)]
[New Thread 0x7fd0021ed700 (LWP 6029)]
[New Thread 0x7fd0029ee700 (LWP 6028)]
0x00007fd002d891fd in read () from /lib/x86_64-linux-gnu/libpthread.so.0
  Id   Target Id         Frame 
  9    Thread 0x7fd0029ee700 (LWP 6028) "cli" 0x00007fd002d86344 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/x86_64-linux-gnu/libpthread.so.0
  8    Thread 0x7fd0021ed700 (LWP 6029) "cli" 0x00007fd002d86344 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/x86_64-linux-gnu/libpthread.so.0
  7    Thread 0x7fd0019ec700 (LWP 6030) "cli" 0x00007fd002d86344 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/x86_64-linux-gnu/libpthread.so.0
  6    Thread 0x7fd0011eb700 (LWP 6031) "cli" 0x00007fd002d86344 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/x86_64-linux-gnu/libpthread.so.0
  5    Thread 0x7fd0009ea700 (LWP 6032) "cli" 0x00007fd002d86344 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/x86_64-linux-gnu/libpthread.so.0
  4    Thread 0x7fd0001e9700 (LWP 6033) "cli" 0x00007fd002d86344 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/x86_64-linux-gnu/libpthread.so.0
  3    Thread 0x7fcfff9e8700 (LWP 6034) "cli" 0x00007fd002d86344 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/x86_64-linux-gnu/libpthread.so.0
  2    Thread 0x7fcffe57a700 (LWP 6035) "cli" 0x00007fd002d88490 in sem_wait () from /lib/x86_64-linux-gnu/libpthread.so.0
* 1    Thread 0x7fd003826740 (LWP 6026) "cli" 0x00007fd002d891fd in read () from /lib/x86_64-linux-gnu/libpthread.so.0

Thread 9 (Thread 0x7fd0029ee700 (LWP 6028)):
#0  0x00007fd002d86344 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/x86_64-linux-gnu/libpthread.so.0
#1  0x00000000005e2d63 in ?? ()
#2  0x00000000005dcee5 in ?? ()
#3  0x00000000005e14a7 in ?? ()
#4  0x00007fd002d81b50 in start_thread () from /lib/x86_64-linux-gnu/libpthread.so.0
#5  0x00007fd002acb7bd in clone () from /lib/x86_64-linux-gnu/libc.so.6
#6  0x0000000000000000 in ?? ()

Thread 8 (Thread 0x7fd0021ed700 (LWP 6029)):
#0  0x00007fd002d86344 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/x86_64-linux-gnu/libpthread.so.0
#1  0x00000000005e2d63 in ?? ()
#2  0x00000000005dcee5 in ?? ()
#3  0x00000000005e14a7 in ?? ()
#4  0x00007fd002d81b50 in start_thread () from /lib/x86_64-linux-gnu/libpthread.so.0
#5  0x00007fd002acb7bd in clone () from /lib/x86_64-linux-gnu/libc.so.6
#6  0x0000000000000000 in ?? ()

Thread 7 (Thread 0x7fd0019ec700 (LWP 6030)):
#0  0x00007fd002d86344 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/x86_64-linux-gnu/libpthread.so.0
#1  0x00000000005e2d63 in ?? ()
#2  0x00000000005dcee5 in ?? ()
#3  0x00000000005e14a7 in ?? ()
#4  0x00007fd002d81b50 in start_thread () from /lib/x86_64-linux-gnu/libpthread.so.0
#5  0x00007fd002acb7bd in clone () from /lib/x86_64-linux-gnu/libc.so.6
#6  0x0000000000000000 in ?? ()

Thread 6 (Thread 0x7fd0011eb700 (LWP 6031)):
#0  0x00007fd002d86344 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/x86_64-linux-gnu/libpthread.so.0
#1  0x00000000005e2d63 in ?? ()
#2  0x00000000005dcee5 in ?? ()
#3  0x00000000005e14a7 in ?? ()
#4  0x00007fd002d81b50 in start_thread () from /lib/x86_64-linux-gnu/libpthread.so.0
#5  0x00007fd002acb7bd in clone () from /lib/x86_64-linux-gnu/libc.so.6
#6  0x0000000000000000 in ?? ()

Thread 5 (Thread 0x7fd0009ea700 (LWP 6032)):
#0  0x00007fd002d86344 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/x86_64-linux-gnu/libpthread.so.0
#1  0x00000000005e2d63 in ?? ()
#2  0x00000000005dcee5 in ?? ()
#3  0x00000000005e14a7 in ?? ()
#4  0x00007fd002d81b50 in start_thread () from /lib/x86_64-linux-gnu/libpthread.so.0
#5  0x00007fd002acb7bd in clone () from /lib/x86_64-linux-gnu/libc.so.6
#6  0x0000000000000000 in ?? ()

Thread 4 (Thread 0x7fd0001e9700 (LWP 6033)):
#0  0x00007fd002d86344 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/x86_64-linux-gnu/libpthread.so.0
#1  0x00000000005e2d63 in ?? ()
#2  0x00000000005dcee5 in ?? ()
#3  0x00000000005e14a7 in ?? ()
#4  0x00007fd002d81b50 in start_thread () from /lib/x86_64-linux-gnu/libpthread.so.0
#5  0x00007fd002acb7bd in clone () from /lib/x86_64-linux-gnu/libc.so.6
#6  0x0000000000000000 in ?? ()

Thread 3 (Thread 0x7fcfff9e8700 (LWP 6034)):
#0  0x00007fd002d86344 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/x86_64-linux-gnu/libpthread.so.0
#1  0x00000000005e2d63 in ?? ()
#2  0x00000000005dcee5 in ?? ()
#3  0x00000000005e14a7 in ?? ()
#4  0x00007fd002d81b50 in start_thread () from /lib/x86_64-linux-gnu/libpthread.so.0
#5  0x00007fd002acb7bd in clone () from /lib/x86_64-linux-gnu/libc.so.6
#6  0x0000000000000000 in ?? ()

Thread 2 (Thread 0x7fcffe57a700 (LWP 6035)):
#0  0x00007fd002d88490 in sem_wait () from /lib/x86_64-linux-gnu/libpthread.so.0
#1  0x00000000005c7ac8 in mono_sem_wait ()
#2  0x0000000000517deb in ?? ()
#3  0x000000000059a216 in ?? ()
#4  0x00000000005c241a in ?? ()
#5  0x00000000005e2b64 in ?? ()
#6  0x00007fd002d81b50 in start_thread () from /lib/x86_64-linux-gnu/libpthread.so.0
#7  0x00007fd002acb7bd in clone () from /lib/x86_64-linux-gnu/libc.so.6
#8  0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7fd003826740 (LWP 6026)):
#0  0x00007fd002d891fd in read () from /lib/x86_64-linux-gnu/libpthread.so.0
#1  0x000000000049853b in ?? ()
#2  <signal handler called>
#3  0x00007fd002a21165 in raise () from /lib/x86_64-linux-gnu/libc.so.6
#4  0x00007fd002a243e0 in abort () from /lib/x86_64-linux-gnu/libc.so.6
#5  0x00000000005cfcdf in ?? ()
#6  0x00000000005cfd62 in ?? ()
#7  0x000000000049a06f in ?? ()
#8  0x000000000049a784 in ?? ()
#9  0x00000000403f7bba in ?? ()
#10 0x00007fcffa85e1e0 in ?? ()
#11 0x00007fcffa85e1e0 in ?? ()
#12 0x00007fff3ef1ef50 in ?? ()
#13 0x00007fcffa7ad380 in ?? ()
#14 0x00007fcffa7d6e38 in ?? ()
#15 0x00000000415af595 in ?? ()
#16 0x00007fcffa7ad380 in ?? ()
#17 0x0000000000000008 in ?? ()
#18 0x000000004137abd8 in ?? ()
#19 0x000000004137abc7 in ?? ()
#20 0x0000000001482170 in ?? ()
#21 0x00007fff3ef1f240 in ?? ()
#22 0x0000000000000000 in ?? ()

=================================================================
Got a SIGABRT while executing native code. This usually indicates
a fatal error in the mono runtime or one of the native libraries 
used by your application.
=================================================================

Aborted

Here's the output of mono --version:

mono --version
Mono JIT compiler version 2.10.8.1 (Debian 2.10.8.1-8)
Copyright (C) 2002-2011 Novell, Inc, Xamarin, Inc and Contributors. www.mono-project.com
    TLS:           __thread
    SIGSEGV:       altstack
    Notifications: epoll
    Architecture:  amd64
    Disabled:      none
    Misc:          softdebug 
    LLVM:          supported, not enabled.
    GC:            Included Boehm (with typed GC and Parallel Mark)

Let me know if you need any further information.

@techman83
Copy link
Member

Have you got mono-complete installed?

sudo apt-get install mono-complete

That reportedly fixes a number of these types of issues.

@ErrHead
Copy link
Author

ErrHead commented Dec 10, 2014

Yes, I do. (version 2.10.8.1-8)

@techman83
Copy link
Member

Hmm, I'm really unsure what our minimum Mono version is. 2.8 has partial support for .Net 4 and .Net 4 is our target.

I'll go raise an issue for documenting what our minimum Mono/.Net Versions are

@techman83
Copy link
Member

@ErrHead
Copy link
Author

ErrHead commented Dec 10, 2014

Thanks

@ErrHead
Copy link
Author

ErrHead commented Dec 10, 2014

I just changed over to the mono project's repository and its newer version, ckan works now.

@techman83
Copy link
Member

That's awesome @ErrHead!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants