[bug] in libblit.dll

Started by Eckolin, January 01, 2011, 12:38:52 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

SplinterGU

put the particle into a for, 0 to 30 or other value.
Download Lastest BennuGD Release: http://www.bennugd.org/node/2

SplinterGU

Quote from: Fede on January 01, 2011, 09:22:23 PM
Yes, it crash

r189 wxp64.

Show this "say":

1000|1|400|300|
1001|1|400|300|
1002|1|400|300|
1003|1|400|300|



thanks fede... well, I now have a test case... I'll fix it later...

for temporal solution, keep width or heigth / size, never give 0.

then if you graph is 10, don't use size lower that 10.
Download Lastest BennuGD Release: http://www.bennugd.org/node/2

SplinterGU

#17
try with this libblit...

thanks for the report... karma++
Download Lastest BennuGD Release: http://www.bennugd.org/node/2

SplinterGU

sorry, this is the right file...
Download Lastest BennuGD Release: http://www.bennugd.org/node/2

Drumpi

With old libblit (r181) I changed code to:

import "mod_grproc"
import "mod_video"
import "mod_map"
import "mod_say"

begin
    set_mode(800,600,32);
    set_fps(0,0);
    loop
        particle(400,300);
        if (key(_esc)) break; end
        frame;
    end
end


process particle(int x,int y);
begin
    graph=new_map(10,10,32);
    size=1;
    say( graph+"|"+size+"|"+x+"|"+y+"|");
    frame;
onexit
    if (graph) unload_map(0,graph);graph=0;end
end


With no crash. With new libblit I have no crash too.
Hala, como con 1001 procesos sólo va a 9 FPS, vamos a meterle 32 veces más, a ver si revienta.
(Drumpi epic moment)

SplinterGU

yes, several particles in the same loop.

I need test the previous test sample.
Download Lastest BennuGD Release: http://www.bennugd.org/node/2

SplinterGU

tic tac, tic tac...

and ????

eckolin???
Download Lastest BennuGD Release: http://www.bennugd.org/node/2

Arcontus

Hello,

I have a similar issue. When I ussing size_x with lower value that 10, sometimes the program crash. In the other hand, i tried to run it in debug mode, and I can't reproduce the crash. If I change anything of code, sometimes is possible that it run correctly. I think that it is a possible bug in this function, but I not rule out that this is a bug in my code...

Regards!

5Leaps, el primer juego comercial desarrollado para BennuGD. http://www.5leaps.com

SplinterGU

Quote from: Arcontus on February 26, 2011, 04:18:13 PM
Hello,

I have a similar issue. When I ussing size_x with lower value that 10, sometimes the program crash. In the other hand, i tried to run it in debug mode, and I can't reproduce the crash. If I change anything of code, sometimes is possible that it run correctly. I think that it is a possible bug in this function, but I not rule out that this is a bug in my code...

Regards!



which version?
Download Lastest BennuGD Release: http://www.bennugd.org/node/2

Arcontus

Quote from: SplinterGU on February 27, 2011, 01:44:13 AM
Quote from: Arcontus on February 26, 2011, 04:18:13 PM
Hello,

I have a similar issue. When I ussing size_x with lower value that 10, sometimes the program crash. In the other hand, i tried to run it in debug mode, and I can't reproduce the crash. If I change anything of code, sometimes is possible that it run correctly. I think that it is a possible bug in this function, but I not rule out that this is a bug in my code...

Regards!



which version?

I Tried to update to last version yesterday (bgd-1.0.0RC21(r228)-win32), and I have equal result. I don't understand what is the problem if the mistake is in my code, because all times the program execute the same process, and it work fine if I change the minimum value for size_x over 10.
5Leaps, el primer juego comercial desarrollado para BennuGD. http://www.5leaps.com

SplinterGU

mmm, I already fix this bug... can you send me a sample with this error?
Download Lastest BennuGD Release: http://www.bennugd.org/node/2

Arcontus

#26
Quote from: SplinterGU on February 28, 2011, 02:47:26 AM
mmm, I already fix this bug... can you send me a sample with this error?

It's difficult because the program have a lot of lines for analice all code, but the implicated process is very simple:


PROCESS BarraEnergia()
PRIVATE
contador;
BEGIN
file=interfazFPG;
x= 468;
y=Resolucion_y -140;
graph = 26;
z = Z_INTERFAZ+1;
LOOP
if (contador < 1) contador = 100;else contador--;END
size_x = contador;
if (contador > 90)
graph = 26;
else
        if (contador > 80)
graph = 27;
else
        if (contador > 70)
graph = 28;
else
if (contador > 60)
graph = 29;
else
if (contador > 50)
graph = 30;
else
if (contador > 40)
graph = 31;
else
if (contador > 30)
graph = 32;
else
if (contador > 20)
graph = 33;
else
if (contador > 10)
graph = 34;
else
if (contador > -1)
graph = 35;
END
END
END
END
END
END
END
END
END
END
FRAME;
END
END


This process countdown every frame the variable "contador", and it's equal to size_x. For other hand, the anidated "IFs" is for change the collour of the bar every 10 values. The graph that I use for this function have a resolution 373x7 pixels. When I tried to debug this code with debug mode, never crash. It's very strange.

I don't try if the code of this process alone can run fine (obviously with main process).

If antythink don't understand, I can send you the reply in spanish if you prefer :D

Thank you,

Regards!
5Leaps, el primer juego comercial desarrollado para BennuGD. http://www.5leaps.com

SplinterGU

Download Lastest BennuGD Release: http://www.bennugd.org/node/2

Arcontus

#28
Quote from: SplinterGU on February 28, 2011, 07:24:24 PM
I need a compilable code.

Ok, I'll send you when it's ready.
5Leaps, el primer juego comercial desarrollado para BennuGD. http://www.5leaps.com

Arcontus

Sorry, you were right. I was ussed an obsolete version, and I was an error when I tried to change the current version in my compiler. With the new version, run fine.

Thanks again.
5Leaps, el primer juego comercial desarrollado para BennuGD. http://www.5leaps.com