OGRECave / ogre

scene-oriented, flexible 3D engine (C++, Python, C#, Java)
https://ogrecave.github.io/ogre/
MIT License
3.94k stars 972 forks source link

Crashing on start in Linux #1634

Closed slapin closed 4 years ago

slapin commented 4 years ago

System Information

Detailled description

I compiled Ogre from source code according to instruction. Everything went fine. I get this error on start of SampleBrowser.

terminate called after throwing an instance of 'std::length_error'
  what():  basic_string::_M_replace_aux

The actual string length is huge value.

Ogre.log

As log was not produced in file, I provide the stdout stuff:

slapin@slapin-pc:~/ogre-projects/test/bin$ ./SampleBrowser 
Creating resource group General
Creating resource group OgreInternal
Creating resource group OgreAutodetect
SceneManagerFactory for type 'DefaultSceneManager' registered.
Registering ResourceManager for type Material
Registering ResourceManager for type Mesh
Registering ResourceManager for type Skeleton
MovableObjectFactory for type 'ParticleSystem' registered.
ArchiveFactory for archive type FileSystem registered.
ArchiveFactory for archive type Zip registered.
ArchiveFactory for archive type EmbeddedZip registered.
DDS codec registering
ETC codec registering
Registering ResourceManager for type HighLevelGpuProgram
Registering ResourceManager for type Compositor
MovableObjectFactory for type 'Entity' registered.
MovableObjectFactory for type 'Light' registered.
MovableObjectFactory for type 'BillboardSet' registered.
MovableObjectFactory for type 'ManualObject' registered.
MovableObjectFactory for type 'BillboardChain' registered.
MovableObjectFactory for type 'RibbonTrail' registered.
*-*-* OGRE Initialising
*-*-* Version 1.12.8 (Rhagorthua)
Installing plugin: GL RenderSystem
OpenGL Rendering Subsystem created.
Plugin successfully installed
Installing plugin: GL 3+ RenderSystem
OpenGL 3+ Rendering Subsystem created.
Plugin successfully installed
Installing plugin: Cg Program Manager
Plugin successfully installed
Installing plugin: Octree Scene Manager
Plugin successfully installed
Installing plugin: ParticleFX
Particle Emitter Type 'Point' registered
Particle Emitter Type 'Box' registered
Particle Emitter Type 'Ellipsoid' registered
Particle Emitter Type 'Cylinder' registered
Particle Emitter Type 'Ring' registered
Particle Emitter Type 'HollowEllipsoid' registered
Particle Affector Type 'LinearForce' registered
Particle Affector Type 'ColourFader' registered
Particle Affector Type 'ColourFader2' registered
Particle Affector Type 'ColourImage' registered
Particle Affector Type 'ColourInterpolator' registered
Particle Affector Type 'Scaler' registered
Particle Affector Type 'Rotator' registered
Particle Affector Type 'DirectionRandomiser' registered
Particle Affector Type 'DeflectorPlane' registered
Plugin successfully installed
Installing plugin: BSP Scene Manager
Plugin successfully installed
Installing plugin: STB Image Codec
stb_image - v2.23 - public domain image loader
Supported formats: jpeg,jpg,png,bmp,psd,tga,gif,pic,ppm,pgm,hdr
Plugin successfully installed
Installing plugin: DotScene Loader
Plugin successfully installed
OverlayElementFactory for type Panel registered.
OverlayElementFactory for type BorderPanel registered.
OverlayElementFactory for type TextArea registered.
Registering ResourceManager for type Font
CPU Identifier & Features
-------------------------
 *   CPU ID: GenuineIntel: Intel(R) Core(TM) i7-2600K CPU @ 3.40GHz
 *          SSE: yes
 *         SSE2: yes
 *         SSE3: yes
 *        SSE41: yes
 *        SSE42: yes
 *          MMX: yes
 *       MMXEXT: yes
 *        3DNOW: no
 *     3DNOWEXT: no
 *         CMOV: yes
 *          TSC: yes
 *INVARIANT TSC: yes
 *          FPU: yes
 *          PRO: yes
 *           HT: no
-------------------------
******************************
*** Starting GLX Subsystem ***
******************************
GLX_VERSION = 1.4
GLX_EXTENSIONS = GLX_ARB_get_proc_address GLX_ARB_multisample GLX_EXT_visual_info GLX_EXT_visual_rating GLX_EXT_import_context GLX_SGI_video_sync GLX_NV_swap_group GLX_SGIX_fbconfig GLX_SGIX_pbuffer GLX_SGI_swap_control GLX_EXT_swap_control GLX_EXT_swap_control_tear GLX_EXT_buffer_age GLX_ARB_create_context GLX_ARB_create_context_profile GLX_NV_float_buffer GLX_ARB_fbconfig_float GLX_EXT_fbconfig_packed_float GLX_EXT_texture_from_pixmap GLX_EXT_framebuffer_sRGB GLX_NV_copy_image GLX_NV_copy_buffer GLX_NV_multisample_coverage GLX_EXT_create_context_es_profile GLX_EXT_create_context_es2_profile GLX_ARB_create_context_no_error GLX_ARB_create_context_robustness GLX_NV_delay_before_swap GLX_EXT_stereo_tree GLX_ARB_context_flush_control GLX_NV_robustness_video_memory_purge GLX_NV_multigpu_context 
Registering ResourceManager for type Texture
GLRenderSystem::_createRenderWindow "OGRE Sample Browser", 2560x1440 windowed  miscParams: FSAA=0 displayFrequency=N/A gamma=No parentWindowHandle=148897800 vsync=Yes 
GLXWindow::create colourBufferSize=32 gamma=0 FSAA=0
Created GL 3.0 context
GLXWindow::create used FBConfigID = 167
GL_VERSION = 4.6.0.0
GL_VENDOR = NVIDIA Corporation
GL_RENDERER = GeForce GTX 1060 6GB/PCIe/SSE2
GL_EXTENSIONS = GL_AMD_multi_draw_indirect GL_AMD_seamless_cubemap_per_texture GL_AMD_vertex_shader_viewport_index GL_AMD_vertex_shader_layer GL_ARB_arrays_of_arrays GL_ARB_base_instance GL_ARB_bindless_texture GL_ARB_blend_func_extended GL_ARB_buffer_storage GL_ARB_clear_buffer_object GL_ARB_clear_texture GL_ARB_clip_control GL_ARB_color_buffer_float GL_ARB_compatibility GL_ARB_compressed_texture_pixel_storage GL_ARB_conservative_depth GL_ARB_compute_shader GL_ARB_compute_variable_group_size GL_ARB_conditional_render_inverted GL_ARB_copy_buffer GL_ARB_copy_image GL_ARB_cull_distance GL_ARB_debug_output GL_ARB_depth_buffer_float GL_ARB_depth_clamp GL_ARB_depth_texture GL_ARB_derivative_control GL_ARB_direct_state_access GL_ARB_draw_buffers GL_ARB_draw_buffers_blend GL_ARB_draw_indirect GL_ARB_draw_elements_base_vertex GL_ARB_draw_instanced GL_ARB_enhanced_layouts GL_ARB_ES2_compatibility GL_ARB_ES3_compatibility GL_ARB_ES3_1_compatibility GL_ARB_ES3_2_compatibility GL_ARB_explicit_attrib_location GL_ARB_explicit_uniform_location GL_ARB_fragment_coord_conventions GL_ARB_fragment_layer_viewport GL_ARB_fragment_program GL_ARB_fragment_program_shadow GL_ARB_fragment_shader GL_ARB_fragment_shader_interlock GL_ARB_framebuffer_no_attachments GL_ARB_framebuffer_object GL_ARB_framebuffer_sRGB GL_ARB_geometry_shader4 GL_ARB_get_program_binary GL_ARB_get_texture_sub_image GL_ARB_gl_spirv GL_ARB_gpu_shader5 GL_ARB_gpu_shader_fp64 GL_ARB_gpu_shader_int64 GL_ARB_half_float_pixel GL_ARB_half_float_vertex GL_ARB_imaging GL_ARB_indirect_parameters GL_ARB_instanced_arrays GL_ARB_internalformat_query GL_ARB_internalformat_query2 GL_ARB_invalidate_subdata GL_ARB_map_buffer_alignment GL_ARB_map_buffer_range GL_ARB_multi_bind GL_ARB_multi_draw_indirect GL_ARB_multisample GL_ARB_multitexture GL_ARB_occlusion_query GL_ARB_occlusion_query2 GL_ARB_parallel_shader_compile GL_ARB_pipeline_statistics_query GL_ARB_pixel_buffer_object GL_ARB_point_parameters GL_ARB_point_sprite GL_ARB_polygon_offset_clamp GL_ARB_post_depth_coverage GL_ARB_program_interface_query GL_ARB_provoking_vertex GL_ARB_query_buffer_object GL_ARB_robust_buffer_access_behavior GL_ARB_robustness GL_ARB_sample_locations GL_ARB_sample_shading GL_ARB_sampler_objects GL_ARB_seamless_cube_map GL_ARB_seamless_cubemap_per_texture GL_ARB_separate_shader_objects GL_ARB_shader_atomic_counter_ops GL_ARB_shader_atomic_counters GL_ARB_shader_ballot GL_ARB_shader_bit_encoding GL_ARB_shader_clock GL_ARB_shader_draw_parameters GL_ARB_shader_group_vote GL_ARB_shader_image_load_store GL_ARB_shader_image_size GL_ARB_shader_objects GL_ARB_shader_precision GL_ARB_shader_storage_buffer_object GL_ARB_shader_subroutine GL_ARB_shader_texture_image_samples GL_ARB_shader_texture_lod GL_ARB_shading_language_100 GL_ARB_shader_viewport_layer_array GL_ARB_shading_language_420pack GL_ARB_shading_language_include GL_ARB_shading_language_packing GL_ARB_shadow GL_ARB_sparse_buffer GL_ARB_sparse_texture GL_ARB_sparse_texture2 GL_ARB_sparse_texture_clamp GL_ARB_spirv_extensions GL_ARB_stencil_texturing GL_ARB_sync GL_ARB_tessellation_shader GL_ARB_texture_barrier GL_ARB_texture_border_clamp GL_ARB_texture_buffer_object GL_ARB_texture_buffer_object_rgb32 GL_ARB_texture_buffer_range GL_ARB_texture_compression GL_ARB_texture_compression_bptc GL_ARB_texture_compression_rgtc GL_ARB_texture_cube_map GL_ARB_texture_cube_map_array GL_ARB_texture_env_add GL_ARB_texture_env_combine GL_ARB_texture_env_crossbar GL_ARB_texture_env_dot3 GL_ARB_texture_filter_anisotropic GL_ARB_texture_filter_minmax GL_ARB_texture_float GL_ARB_texture_gather GL_ARB_texture_mirror_clamp_to_edge GL_ARB_texture_mirrored_repeat GL_ARB_texture_multisample GL_ARB_texture_non_power_of_two GL_ARB_texture_query_levels GL_ARB_texture_query_lod GL_ARB_texture_rectangle GL_ARB_texture_rg GL_ARB_texture_rgb10_a2ui GL_ARB_texture_stencil8 GL_ARB_texture_storage GL_ARB_texture_storage_multisample GL_ARB_texture_swizzle GL_ARB_texture_view GL_ARB_timer_query GL_ARB_transform_feedback2 GL_ARB_transform_feedback3 GL_ARB_transform_feedback_instanced GL_ARB_transform_feedback_overflow_query GL_ARB_transpose_matrix GL_ARB_uniform_buffer_object GL_ARB_vertex_array_bgra GL_ARB_vertex_array_object GL_ARB_vertex_attrib_64bit GL_ARB_vertex_attrib_binding GL_ARB_vertex_buffer_object GL_ARB_vertex_program GL_ARB_vertex_shader GL_ARB_vertex_type_10f_11f_11f_rev GL_ARB_vertex_type_2_10_10_10_rev GL_ARB_viewport_array GL_ARB_window_pos GL_ATI_draw_buffers GL_ATI_texture_float GL_ATI_texture_mirror_once GL_S3_s3tc GL_EXT_texture_env_add GL_EXT_abgr GL_EXT_bgra GL_EXT_bindable_uniform GL_EXT_blend_color GL_EXT_blend_equation_separate GL_EXT_blend_func_separate GL_EXT_blend_minmax GL_EXT_blend_subtract GL_EXT_compiled_vertex_array GL_EXT_Cg_shader GL_EXT_depth_bounds_test GL_EXT_direct_state_access GL_EXT_draw_buffers2 GL_EXT_draw_instanced GL_EXT_draw_range_elements GL_EXT_fog_coord GL_EXT_framebuffer_blit GL_EXT_framebuffer_multisample GL_EXTX_framebuffer_mixed_formats GL_EXT_framebuffer_multisample_blit_scaled GL_EXT_framebuffer_object GL_EXT_framebuffer_sRGB GL_EXT_geometry_shader4 GL_EXT_gpu_program_parameters GL_EXT_gpu_shader4 GL_EXT_multi_draw_arrays GL_EXT_multiview_texture_multisample GL_EXT_multiview_timer_query GL_EXT_packed_depth_stencil GL_EXT_packed_float GL_EXT_packed_pixels GL_EXT_pixel_buffer_object GL_EXT_point_parameters GL_EXT_polygon_offset_clamp GL_EXT_post_depth_coverage GL_EXT_provoking_vertex GL_EXT_raster_multisample GL_EXT_rescale_normal GL_EXT_secondary_color GL_EXT_separate_shader_objects GL_EXT_separate_specular_color GL_EXT_shader_image_load_formatted GL_EXT_shader_image_load_store GL_EXT_shader_integer_mix GL_EXT_shadow_funcs GL_EXT_sparse_texture2 GL_EXT_stencil_two_side GL_EXT_stencil_wrap GL_EXT_texture3D GL_EXT_texture_array GL_EXT_texture_buffer_object GL_EXT_texture_compression_dxt1 GL_EXT_texture_compression_latc GL_EXT_texture_compression_rgtc 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_filter_minmax GL_EXT_texture_integer GL_EXT_texture_lod GL_EXT_texture_lod_bias GL_EXT_texture_mirror_clamp GL_EXT_texture_object GL_EXT_texture_shadow_lod GL_EXT_texture_shared_exponent GL_EXT_texture_sRGB GL_EXT_texture_sRGB_R8 GL_EXT_texture_sRGB_decode GL_EXT_texture_storage GL_EXT_texture_swizzle GL_EXT_timer_query GL_EXT_transform_feedback2 GL_EXT_vertex_array GL_EXT_vertex_array_bgra GL_EXT_vertex_attrib_64bit GL_EXT_window_rectangles GL_EXT_x11_sync_object GL_EXT_import_sync_object GL_NV_robustness_video_memory_purge GL_IBM_rasterpos_clip GL_IBM_texture_mirrored_repeat GL_KHR_context_flush_control GL_KHR_debug GL_EXT_memory_object GL_EXT_memory_object_fd GL_KHR_parallel_shader_compile GL_KHR_no_error GL_KHR_robust_buffer_access_behavior GL_KHR_robustness GL_EXT_semaphore GL_EXT_semaphore_fd GL_KHR_shader_subgroup GL_KTX_buffer_region GL_NV_alpha_to_coverage_dither_control GL_NV_bindless_multi_draw_indirect GL_NV_bindless_multi_draw_indirect_count GL_NV_bindless_texture GL_NV_blend_equation_advanced GL_NV_blend_equation_advanced_coherent GL_NVX_blend_equation_advanced_multi_draw_buffers GL_NV_blend_minmax_factor GL_NV_blend_square GL_NV_clip_space_w_scaling GL_NV_command_list GL_NV_compute_program5 GL_NV_conditional_render GL_NV_conservative_raster GL_NV_conservative_raster_dilate GL_NV_conservative_raster_pre_snap_triangles GL_NV_copy_depth_to_color GL_NV_copy_image GL_NV_depth_buffer_float GL_NV_depth_clamp GL_NV_draw_texture GL_NV_draw_vulkan_image GL_NV_ES1_1_compatibility GL_NV_ES3_1_compatibility GL_NV_explicit_multisample GL_NV_feature_query GL_NV_fence GL_NV_fill_rectangle GL_NV_float_buffer GL_NV_fog_distance GL_NV_fragment_coverage_to_color GL_NV_fragment_program GL_NV_fragment_program_option GL_NV_fragment_program2 GL_NV_fragment_shader_interlock GL_NV_framebuffer_mixed_samples GL_NV_framebuffer_multisample_coverage GL_NV_geometry_shader4 GL_NV_geometry_shader_passthrough GL_NV_gpu_program4 GL_NV_internalformat_sample_query GL_NV_gpu_program4_1 GL_NV_gpu_program5 GL_NV_gpu_program5_mem_extended GL_NV_gpu_program_fp64 GL_NV_gpu_shader5 GL_NV_half_float GL_NV_light_max_exponent GL_NV_memory_attachment GL_NV_multisample_coverage GL_NV_multisample_filter_hint GL_NV_occlusion_query GL_NV_packed_depth_stencil GL_NV_parameter_buffer_object GL_NV_parameter_buffer_object2 GL_NV_path_rendering GL_NV_path_rendering_shared_edge GL_NV_pixel_data_range GL_NV_point_sprite GL_NV_primitive_restart GL_NV_query_resource GL_NV_query_resource_tag GL_NV_register_combiners GL_NV_register_combiners2 GL_NV_sample_locations GL_NV_sample_mask_override_coverage GL_NV_shader_atomic_counters GL_NV_shader_atomic_float GL_NV_shader_atomic_float64 GL_NV_shader_atomic_fp16_vector GL_NV_shader_atomic_int64 GL_NV_shader_buffer_load GL_NV_shader_storage_buffer_object GL_NV_shader_subgroup_partitioned GL_NV_stereo_view_rendering GL_NV_texgen_reflection GL_NV_texture_barrier GL_NV_texture_compression_vtc GL_NV_texture_env_combine4 GL_NV_texture_multisample GL_NV_texture_rectangle GL_NV_texture_rectangle_compressed GL_NV_texture_shader GL_NV_texture_shader2 GL_NV_texture_shader3 GL_NV_transform_feedback GL_NV_transform_feedback2 GL_NV_uniform_buffer_unified_memory GL_NV_vdpau_interop GL_NV_vdpau_interop2 GL_NV_vertex_array_range GL_NV_vertex_array_range2 GL_NV_vertex_attrib_integer_64bit GL_NV_vertex_buffer_unified_memory GL_NV_vertex_program GL_NV_vertex_program1_1 GL_NV_vertex_program2 GL_NV_vertex_program2_option GL_NV_vertex_program3 GL_NV_viewport_array2 GL_NV_viewport_swizzle GL_NVX_conditional_render GL_NV_gpu_multicast GL_NVX_progress_fence GL_NVX_gpu_memory_info GL_NVX_nvenc_interop GL_NV_shader_thread_group GL_NV_shader_thread_shuffle GL_KHR_blend_equation_advanced GL_KHR_blend_equation_advanced_coherent GL_OVR_multiview GL_OVR_multiview2 GL_SGIS_generate_mipmap GL_SGIS_texture_lod GL_SGIX_depth_texture GL_SGIX_shadow GL_SUN_slice_accum 
***************************
*** GL Renderer Started ***
***************************
Registering ResourceManager for type GpuProgram
GLSL support detected
GL: Using GL_EXT_framebuffer_object for rendering to textures (best)
FBO PF_UNKNOWN depth/stencil support: D0S8 D16S0 D24S0 D32S0 Packed-D24S8
FBO PF_L8 depth/stencil support: D0S0 D0S8 D16S0 D24S0 D32S0 Packed-D24S8
FBO PF_A8 depth/stencil support: D0S0 D0S8 D16S0 D24S0 D32S0 Packed-D24S8
FBO PF_BYTE_LA depth/stencil support: D0S0 D0S8 D16S0 D24S0 D32S0 Packed-D24S8
FBO PF_R5G6B5 depth/stencil support: D0S0 D0S8 D16S0 D24S0 D32S0 Packed-D24S8
FBO PF_A4R4G4B4 depth/stencil support: D0S0 D0S8 D16S0 D24S0 D32S0 Packed-D24S8
FBO PF_A1R5G5B5 depth/stencil support: D0S0 D0S8 D16S0 D24S0 D32S0 Packed-D24S8
FBO PF_R8G8B8 depth/stencil support: D0S0 D0S8 D16S0 D24S0 D32S0 Packed-D24S8
FBO PF_B8G8R8 depth/stencil support: D0S0 D0S8 D16S0 D24S0 D32S0 Packed-D24S8
FBO PF_A8R8G8B8 depth/stencil support: D0S0 D0S8 D16S0 D24S0 D32S0 Packed-D24S8
FBO PF_A8B8G8R8 depth/stencil support: D0S0 D0S8 D16S0 D24S0 D32S0 Packed-D24S8
FBO PF_B8G8R8A8 depth/stencil support: D0S0 D0S8 D16S0 D24S0 D32S0 Packed-D24S8
FBO PF_FLOAT16_RGB depth/stencil support: D0S0 D0S8 D16S0 D24S0 D32S0 Packed-D24S8
FBO PF_FLOAT16_RGBA depth/stencil support: D0S0 D0S8 D16S0 D24S0 D32S0 Packed-D24S8
FBO PF_FLOAT32_RGB depth/stencil support: D0S0 D0S8 D16S0 D24S0 D32S0 Packed-D24S8
FBO PF_FLOAT32_RGBA depth/stencil support: D0S0 D0S8 D16S0 D24S0 D32S0 Packed-D24S8
FBO PF_X8R8G8B8 depth/stencil support: D0S0 D0S8 D16S0 D24S0 D32S0 Packed-D24S8
FBO PF_X8B8G8R8 depth/stencil support: D0S0 D0S8 D16S0 D24S0 D32S0 Packed-D24S8
FBO PF_R8G8B8A8 depth/stencil support: D0S0 D0S8 D16S0 D24S0 D32S0 Packed-D24S8
FBO PF_DEPTH16 depth/stencil support: D0S0 D16S0 D24S0 D32S0 Packed-D24S8
FBO PF_SHORT_RGBA depth/stencil support: D0S0 D0S8 D16S0 D24S0 D32S0 Packed-D24S8
FBO PF_R3G3B2 depth/stencil support: D0S0 D0S8 D16S0 D24S0 D32S0 Packed-D24S8
FBO PF_FLOAT16_R depth/stencil support: D0S0 D0S8 D16S0 D24S0 D32S0 Packed-D24S8
FBO PF_FLOAT32_R depth/stencil support: D0S0 D0S8 D16S0 D24S0 D32S0 Packed-D24S8
FBO PF_FLOAT16_GR depth/stencil support: D0S0 D0S8 D16S0 D24S0 D32S0 Packed-D24S8
FBO PF_FLOAT32_GR depth/stencil support: D0S0 D0S8 D16S0 D24S0 D32S0 Packed-D24S8
FBO PF_SHORT_RGB depth/stencil support: D0S0 D0S8 D16S0 D24S0 D32S0 Packed-D24S8
[GL] : Valid FBO targets PF_UNKNOWN PF_L8 PF_A8 PF_BYTE_LA PF_R5G6B5 PF_A4R4G4B4 PF_A1R5G5B5 PF_R8G8B8 PF_B8G8R8 PF_A8R8G8B8 PF_A8B8G8R8 PF_B8G8R8A8 PF_FLOAT16_RGB PF_FLOAT16_RGBA PF_FLOAT32_RGB PF_FLOAT32_RGBA PF_X8R8G8B8 PF_X8B8G8R8 PF_R8G8B8A8 PF_DEPTH16 PF_SHORT_RGBA PF_R3G3B2 PF_FLOAT16_R PF_FLOAT32_R PF_FLOAT16_GR PF_FLOAT32_GR PF_SHORT_RGB 
RenderSystem capabilities
-------------------------
RenderSystem Name: OpenGL Rendering Subsystem
GPU Vendor: nvidia
Device Name: GeForce GTX 1060 6GB/PCIe/SSE2
Driver Version: 4.6.0.0
 * Fixed function pipeline: yes
 * 32-bit index buffers: yes
 * Hardware stencil buffer: yes
   - Stencil depth: 8
   - Two sided stencil support: yes
   - Wrap stencil values: yes
 * Vertex programs: yes
   - Number of floating-point constants: 1024
   - Number of integer constants: 0
   - Number of boolean constants: 0
 * Fragment programs: yes
   - Number of floating-point constants: 1024
   - Number of integer constants: 0
   - Number of boolean constants: 0
 * Geometry programs: yes
   - Number of floating-point constants: 2048
   - Number of integer constants: 0
   - Number of boolean constants: 0
 * Tessellation Hull programs: no
 * Tessellation Domain programs: no
 * Compute programs: no
 * Supported Shader Profiles: arbfp1 arbvp1 fp20 fp30 fp40 glsl glsl100 glsl110 glsl120 gp4fp gp4gp gp4vp gpu_fp gpu_gp gpu_vp nvgp4 vp30 vp40
 * Read-back compiled shader: yes
 * Number of vertex attributes: 16
 * Textures
   - Number of texture units: 16
   - Floating point: yes
   - Non-power-of-two: yes
   - 1D textures: yes
   - 2D array textures: yes
   - 3D textures: yes
   - Anisotropic filtering: yes
 * Texture Compression: yes
   - DXT: yes
   - VTC: yes
   - PVRTC: no
   - ATC: no
   - ETC1: no
   - ETC2: no
   - BC4/BC5: no
   - BC6H/BC7: no
   - ASTC: no
   - Mipmaps for compressed formats: yes
 * Vertex Buffers
   - VET_UBYTE4 element type: yes
   - Render to Vertex Buffer: yes
   - Instance Data: yes
   - Primitive Restart: no
 * Vertex texture fetch: yes
   - Max vertex textures: 32
   - Vertex textures shared: yes
 * Read/Write Buffers: no
 * Hardware Occlusion Query: yes
 * User clip planes: yes
 * Infinite far plane projection: yes
 * Hardware render-to-texture: yes
   - Multiple Render Targets: 8
   - With different bit depths: yes
 * Point Sprites: yes
   - Extended parameters: yes
   - Max Size: 2047
 * Wide Lines: yes
 * Hardware Gamma: yes
 * PBuffer support: yes
 * Vertex Array Objects: no
 * Separate shader objects: no
   - redeclare GLSL interface block: no
 * Debugging/ profiling events: no
 * Map buffer storage: yes
DefaultWorkQueue('Root') initialising on thread 140069659108480.
DefaultWorkQueue('Root')::WorkerFunc - thread 140069610678016 starting.
DefaultWorkQueue('Root')::WorkerFunc - thread 140069602285312 starting.
Particle Renderer Type 'billboard' registered
SceneManagerFactory for type 'OctreeSceneManager' registered.
SceneManagerFactory for type 'BspSceneManager' registered.
Registering SceneLoader Q3BSP
Registering SceneLoader DotScene
Creating resource group BSPWorld
Added resource location '../share/OGRE/Media/packs/oa_rpg3dm2.pk3' of type 'Zip' to resource group 'BSPWorld'
Creating resource group Essential
Added resource location '../share/OGRE/Media/thumbnails' of type 'FileSystem' to resource group 'Essential'
Added resource location '../share/OGRE/Media/packs/SdkTrays.zip' of type 'Zip' to resource group 'Essential'
Added resource location '../share/OGRE/Media/packs/profiler.zip' of type 'Zip' to resource group 'Essential'
Added resource location '../share/OGRE/Media' of type 'FileSystem' to resource group 'General'
Added resource location '../share/OGRE/Media/fonts' of type 'FileSystem' to resource group 'General'
Added resource location '../share/OGRE/Media/materials/programs' of type 'FileSystem' to resource group 'General'
Added resource location '../share/OGRE/Media/materials/scripts' of type 'FileSystem' to resource group 'General'
Added resource location '../share/OGRE/Media/materials/textures' of type 'FileSystem' to resource group 'General'
Added resource location '../share/OGRE/Media/materials/textures/terrain' of type 'FileSystem' to resource group 'General'
Added resource location '../share/OGRE/Media/models' of type 'FileSystem' to resource group 'General'
Added resource location '../share/OGRE/Media/particle' of type 'FileSystem' to resource group 'General'
Added resource location '../share/OGRE/Media/DeferredShadingMedia' of type 'FileSystem' to resource group 'General'
Added resource location '../share/OGRE/Media/DeferredShadingMedia/DeferredShading/post' of type 'FileSystem' to resource group 'General'
Added resource location '../share/OGRE/Media/PCZAppMedia' of type 'FileSystem' to resource group 'General'
Added resource location '../share/OGRE/Media/materials/scripts/SSAO' of type 'FileSystem' to resource group 'General'
Added resource location '../share/OGRE/Media/materials/textures/SSAO' of type 'FileSystem' to resource group 'General'
Added resource location '../share/OGRE/Media/volumeTerrain' of type 'FileSystem' to resource group 'General'
Added resource location '../share/OGRE/Media/CSMShadows' of type 'FileSystem' to resource group 'General'
Added resource location '../share/OGRE/Media/PBR' of type 'FileSystem' to resource group 'General'
Added resource location '../share/OGRE/Media/PBR/filament' of type 'FileSystem' to resource group 'General'
Added resource location '../share/OGRE/Media/materials/textures/PBR' of type 'FileSystem' to resource group 'General'
Added resource location '../share/OGRE/Media/HLMS' of type 'FileSystem' to resource group 'General'
Added resource location '../share/OGRE/Media/packs/cubemap.zip' of type 'Zip' to resource group 'General'
Added resource location '../share/OGRE/Media/packs/cubemapsJS.zip' of type 'Zip' to resource group 'General'
Added resource location '../share/OGRE/Media/packs/dragon.zip' of type 'Zip' to resource group 'General'
Added resource location '../share/OGRE/Media/packs/fresneldemo.zip' of type 'Zip' to resource group 'General'
Added resource location '../share/OGRE/Media/packs/ogretestmap.zip' of type 'Zip' to resource group 'General'
Added resource location '../share/OGRE/Media/packs/ogredance.zip' of type 'Zip' to resource group 'General'
Added resource location '../share/OGRE/Media/packs/Sinbad.zip' of type 'Zip' to resource group 'General'
Added resource location '../share/OGRE/Media/packs/skybox.zip' of type 'Zip' to resource group 'General'
Added resource location '../share/OGRE/Media/volumeTerrain/volumeTerrainBig.zip' of type 'Zip' to resource group 'General'
Added resource location '../share/OGRE/Media/packs/DamagedHelmet.zip' of type 'Zip' to resource group 'General'
Added resource location '../share/OGRE/Media/packs/filament_shaders.zip' of type 'Zip' to resource group 'General'
Added resource location '../share/OGRE/Media/ShadowVolume' of type 'FileSystem' to resource group 'OgreInternal'
Added resource location '../share/OGRE/Media/RTShaderLib/materials' of type 'FileSystem' to resource group 'OgreInternal'
Added resource location '../share/OGRE/Media/RTShaderLib/GLSL' of type 'FileSystem' to resource group 'OgreInternal'
Added resource location '../share/OGRE/Media/RTShaderLib/HLSL_Cg' of type 'FileSystem' to resource group 'OgreInternal'
Added resource location '../share/OGRE/Media/Terrain/' of type 'FileSystem' to resource group 'OgreInternal'
Creating resource group Tests
Added resource location './Tests/Media' of type 'FileSystem' to resource group 'Tests'
Added resource location '../share/OGRE/Media/materials/programs/GLSL' of type 'FileSystem' to resource group 'General'
Added resource location '../share/OGRE/Media/materials/programs/GLSL120' of type 'FileSystem' to resource group 'General'
Added resource location '../share/OGRE/Media/materials/programs/Cg' of type 'FileSystem' to resource group 'General'
Added resource location '../share/OGRE/Media/materials/programs/HLSL_Cg' of type 'FileSystem' to resource group 'General'
Initialising resource group Essential
Parsing scripts for resource group Essential
Parsing script SdkTrays.material
Parsing script OgreProfiler.material
Parsing script SdkTrays.fontdef
Parsing script SdkTrays.overlay
Texture 'sdk_cursor.png': Loading 1 faces(PF_A8B8G8R8,32x32x1) with 5 hardware generated mipmaps from Image. Internal format is PF_A8B8G8R8,32x32x1.
Texture 'sdk_tray.png': Loading 1 faces(PF_A8B8G8R8,64x64x1) with 6 hardware generated mipmaps from Image. Internal format is PF_A8B8G8R8,64x64x1.
Texture 'sdk_button_up.png': Loading 1 faces(PF_A8B8G8R8,128x32x1) with 7 hardware generated mipmaps from Image. Internal format is PF_A8B8G8R8,128x32x1.
Texture 'sdk_text_box.png': Loading 1 faces(PF_A8B8G8R8,32x32x1) with 5 hardware generated mipmaps from Image. Internal format is PF_A8B8G8R8,32x32x1.
Texture 'sdk_mini_tray.png': Loading 1 faces(PF_A8B8G8R8,32x32x1) with 5 hardware generated mipmaps from Image. Internal format is PF_A8B8G8R8,32x32x1.
Texture 'sdk_track.png': Loading 1 faces(PF_A8B8G8R8,16x32x1) with 5 hardware generated mipmaps from Image. Internal format is PF_A8B8G8R8,16x32x1.
Texture 'sdk_handle.png': Loading 1 faces(PF_A8B8G8R8,16x16x1) with 4 hardware generated mipmaps from Image. Internal format is PF_A8B8G8R8,16x16x1.
Texture 'sdk_mini_text_box.png': Loading 1 faces(PF_A8B8G8R8,32x32x1) with 5 hardware generated mipmaps from Image. Internal format is PF_A8B8G8R8,32x32x1.
Texture 'sdk_label.png': Loading 1 faces(PF_A8B8G8R8,32x32x1) with 5 hardware generated mipmaps from Image. Internal format is PF_A8B8G8R8,32x32x1.
Texture 'sdk_separator.png': Loading 1 faces(PF_A8B8G8R8,64x16x1) with 6 hardware generated mipmaps from Image. Internal format is PF_A8B8G8R8,64x16x1.
Texture 'sdk_logo.png': Loading 1 faces(PF_A8B8G8R8,128x64x1) with 7 hardware generated mipmaps from Image. Internal format is PF_A8B8G8R8,128x64x1.
Texture 'sdk_shade.png': Loading 1 faces(PF_A8B8G8R8,64x48x1) with 6 hardware generated mipmaps from Image. Internal format is PF_A8B8G8R8,64x48x1.
Texture 'sdk_frame.png': Loading 1 faces(PF_A8B8G8R8,32x32x1) with 5 hardware generated mipmaps from Image. Internal format is PF_A8B8G8R8,32x32x1.
Texture 'sdk_mini_text_box_over.png': Loading 1 faces(PF_A8B8G8R8,32x32x1) with 5 hardware generated mipmaps from Image. Internal format is PF_A8B8G8R8,32x32x1.
Texture 'sdk_pulse.png': Loading 1 faces(PF_B8G8R8,8x1x1) with 3 hardware generated mipmaps from Image. Internal format is PF_B8G8R8,8x1x1.
Finished parsing scripts for resource group Essential
Creating resources for group Essential
All done
Texture 'sdk_bands.png': Loading 1 faces(PF_A8B8G8R8,2x32x1) with 5 hardware generated mipmaps from Image. Internal format is PF_A8B8G8R8,2x32x1.
Loading shader cache from '/home/slapin/.cache/OGRE Sample Browser/cache.bin'
Parsing scripts for resource group BSPWorld
Font SdkTrays/Caption using texture size 256x256
Texture 'SdkTrays/CaptionTexture': Loading 1 faces(PF_BYTE_LA,256x256x1) Internal format is PF_BYTE_LA,256x256x1.
Font SdkTrays/Value using texture size 512x256
Texture 'SdkTrays/ValueTexture': Loading 1 faces(PF_BYTE_LA,512x256x1) Internal format is PF_BYTE_LA,512x256x1.
Parsing script scripts/clown.shader
Parsing script scripts/liquid_water.shader
Parsing script scripts/oalite.shader
Parsing script scripts/oanew.shader
Parsing script scripts/oasky.shader
Finished parsing scripts for resource group BSPWorld
Creating resources for group BSPWorld
All done
Parsing scripts for resource group General
Parsing script StdQuad_vp.program
stringSize: 13
stringSize: 13
stringSize: 13
stringSize: 13
stringSize: 13
Parsing script Examples.program
Parsing script Instancing.program
stringSize: 14
stringSize: -1149894655
terminate called after throwing an instance of 'std::length_error'
  what():  basic_string::_M_replace_aux

The stringSize stuff is printed by the following patch:

diff --git a/PlugIns/CgProgramManager/src/OgreCgProgram.cpp b/PlugIns/CgProgramManager/src/OgreCgProgram.cpp
index 23354c008..ac9f30a46 100644
--- a/PlugIns/CgProgramManager/src/OgreCgProgram.cpp
+++ b/PlugIns/CgProgramManager/src/OgreCgProgram.cpp
@@ -31,6 +31,7 @@ THE SOFTWARE.
 #include "OgreStringConverter.h"
 #include "OgreLogManager.h"
 #include <cctype>
+#include <cstdio>

 namespace Ogre {
        //-----------------------------------------------------------------------
@@ -268,6 +269,7 @@ namespace Ogre {
                        cacheMicrocode->read(&stringSize, sizeof(size_t));

                        // get string
+                       printf("stringSize: %d\n", stringSize);
                        paramName.resize(stringSize);
                        cacheMicrocode->read(&paramName[0], stringSize);

The build is static (for dynamic one I got the same error), to compile static build successfully I need to do the following patching:

diff --git a/CMake/Dependencies.cmake b/CMake/Dependencies.cmake
index 959fdf57d..714c17978 100644
--- a/CMake/Dependencies.cmake
+++ b/CMake/Dependencies.cmake
@@ -170,7 +170,8 @@ if(OGRE_BUILD_DEPENDENCIES AND NOT EXISTS ${OGREDEPS_PATH})
             WORKING_DIRECTORY ${PROJECT_BINARY_DIR})
         execute_process(COMMAND ${BUILD_COMMAND_COMMON}
             -DBUILD_SHARED_LIBS=${OGREDEPS_SHARED}
-            -DWITH_PNG=OFF
+            -DFT_WITH_PNG=OFF
+            -DCMAKE_DISABLE_FIND_PACKAGE_PNG=TRUE
             -DCMAKE_DISABLE_FIND_PACKAGE_BZip2=TRUE # tries to use it on iOS otherwise
             # workaround for broken iOS toolchain in freetype
             -DPROJECT_SOURCE_DIR=${PROJECT_BINARY_DIR}/freetype-2.10.1
diff --git a/Components/Bites/CMakeLists.txt b/Components/Bites/CMakeLists.txt
index 5d58a8d74..c693f9f25 100644
--- a/Components/Bites/CMakeLists.txt
+++ b/Components/Bites/CMakeLists.txt
@@ -147,7 +147,8 @@ if(OGRE_STATIC AND APPLE AND OGRE_BUILD_PLUGIN_CG)
 endif()

 if(SDL2_FOUND)
-  target_link_libraries(OgreBites PRIVATE SDL2::SDL2)
+  target_link_libraries(OgreBites PRIVATE ${SDL2_LIBRARIES})
+  target_include_directories(OgreBites PRIVATE ${SDL2_INCLUDE_DIRS})
 elseif(NOT EMSCRIPTEN)
   message(WARNING "SDL2 not found - no input handling and reduced window creation capabilites")
 endif()
diff --git a/Components/Overlay/CMakeLists.txt b/Components/Overlay/CMakeLists.txt
index e33959dd2..610de62fc 100644
--- a/Components/Overlay/CMakeLists.txt
+++ b/Components/Overlay/CMakeLists.txt
@@ -41,7 +41,7 @@ endif()
 # setup target
 add_library(OgreOverlay ${OGRE_COMP_LIB_TYPE} ${HEADER_FILES} ${SOURCE_FILES})
 set_target_properties(OgreOverlay PROPERTIES VERSION ${OGRE_SOVERSION} SOVERSION ${OGRE_SOVERSION})
-target_link_libraries(OgreOverlay PUBLIC OgreMain PRIVATE ${FREETYPE_LIBRARIES} ZLIB::ZLIB)
+target_link_libraries(OgreOverlay PUBLIC OgreMain PRIVATE ${FREETYPE_LIBRARIES} ${ZLIB_LIBRARIES})
 target_include_directories(OgreOverlay PUBLIC
   "$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>"
   $<INSTALL_INTERFACE:include/OGRE/Overlay>
@@ -84,4 +84,4 @@ install(FILES ${HEADER_FILES}
 )
 install(FILES "${PROJECT_SOURCE_DIR}/Media/packs/profiler.zip"
   DESTINATION "${OGRE_MEDIA_PATH}/packs/"
-)
\ No newline at end of file
+)
diff --git a/OgreMain/CMakeLists.txt b/OgreMain/CMakeLists.txt
index 918f102ed..b3a87ad13 100644
--- a/OgreMain/CMakeLists.txt
+++ b/OgreMain/CMakeLists.txt
@@ -168,7 +168,7 @@ if (OGRE_CONFIG_ENABLE_ZIP)
   endif()

   list(APPEND LIBRARIES "${ZZip_LIBRARIES}")
-  list(APPEND LIBRARIES ZLIB::ZLIB)
+  list(APPEND LIBRARIES "${ZLIB_LIBRARIES}")
 endif ()

 if(OGRE_CONFIG_FILESYSTEM_UNICODE)
diff --git a/PlugIns/STBICodec/CMakeLists.txt b/PlugIns/STBICodec/CMakeLists.txt
index 3e1d210ea..9cb01f601 100644
--- a/PlugIns/STBICodec/CMakeLists.txt
+++ b/PlugIns/STBICodec/CMakeLists.txt
@@ -28,7 +28,7 @@ if(CMAKE_COMPILER_IS_GNUCXX)
   target_link_libraries(Codec_STBI PRIVATE gcc)
 endif()
 if(OGRE_CONFIG_ENABLE_ZIP)
-  target_link_libraries(Codec_STBI PRIVATE ZLIB::ZLIB)
+  target_link_libraries(Codec_STBI PRIVATE ${ZLIB_LIBRARIES})
 endif()

 ogre_config_framework(Codec_STBI)
paroj commented 4 years ago

RenderSystem Name: OpenGL Rendering Subsystem

you are using the legacy GL rendersystem.

-  target_link_libraries(OgreBites PRIVATE SDL2::SDL2)
+  target_link_libraries(OgreBites PRIVATE ${SDL2_LIBRARIES})

this is strange as this change was specifically introduced for Debian packaging in #1530

                        cacheMicrocode->read(&stringSize, sizeof(size_t));

                        // get string
+                       printf("stringSize: %d\n", stringSize);
                        paramName.resize(stringSize);

this seems to indicate that the shader cache is corrupted. Try deleting ~/.cache/OGRE Sample Browser/cache.bin.

Alternatively it is also possible to disable the Cg plugin by commenting it out in plugins.cfg:

# Plugin=Plugin_CgProgramManager

another source of string related errors are ABI breaks due to wrong headers being used. Make sure that you do not have libogre-1.12-dev installed (1.12.5 on Debian). When in doubt run locate Ogre.h

slapin commented 4 years ago

I build in Docker container, so I'm pretty sure no dangling stuff is around.

I removed cache and it started working, that is great! Now the question is why it thinks the system is legacy as I have GTX1060 which is Vulkan and OpenGL4.x capable... I'd still go for compatibility grounds but still want to be sure to be able to do some graphically-rich stuff too...

On Wed, Jul 22, 2020 at 8:33 PM Pavel Rojtberg notifications@github.com wrote:

RenderSystem Name: OpenGL Rendering Subsystem

you are using the legacy GL rendersystem.

  • target_link_libraries(OgreBites PRIVATE SDL2::SDL2)
  • target_link_libraries(OgreBites PRIVATE ${SDL2_LIBRARIES})

this is strange as this change was specifically introduced for Debian packaging in #1530 https://github.com/OGRECave/ogre/pull/1530

                    cacheMicrocode->read(&stringSize, sizeof(size_t));

                    // get string
  • printf("stringSize: %d\n", stringSize); paramName.resize(stringSize);

this seems to indicate that the shader cache is corrupted. Try deleting ~/.cache/OGRE Sample Browser/cache.bin.

Alternatively it is also possible to disable the Cg plugin by commenting it out in plugins.cfg:

Plugin=Plugin_CgProgramManager

another source of string related errors are ABI breaks due to wrong headers being used. Make sure that you do not have libogre-1.12-dev installed (1.12.5 on Debian). When in doubt run locate Ogre.h

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/OGRECave/ogre/issues/1634#issuecomment-662587066, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAABPU7OW22PTPPGNURVHZLR44PHXANCNFSM4PEVKBOQ .

paroj commented 4 years ago

Now the question is why it thinks the system is legacy

it picks the first available rendersystem. You can change that if you hit configure in the samplebrowser

slapin commented 4 years ago

BTW, the patching is probably needed because my docker container is ubuntu 16.04 (I use that to avoid compatibility problems).

On Wed, Jul 22, 2020 at 9:47 PM Pavel Rojtberg notifications@github.com wrote:

Now the question is why it thinks the system is legacy

it picks the first available rendersystem. You can change that if you hit configure in the samplebrowser

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.