Skip to content

Native Crash in VideoDecoder destructor #52

@maximiliancsuk

Description

@maximiliancsuk

Hi,

i stumbled upon a nasty bug that happens quite often when calling VideoPlayer.dispose() (or VideoPlayer.stop()), on desktop (Mac). I traced the error down to the VideoDecoder destructor where it seems like something is deallocated a second time or was never allocated (pointer being freed was not allocated, see crash report below). I couldn't debug any further because I wasn't able to (re)compile the native libs. I am using the prebuilt ones you offered in another issue.

Here's the crash report:

[snip]
System Integrity Protection: enabled

Crashed Thread:        34  Java: LWJGL Application

Exception Type:        EXC_BAD_ACCESS (SIGABRT)
Exception Codes:       KERN_INVALID_ADDRESS at 0x000000000000000c
Exception Note:        EXC_CORPSE_NOTIFY

VM Regions Near 0xc:
--> 
    __TEXT                 0000000102795000-00000001027a7000 [   72K] r-x/rwx SM=COW  /Library/Java/JavaVirtualMachines/jdk1.8.0_92.jdk/Contents/Home/bin/java

Application Specific Information:
abort() called
*** error for object 0x1044df2f0: pointer being freed was not allocated

[snip]

Thread 33 Crashed:: Java: LWJGL Application
0   libsystem_kernel.dylib        	0x00007fffa0409f06 __pthread_kill + 10
1   libsystem_pthread.dylib       	0x00007fff922db4ec pthread_kill + 90
2   libsystem_c.dylib             	0x00007fff8ce426df abort + 129
3   libjvm.dylib                  	0x0000000102a8536f os::abort(bool) + 25
4   libjvm.dylib                  	0x0000000102baa472 VMError::report_and_die() + 2304
5   libjvm.dylib                  	0x0000000102a86f9a JVM_handle_bsd_signal + 1131
6   libjvm.dylib                  	0x0000000102a831ff signalHandler(int, __siginfo*, void*) + 47
7   libsystem_platform.dylib      	0x00007fff8d2a452a _sigtramp + 26
8   ???                           	0x00007f87c0f1d790 0 + 140221034387344
9   libgdx-video-desktop64.dylib  	0x000000012ec95bbf VideoDecoder::~VideoDecoder() + 15
10  ???                           	0x00000001035b6c64 0 + 4351290468
11  ???                           	0x000000010359f33d 0 + 4351193917
12  ???                           	0x000000010359f33d 0 + 4351193917
13  ???                           	0x000000010359f33d 0 + 4351193917
14  ???                           	0x000000010359f382 0 + 4351193986
15  ???                           	0x000000010359f0c0 0 + 4351193280
16  ???                           	0x000000010359f0c0 0 + 4351193280
17  ???                           	0x000000010359f0c0 0 + 4351193280
18  ???                           	0x000000010359f33d 0 + 4351193917
19  ???                           	0x0000000103e17da4 0 + 4360076708
20  ???                           	0x000000010445e21c 0 + 4366656028

Any idea?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions