[Gambas-user] Trying to use libmpv, but got Segmentation faults on exit

Koko kokoko3k at ...626...
Fri Jan 16 15:12:22 CET 2015


Tobias Boege wrote:

> On Fri, 16 Jan 2015, Koko wrote:
>> Koko wrote:
>> 
>> 
>> > That's it.
>> > The program starts and begin playing the file.
>> > As i push the button, it stops playing and the player window will
>> > close, but as soon as i close the main form, the gambas interpreter
>> > shows a window saying the program crashed wuth a segmentation fault.
>> > 
>> > This is the kernel message:
>> > traps: gbx3[16400] general protection ip:7f17cdb9c824 sp:7fffff2682a0
>> > error:0 in libpthread-2.20.so[7f17cdb93000+17000]
>> > 
>> > Thanks to anyone who can spot a light on this issue.
>> 
>> An update:
>> If i switch from gb.qt4 to gb.gtk the issue is gone.
>> The same if i use it in a new Task (gb.task)
>> 
> 
> Does the library create threads behind your back? Because Gambas is
> single- threaded and I can imagine that the GUI toolkits don't like being
> clone'd without a warning either. Just an idea; I haven't tested.
> 
> Regards,
> Tobi
> 

Yes, it does create several threads, pstree output:

gbx3
	{mpv/ao}
	{mpv/demux}
	3*[{mpv/playback co}]
	{mpv/vo}

As a side note, playing an audio only file doesn't crash on exit
(as expected, i suppose)







More information about the User mailing list