engine3d crashes w/out error...

Linux specific forum
GBeebe
Enthusiast
Enthusiast
Posts: 263
Joined: Sat Oct 09, 2004 6:52 pm
Location: Franklin, PA - USA
Contact:

engine3d crashes w/out error...

Post by GBeebe »

Code: Select all

Shape_txtr = LoadTexture(#PB_Any, Shape.s)
If Shape_txtr
    Debug "texture loaded"
    Shape_mtrl = CreateMaterial(#PB_Any, TextureID(Shape_txtr))
        If Shape_mtrl
            Debug "material created"
        Else
            Debug "error creating material"
        EndIf
 Else
  Debug "error loading " + Shape.s
EndIf
In the debug output i get
texture loaded
but that's it. My game freezes, I can get back to the PureBasic IDE, but my screen rez doesn't go back and I can't move my mouse cursor. There isn't any debug output as to if the material was created or not.

this is the current ogre.log

15:03:48: Creating resource group General
15:03:48: Registering ResourceManager for type Material
15:03:48: Registering ResourceManager for type Mesh
15:03:48: Registering ResourceManager for type Skeleton
15:03:48: OverlayElementFactory for type Panel registered.
15:03:48: OverlayElementFactory for type BorderPanel registered.
15:03:48: OverlayElementFactory for type TextArea registered.
15:03:48: Registering ResourceManager for type Font
15:03:48: ArchiveFactory for archive type FileSystem registered.
15:03:48: ArchiveFactory for archive type Zip registered.
15:03:48: DevIL version: Developer's Image Library (DevIL) 1.6.7 Jun 21 2006
15:03:48: DevIL image formats: bmp dib cut dcx dds gif hdr ico cur jpg jpe jpeg lif mdl mng jng pcx pic pix png pbm pgm pnm ppm psd pdd psp pxr sgi bw rgb rgba tga vda icb vst tif tiff wal xpm raw
15:03:48: Registering ResourceManager for type HighLevelGpuProgram
15:03:48: Particle Emitter Type 'Point' registered
15:03:48: Particle Emitter Type 'Box' registered
15:03:48: Particle Emitter Type 'Ellipsoid' registered
15:03:48: Particle Emitter Type 'Cylinder' registered
15:03:48: Particle Emitter Type 'Ring' registered
15:03:48: Particle Emitter Type 'HollowEllipsoid' registered
15:03:48: Particle Affector Type 'LinearForce' registered
15:03:48: Particle Affector Type 'ColourFader' registered
15:03:48: Particle Affector Type 'ColourFader2' registered
15:03:48: Particle Affector Type 'ColourImage' registered
15:03:48: Particle Affector Type 'ColourInterpolator' registered
15:03:48: Particle Affector Type 'Scaler' registered
15:03:48: Particle Affector Type 'Rotator' registered
15:03:48: OpenGL Rendering Subsystem created.
15:03:48: An exception has been thrown!

-----------------------------------
Details:
-----------------------------------
Error #: 8
Function: ConfigFile::load
Description: 'plugins.cfg' file not found!.
File: OgreConfigFile.cpp
Line: 79
Stack unwinding: <<beginning of stack>>
15:03:48: plugins.cfg not found, automatic plugin loading disabled.
15:03:48: *-*-* OGRE Initialising
15:03:48: *-*-* Version 1.0.7 (Azathoth)
15:03:48: ******************************
*** Starting SDL Subsystem ***
******************************
15:03:49: ResourceBackgroundQueue - threading disabled
15:03:49: GLRenderSystem::createRenderWindow "PureBasic Ogre", 1024x768 fullscreen miscParams: colourDepth=32 depthBuffer=true top=0
15:03:49: GL_VERSION = 1.5.8 NVIDIA 96.31
15:03:49: GL_VENDOR = NVIDIA Corporation
15:03:49: GL_RENDERER = GeForce2 MX/AGP/SSE/3DNOW!
15:03:49: GL_EXTENSIONS = GL_ARB_imaging GL_ARB_multitexture GL_ARB_pixel_buffer_object GL_ARB_point_parameters GL_ARB_point_sprite GL_ARB_shader_objects GL_ARB_shading_language_100 GL_ARB_texture_compression GL_ARB_texture_cube_map GL_ARB_texture_env_add GL_ARB_texture_env_combine GL_ARB_texture_env_dot3 GL_ARB_texture_mirrored_repeat GL_ARB_texture_rectangle GL_ARB_transpose_matrix GL_ARB_vertex_buffer_object GL_ARB_vertex_program GL_ARB_vertex_shader GL_ARB_window_pos GL_S3_s3tc GL_EXT_texture_env_add GL_EXT_abgr GL_EXT_bgra GL_EXT_blend_color GL_EXT_blend_minmax GL_EXT_blend_subtract GL_EXT_clip_volume_hint GL_EXT_compiled_vertex_array GL_EXT_Cg_shader GL_EXT_draw_range_elements GL_EXT_fog_coord GL_EXT_gpu_program_parameters GL_EXT_multi_draw_arrays GL_EXT_packed_pixels GL_EXT_paletted_texture GL_EXT_pixel_buffer_object GL_EXT_point_parameters GL_EXT_rescale_normal GL_EXT_secondary_color GL_EXT_separate_specular_color GL_EXT_shared_texture_palette GL_EXT_stencil_wrap GL_EXT_texture_compression_s3tc GL_EXT_texture_cube_map GL_EXT_texture_edge_clamp GL_EXT_texture_env_combine GL_EXT_texture_env_dot3 GL_EXT_texture_filter_anisotropic GL_EXT_texture_lod GL_EXT_texture_lod_bias GL_EXT_texture_object GL_EXT_vertex_array GL_IBM_rasterpos_clip GL_IBM_texture_mirrored_repeat GL_KTX_buffer_region GL_NV_blend_square GL_NV_fence GL_NV_fog_distance GL_NV_light_max_exponent GL_NV_packed_depth_stencil GL_NV_pixel_data_range GL_NV_point_sprite GL_NV_register_combiners GL_NV_texgen_reflection GL_NV_texture_env_combine4 GL_NV_texture_rectangle GL_NV_vertex_array_range GL_NV_vertex_array_range2 GL_NV_vertex_program GL_NV_vertex_program1_1 GL_SGIS_generate_mipmap GL_SGIS_multitexture GL_SGIS_texture_lod GL_SUN_slice_accum
15:03:49: ***************************
*** GL Renderer Started ***
***************************
15:03:49: Registering ResourceManager for type GpuProgram
15:03:49: RenderSystem capabilities
15:03:49: -------------------------
15:03:49: * Hardware generation of mipmaps: yes
15:03:49: * Texture blending: yes
15:03:49: * Anisotropic texture filtering: yes
15:03:49: * Dot product texture operation: yes
15:03:49: * Cube mapping: yes
15:03:49: * Hardware stencil buffer: yes
15:03:49: - Stencil depth: 8
15:03:49: - Two sided stencil support: no
15:03:49: - Wrap stencil values: yes
15:03:49: * Hardware vertex / index buffers: yes
15:03:49: * Vertex programs: yes
15:03:49: - Max vertex program version: arbvp1
15:03:49: * Fragment programs: no
15:03:49: * Texture Compression: yes
15:03:49: - DXT: yes
15:03:49: - VTC: no
15:03:49: * Scissor Rectangle: yes
15:03:49: * Hardware Occlusion Query: no
15:03:49: * User clip planes: yes
15:03:49: * VET_UBYTE4 vertex element type: yes
15:03:49: * Infinite far plane projection: yes
15:03:49: * Hardware render-to-texture: no
15:03:49: * Floating point textures: no
15:03:49: * Non-power-of-two textures: no
15:03:49: * Volume textures: yes
15:03:49: Registering ResourceManager for type Texture
15:03:49: Particle Renderer Type 'billboard' registered
15:03:49: DevIL version: Developer's Image Library (DevIL) 1.6.7 Jun 21 2006
15:03:49: DevIL image formats: bmp dib cut dcx dds gif hdr ico cur jpg jpe jpeg lif mdl mng jng pcx pic pix png pbm pgm pnm ppm psd pdd psp pxr sgi bw rgb rgba tga vda icb vst tif tiff wal xpm raw
15:03:49: Added resource location './data' of type 'FileSystem' to resource group 'General'
15:03:49: Creating viewport on target 'PureBasic Ogre', rendering from camera 'MyCam', relative dimensions L: 0.00 T: 0.00 W: 1.00 H: 1.00 ZOrder: 0
15:03:49: Viewport for camera 'MyCam', actual dimensions L: 0 T: 0 W: 1024 H: 768
15:03:54: Texture: Shapes/test.png: Loading 1 faces(PF_A8B8G8R8,16x16x1) with 4 hardware generated mipmaps from Image. Internal format is PF_A8R8G8B8,16x16x1.
edit:
If i replace

Code: Select all

Debug "texture loaded"
with

Code: Select all

Debug Str(TextureID(Shape_txtr))
it hangs without any debug output.

edit 2
found plugins.cfg an now, when I try to execute my code it just says Waiting for executable to start... And sits there forever.
The last line of Ogre.log says:

21:17:20: Loading library /usr/lib/OGRE/Plugin_BSPSceneManager.so

Any ideas?
User avatar
oryaaaaa
Addict
Addict
Posts: 831
Joined: Mon Jan 12, 2004 11:40 pm
Location: Okazaki, JAPAN

Post by oryaaaaa »

Hi

I think OGRE 1.07 FileSystem BUG.
http://www.purebasic.fr/english/viewtopic.php?t=26714
Kale
PureBasic Expert
PureBasic Expert
Posts: 3000
Joined: Fri Apr 25, 2003 6:03 pm
Location: Lincoln, UK
Contact:

Post by Kale »

This might be one explanation:
http://www.purebasic.fr/english/viewtopic.php?t=24474

otherwise, its probably a bug.
--Kale

Image
Post Reply