Autor Tema: [bug] in libblit.dll  (Leído 9316 veces)

0 Usuarios y 1 Visitante están viendo este tema.

Desconectado SplinterGU

  • Hero Member
  • *****
  • Mensajes: 12515
  • Karma: 369
  • Sexo: Masculino
    • Ver Perfil
Re: [bug] in libblit.dll
« Respuesta #15 en: Enero 01, 2011, 02:08:52 pm »
put the particle into a for, 0 to 30 or other value.
Download Lastest BennuGD Release: http://www.bennugd.org/node/2

Desconectado SplinterGU

  • Hero Member
  • *****
  • Mensajes: 12515
  • Karma: 369
  • Sexo: Masculino
    • Ver Perfil
Re: [bug] in libblit.dll
« Respuesta #16 en: Enero 01, 2011, 02:09:31 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

Desconectado SplinterGU

  • Hero Member
  • *****
  • Mensajes: 12515
  • Karma: 369
  • Sexo: Masculino
    • Ver Perfil
Re: [bug] in libblit.dll
« Respuesta #17 en: Enero 01, 2011, 03:24:30 pm »
try with this libblit...

thanks for the report... karma++
« última modificación: Enero 01, 2011, 03:30:36 pm por SplinterGU »
Download Lastest BennuGD Release: http://www.bennugd.org/node/2

Desconectado SplinterGU

  • Hero Member
  • *****
  • Mensajes: 12515
  • Karma: 369
  • Sexo: Masculino
    • Ver Perfil
Re: [bug] in libblit.dll
« Respuesta #18 en: Enero 01, 2011, 03:30:17 pm »
sorry, this is the right file...
Download Lastest BennuGD Release: http://www.bennugd.org/node/2

Desconectado Drumpi

  • Hero Member
  • *****
  • Mensajes: 6146
  • Karma: 157
  • Sexo: Masculino
  • Odio el periodo "entre proyectos"
    • Ver Perfil
    • La web de Drumpi
Re: [bug] in libblit.dll
« Respuesta #19 en: Enero 02, 2011, 06:33:36 am »
With old libblit (r181) I changed code to:

Código: [Seleccionar]
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)

Desconectado SplinterGU

  • Hero Member
  • *****
  • Mensajes: 12515
  • Karma: 369
  • Sexo: Masculino
    • Ver Perfil
Re: [bug] in libblit.dll
« Respuesta #20 en: Enero 02, 2011, 09:56:25 am »
yes, several particles in the same loop.

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

Desconectado SplinterGU

  • Hero Member
  • *****
  • Mensajes: 12515
  • Karma: 369
  • Sexo: Masculino
    • Ver Perfil
Re: [bug] in libblit.dll
« Respuesta #21 en: Enero 02, 2011, 04:59:53 pm »
tic tac, tic tac...

and ????

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

Desconectado Arcontus

  • Full Member
  • ***
  • Mensajes: 177
  • Karma: 6
    • Ver Perfil
Re: [bug] in libblit.dll
« Respuesta #22 en: Febrero 26, 2011, 08:18:13 am »
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!


Desconectado SplinterGU

  • Hero Member
  • *****
  • Mensajes: 12515
  • Karma: 369
  • Sexo: Masculino
    • Ver Perfil
Re: [bug] in libblit.dll
« Respuesta #23 en: Febrero 26, 2011, 05:44: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

Desconectado Arcontus

  • Full Member
  • ***
  • Mensajes: 177
  • Karma: 6
    • Ver Perfil
Re: [bug] in libblit.dll
« Respuesta #24 en: Febrero 27, 2011, 05:29:19 am »
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.

Desconectado SplinterGU

  • Hero Member
  • *****
  • Mensajes: 12515
  • Karma: 369
  • Sexo: Masculino
    • Ver Perfil
Re: [bug] in libblit.dll
« Respuesta #25 en: Febrero 27, 2011, 06:47:26 pm »
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

Desconectado Arcontus

  • Full Member
  • ***
  • Mensajes: 177
  • Karma: 6
    • Ver Perfil
Re: [bug] in libblit.dll
« Respuesta #26 en: Febrero 28, 2011, 11:14:50 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:

Código: [Seleccionar]
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!
« última modificación: Febrero 28, 2011, 11:20:53 am por Arcontus »

Desconectado SplinterGU

  • Hero Member
  • *****
  • Mensajes: 12515
  • Karma: 369
  • Sexo: Masculino
    • Ver Perfil
Re: [bug] in libblit.dll
« Respuesta #27 en: Febrero 28, 2011, 11:24:24 am »
I need a compilable code.
Download Lastest BennuGD Release: http://www.bennugd.org/node/2

Desconectado Arcontus

  • Full Member
  • ***
  • Mensajes: 177
  • Karma: 6
    • Ver Perfil
Re: [bug] in libblit.dll
« Respuesta #28 en: Febrero 28, 2011, 11:59:23 am »
I need a compilable code.

Ok, I'll send you when it's ready.
« última modificación: Febrero 28, 2011, 12:06:25 pm por Arcontus »

Desconectado Arcontus

  • Full Member
  • ***
  • Mensajes: 177
  • Karma: 6
    • Ver Perfil
Re: [bug] in libblit.dll
« Respuesta #29 en: Febrero 28, 2011, 12:46:39 pm »
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.