Ok, after do some debugging i think is a memory alocation problem in YUVLib/YUV_text_overlay.c. The functions in this file are returning a "YUV_no_memory" error.
Rui.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
That error seems to happen when a malloc fails. Do you have any more debug information? Some of the mallocs are like: malloc(ovly->w * ovly->h * 2)
And that would probably fail if ovly pointer was invalid. Can you check for that?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I think this solves the problem:
For example, in the char_set_to_overlay function inside the for cicle to get bounding box for characters, i use a variable instead of the operation to do the comparation, like this:
if (bb_t > -slot->bitmap_top)
bb_t = -slot->bitmap_top;
int sum1 = slot->bitmap.rows - slot->bitmap_top;
if (bb_b < sum1)
bb_b = slot->bitmap.rows - slot->bitmap_top;
if (bb_l > slot->bitmap_left)
bb_l = slot->bitmap_left;
sum1 = slot->bitmap_left + slot->bitmap.width;
if (bb_r < sum1)
bb_r = slot->bitmap_left + slot->bitmap.width;
I do the same in the init_timecode and the command "player --balls 10" runs fine in the virtual machine. Probaly is necessary chage other functions, like char_to_overlay. Next week I try with a real machine.
Strange beavior, from gnu libc 2.19, i think.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi.
I made a fresh installation with the same behavior I have reported here:
https://sourceforge.net/p/ingex/discussion/531547/thread/1a1bca83/#20e9
what fonts needed to be installed to build and run the player?
Rui.
Ok, after do some debugging i think is a memory alocation problem in YUVLib/YUV_text_overlay.c. The functions in this file are returning a "YUV_no_memory" error.
Rui.
That error seems to happen when a malloc fails. Do you have any more debug information? Some of the mallocs are like: malloc(ovly->w * ovly->h * 2)
And that would probably fail if ovly pointer was invalid. Can you check for that?
I think this solves the problem:
For example, in the char_set_to_overlay function inside the for cicle to get bounding box for characters, i use a variable instead of the operation to do the comparation, like this:
I do the same in the init_timecode and the command "player --balls 10" runs fine in the virtual machine. Probaly is necessary chage other functions, like char_to_overlay. Next week I try with a real machine.
Strange beavior, from gnu libc 2.19, i think.
Tested with openSuse 13.2 and dvs hardware and works fine.
I think char_to_overlay is not used in the ingex project.
Rui
Last edit: Rui Loureiro 2016-11-13