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

CameraList.GetName(int Index) throws invalid pointer #1

Open
DrMistry opened this issue Sep 2, 2015 · 0 comments
Open

CameraList.GetName(int Index) throws invalid pointer #1

DrMistry opened this issue Sep 2, 2015 · 0 comments

Comments

@DrMistry
Copy link

DrMistry commented Sep 2, 2015

Calling CameraList.GetName(int Index) causes an invalid pointer error. This occurs when using Camera.Detect() or invoking the method on an instantiated camera object. I can see no way to fix this within the wrapper - has there been a breaking change to the libgphoto2 code?

Output from console follows.

*** glibc detected *** mono: free(): invalid pointer: 0x73c5200c ***
Stacktrace:

at <0xffffffff>
at (wrapper managed-to-native) object.__icall_wrapper_mono_marshal_free (intptr) <0xffffffff>
at (wrapper managed-to-native) LibGPhoto2.CameraList.gp_list_get_name (System.Runtime.InteropServices.HandleRef,int,string&) <0xffffffff>
at LibGPhoto2.CameraList.GetName (int) <0x00043>
at Gphoto2.Camera.Detect () <0x00243>
at Pi2Hardware.ScreenTest.InitCamera () <0x0000f>
at Pi2Hardware.ScreenTest.Initialise () <0x00387>
at Pi2HardwareLibrary.RealtimeHardwareControl.Run () <0x00063>
at Pi2Hardware.MainClass.Main (string[]) <0x0003b>
at (wrapper runtime-invoke) .runtime_invoke_void_object (object,intptr,intptr,intptr) <0xffffffff>

Native stacktrace:

Debug info from gdb:

[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/arm-linux-gnueabihf/libthread_db.so.1".
[New Thread 0x76a53440 (LWP 3927)]
0x76e54aac in waitpid () from /lib/arm-linux-gnueabihf/libpthread.so.0
Id Target Id Frame
2 Thread 0x76a53440 (LWP 3927) "Finalizer" 0x76e52770 in sem_wait@@GLIBC_2.4 () from /lib/arm-linux-gnueabihf/libpthread.so.0

  • 1 Thread 0x76f30000 (LWP 3926) "mono" 0x76e54aac in waitpid () from /lib/arm-linux-gnueabihf/libpthread.so.0

Thread 2 (Thread 0x76a53440 (LWP 3927)):
#0 0x76e52770 in sem_wait@@GLIBC_2.4 () from /lib/arm-linux-gnueabihf/libpthread.so.0
#1 0x001619b4 in mono_sem_wait ()
#2 0x0010edda in ?? ()
#3 0x0010edda in ?? ()

Backtrace stopped: previous frame identical to this frame (corrupt stack?)

Thread 1 (Thread 0x76f30000 (LWP 3926)):
#0 0x76e54aac in waitpid () from /lib/arm-linux-gnueabihf/libpthread.so.0
#1 0x00087ff8 in ?? ()
#2 0x00087ff8 in ?? ()

Backtrace stopped: previous frame identical to this frame (corrupt stack?)

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.

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

1 participant