Allegro.cc - Online Community

Allegro.cc Forums » Allegro Development » [a5] shader examples crashing in DIRECT3D mode

This thread is locked; no one can reply to it. rss feed Print
[a5] shader examples crashing in DIRECT3D mode
Mark Oates
Member #1,146
March 2001
avatar

Anybody else having this problem?

ex_prim_shader.c
ex_shader.cpp
ex_shader_multitex.c
ex_shader_target.c

ex_shader.cpp has a command line flag --opengl to run in opengl mode, but the others do not. I compiled the other programs to create displays with ALLEGRO_OPENGL and they worked fine. For some reason the example programs do not output an allegro.log ??? I'm not sure why.

I'm using Allegro 5.1.11, same from Speedhack.

--
Visit CLUBCATT.com for cat shirts, cat mugs, puzzles, art and more <-- coupon code ALLEGRO4LIFE at checkout and get $3 off any order of 3 or more items!

AllegroFlareAllegroFlare DocsAllegroFlare GitHub

Edgar Reynaldo
Major Reynaldo
May 2007
avatar

I built the examples as static release mode binaries, so no debugging symbols and no log. :/ I think there might be a way to enable the log through the cfg file though.

EDIT
I tested the examples you pointed out, and I get ;

1. ex_prim_shader.exe gives me a blank white screen and does nothing

2. ex_shader.exe crashes

3. ex_shader_multitex.exe crashes too

4. ex_shader_target.exe crashes too

ex_shader crashes here :

Program received signal SIGSEGV, Segmentation fault.
0x695dbca4 in d3dx9_43!D3DXCreateEffect () from C:\Windows\system32\D3DX9_43.dll
(gdb) bt
#0  0x695dbca4 in d3dx9_43!D3DXCreateEffect () from C:\Windows\system32\D3DX9_43.dll
#1  0x0045bb49 in d3d_flush_vertex_cache(ALLEGRO_DISPLAY*) ()
#2  0x004b2cf5 in d3d_draw_bitmap_region(ALLEGRO_BITMAP*, ALLEGRO_COLOR, float, float, float, float, int) ()
#3  0x0040aa4c in al_draw_bitmap ()
#4  0x004bc9ba in main ()
(gdb)

ex_shader_multitex crashes similarly :

Program received signal SIGSEGV, Segmentation fault.
0x69c2bca4 in d3dx9_43!D3DXCreateEffect () from C:\Windows\system32\D3DX9_43.dll
(gdb) bt
#0  0x69c2bca4 in d3dx9_43!D3DXCreateEffect () from C:\Windows\system32\D3DX9_43.dll
#1  0x00475089 in d3d_flush_vertex_cache(ALLEGRO_DISPLAY*) ()
#2  0x004b2cf5 in d3d_draw_bitmap_region(ALLEGRO_BITMAP*, ALLEGRO_COLOR, float, float, float, float, int) ()
#3  0x0041059c in al_draw_scaled_rotated_bitmap ()
#4  0x004bcaec in main ()
(gdb)

And ex_shader_target crashes here (in the same place) :

Program received signal SIGSEGV, Segmentation fault.
0x69c2bca4 in d3dx9_43!D3DXCreateEffect () from C:\Windows\system32\D3DX9_43.dll
(gdb) bt
#0  0x69c2bca4 in d3dx9_43!D3DXCreateEffect () from C:\Windows\system32\D3DX9_43.dll
#1  0x00446539 in d3d_flush_vertex_cache(ALLEGRO_DISPLAY*) ()
#2  0x004ae945 in d3d_draw_bitmap_region(ALLEGRO_BITMAP*, ALLEGRO_COLOR, float, float, float, float, int) ()
#3  0x0040ceec in al_draw_bitmap ()
#4  0x004bca01 in main ()
(gdb)

SiegeLord
Member #7,827
October 2006
avatar

To enable logging, you need to set the trace level in the system configuration to something non-empty. E.g. you can put this in an allegro5.log:

[trace]
level = debug

"For in much wisdom is much grief: and he that increases knowledge increases sorrow."-Ecclesiastes 1:18
[SiegeLord's Abode][Codes]:[DAllegro5]:[RustAllegro]

Go to: