#8 Crash at startup

v1.2
closed
None
5
2015-04-09
2013-08-10
Artem
No

Openastromenace crashes while loading, see backtrace for more info.
Ubuntu 13.04 x86_64, openastromenace rev.274.
Seems to be a bug in intel drivers but I'm not sure.
Sorry for such a big output.

(gdb) run
Starting program: /home/kroartem/SVN/openastromenace-code/AstroMenace
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
AstroMenace 1.3.2 130712

Open XML file: /home/kroartem/.config/astromenace/amconfig.xml
VFS file was opened /home/kroartem/SVN/openastromenace-code/gamedata.vfs

Font initialized: DATA/FONT/LinBiolinumBold.ttf

[New Thread 0x7ffff0cd1700 (LWP 27768)]
[Thread 0x7ffff0cd1700 (LWP 27768) exited]
[New Thread 0x7ffff0cd1700 (LWP 27769)]
[New Thread 0x7fffe7fff700 (LWP 27770)]
Vendor : OpenAL Community
Renderer : OpenAL Soft
Version : 1.1 ALSOFT 1.14
ALut ver : 1.1

Current Video Mode: 1366x768 32bit

Xinerama/TwinView detected.
Screen count: 1
Screen #0: (0, 0) x (1366, 768)

Supported resolutions list:
640x480 16bit
640x480 32bit
640x480 0bit
768x480 16bit
768x480 32bit
768x480 0bit
800x480 16bit
800x480 32bit
800x480 0bit
800x600 16bit
800x600 32bit
800x600 0bit
832x624 16bit
832x624 32bit
832x624 0bit
854x480 16bit
854x480 32bit
854x480 0bit
960x540 16bit
960x540 32bit
960x540 0bit
960x544 16bit
960x544 32bit
960x544 0bit
960x640 16bit
960x640 32bit
960x640 0bit
960x720 16bit
960x720 32bit
960x720 0bit
1024x576 16bit
1024x576 32bit
1024x576 0bit
1024x600 16bit
1024x600 32bit
1024x600 0bit
1024x640 16bit
1024x640 32bit
1024x640 0bit
1024x768 16bit
1024x768 32bit
1024x768 0bit
1152x720 16bit
1152x720 32bit
1152x720 0bit
1152x768 16bit
1152x768 32bit
1152x768 0bit
1280x720 16bit
1280x720 32bit
1280x720 0bit
1280x768 16bit
1280x768 32bit
1280x768 0bit
1366x768 16bit
1366x768 32bit
1366x768 0bit

VFS link created: DATA/DATA_RU/GAME/mission.tga > DATA/GAME/mission.tga
VFS link created: DATA/DATA_RU/GAME/missionfailed.tga > DATA/GAME/missionfailed.tga
VFS link created: DATA/DATA_RU/GAME/pause.tga > DATA/GAME/pause.tga
VFS link created: DATA/DATA_RU/MENU/button_weaponry_in.tga > DATA/MENU/button_weaponry_in.tga
VFS link created: DATA/DATA_RU/MENU/button_weaponry_out.tga > DATA/MENU/button_weaponry_out.tga

VFS link created: DATA/DATA_RU/VOICE/Attention.wav > DATA/VOICE/Attention.wav
VFS link created: DATA/DATA_RU/VOICE/CeaseFire.wav > DATA/VOICE/CeaseFire.wav
VFS link created: DATA/DATA_RU/VOICE/EngineMalfunction.wav > DATA/VOICE/EngineMalfunction.wav
VFS link created: DATA/DATA_RU/VOICE/MissileDetected.wav > DATA/VOICE/MissileDetected.wav
VFS link created: DATA/DATA_RU/VOICE/PowerSupplyReestablished.wav > DATA/VOICE/PowerSupplyReestablished.wav
VFS link created: DATA/DATA_RU/VOICE/PrepareForAction.wav > DATA/VOICE/PrepareForAction.wav
VFS link created: DATA/DATA_RU/VOICE/ReactorMalfunction.wav > DATA/VOICE/ReactorMalfunction.wav
VFS link created: DATA/DATA_RU/VOICE/Warning.wav > DATA/VOICE/Warning.wav
VFS link created: DATA/DATA_RU/VOICE/WeaponDamaged.wav > DATA/VOICE/WeaponDamaged.wav
VFS link created: DATA/DATA_RU/VOICE/WeaponDestroyed.wav > DATA/VOICE/WeaponDestroyed.wav
VFS link created: DATA/DATA_RU/VOICE/WeaponMalfunction.wav > DATA/VOICE/WeaponMalfunction.wav

SDL version: 1.2.15
Set video mode: 800 x 600 x 32

Vendor : Intel Open Source Technology Center
Renderer : Mesa DRI Intel(R) Sandybridge Mobile
Version : 3.0 Mesa 9.1.1
OpenGL Version : 3.0

Max texture height: 8192
Max texture width: 8192
Max lights: 8
Max multitexture supported: 8 textures.
Max anisotropy: 16
Vertex Buffer support enabled.
Vertex Array support enabled.
Textures S3TC compression support enabled.
Occlusion Query support enabled.
Frame Buffer Object support enabled.
Texture Storage support enabled.
Shader Model: 2.0
Max Samples: 4

Frame Buffer Object creation start with parameters 800 600 1 1 0 0
Frame Buffer Object created. Depth Size: 24
Frame Buffer Object creation start with parameters 800 600 1 0 0 0
Frame Buffer Object created. Depth Size: 0
Font characters generation start.
Ok ... abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789.,!?-+():;%&`'*#$=[]@^{}_~><–—«»“”|абвгдеёжзийклмнопрстуфхцчшщъыьэюяАБВГДЕЁЖЗИЙКЛМНОПРСТУФХЧЦШЩЪЫЬЭЮЯ©®ÄÖÜäöüß°§/
Font characters generation end.

Ok ... DATA/LOADING/viewizardlogo.tga
Ok ... DATA/LOADING/loading_line.tga
Ok ... DATA/LOADING/loading_back.tga
Ok ... DATA/LOADING/loading04.tga
Ok ... DATA/MENU/astromenace.tga
Ok ... DATA/MENU/button384_back.tga
Ok ... DATA/MENU/button384_in.tga
Ok ... DATA/MENU/button384_out.tga
Ok ... DATA/MENU/button256_back.tga
Ok ... DATA/MENU/button256_in.tga
Ok ... DATA/MENU/button256_out.tga
Ok ... DATA/MENU/button256_off.tga
Ok ... DATA/MENU/blackpoint.tga
Ok ... DATA/MENU/whitepoint.tga
Ok ... DATA/MENU/line.tga
Ok ... DATA/MENU/perc.tga
Ok ... DATA/MENU/perc_none.tga
Ok ... DATA/MENU/checkbox_main.tga
Ok ... DATA/MENU/checkbox_in.tga
Ok ... DATA/CREDITS/sdl.tga
Ok ... DATA/CREDITS/svn.tga
Ok ... DATA/CREDITS/opengl.tga
Ok ... DATA/CREDITS/openal.tga
Ok ... DATA/CREDITS/codeblocks.tga
Ok ... DATA/CREDITS/gnugcc.tga
Ok ... DATA/CREDITS/gentoo.tga
Ok ... DATA/CREDITS/freetype.tga
Ok ... DATA/CREDITS/oggvorbis.tga
Ok ... DATA/CREDITS/gimp.tga
Ok ... DATA/MENU/workshop_panel1.tga
Ok ... DATA/MENU/workshop_panel1+.tga
Ok ... DATA/MENU/workshop_panel2.tga
Ok ... DATA/MENU/workshop_panel2+.tga
Ok ... DATA/MENU/workshop_panel3.tga
Ok ... DATA/MENU/workshop_panel4.tga
Ok ... DATA/MENU/workshop_panel5.tga
Ok ... DATA/MENU/ammo.tga
Ok ... DATA/MENU/button_weaponry_out.tga
Ok ... DATA/MENU/button_weaponry_in.tga
Ok ... DATA/MENU/back_spot.tga
Ok ... DATA/MENU/back_spot2.tga
Ok ... DATA/MENU/dialog512_256.tga
Ok ... DATA/MENU/dialog512_512.tga
Ok ... DATA/MENU/dialog768_600.tga
Ok ... DATA/MENU/panel444_333_back.tga
Ok ... DATA/MENU/panel444_333_border.tga
Ok ... DATA/MENU/panel800_444_back.tga
Ok ... DATA/MENU/button_dialog200_out.tga
Ok ... DATA/MENU/button_dialog200_in.tga
Ok ... DATA/MENU/button_dialog200_off.tga
Ok ... DATA/MENU/button_dialog128_out.tga
Ok ... DATA/MENU/button_dialog128_in.tga
Ok ... DATA/MENU/button_dialog128_off.tga
Ok ... DATA/MENU/arrows_blue.tga
Ok ... DATA/MENU/arrow_list_up.tga
Ok ... DATA/MENU/arrow_list_down.tga
Ok ... DATA/SCRIPT/mission1_icon.tga
Ok ... DATA/SCRIPT/mission2_icon.tga
Ok ... DATA/SCRIPT/mission3_icon.tga
Ok ... DATA/SCRIPT/mission4_icon.tga
Ok ... DATA/SCRIPT/mission5_icon.tga
Ok ... DATA/SCRIPT/mission6_icon.tga
Ok ... DATA/SCRIPT/mission7_icon.tga
Ok ... DATA/SCRIPT/mission8_icon.tga
Ok ... DATA/SCRIPT/mission9_icon.tga
Ok ... DATA/SCRIPT/mission10_icon.tga
Ok ... DATA/SCRIPT/mission11_icon.tga
Ok ... DATA/SCRIPT/mission12_icon.tga
Ok ... DATA/SCRIPT/mission13_icon.tga
Ok ... DATA/SCRIPT/mission14_icon.tga
Ok ... DATA/SCRIPT/mission15_icon.tga
Ok ... DATA/MENU/system_engine1.tga
Ok ... DATA/MENU/system_engine2.tga
Ok ... DATA/MENU/system_engine3.tga
Ok ... DATA/MENU/system_engine4.tga
Ok ... DATA/MENU/system_mechan1.tga
Ok ... DATA/MENU/system_mechan2.tga
Ok ... DATA/MENU/system_mechan3.tga
Ok ... DATA/MENU/system_mechan4.tga
Ok ... DATA/MENU/system_power1.tga
Ok ... DATA/MENU/system_power2.tga
Ok ... DATA/MENU/system_power3.tga
Ok ... DATA/MENU/system_power4.tga
Ok ... DATA/MENU/system_protect1.tga
Ok ... DATA/MENU/system_protect2.tga
Ok ... DATA/MENU/system_protect3.tga
Ok ... DATA/MENU/system_protect4.tga
Ok ... DATA/MENU/system_target1.tga
Ok ... DATA/MENU/system_target2.tga
Ok ... DATA/MENU/system_target3.tga
Ok ... DATA/MENU/system_target4.tga
Ok ... DATA/MENU/system_empty.tga
Ok ... DATA/MENU/weapon1_icon.tga
Ok ... DATA/MENU/weapon2_icon.tga
Ok ... DATA/MENU/weapon3_icon.tga
Ok ... DATA/MENU/weapon4_icon.tga
Ok ... DATA/MENU/weapon5_icon.tga
Ok ... DATA/MENU/weapon6_icon.tga
Ok ... DATA/MENU/weapon7_icon.tga
Ok ... DATA/MENU/weapon8_icon.tga
Ok ... DATA/MENU/weapon9_icon.tga
Ok ... DATA/MENU/weapon10_icon.tga
Ok ... DATA/MENU/weapon11_icon.tga
Ok ... DATA/MENU/weapon12_icon.tga
Ok ... DATA/MENU/weapon13_icon.tga
Ok ... DATA/MENU/weapon14_icon.tga
Ok ... DATA/MENU/weapon15_icon.tga
Ok ... DATA/MENU/weapon16_icon.tga
Ok ... DATA/MENU/weapon17_icon.tga
Ok ... DATA/MENU/weapon18_icon.tga
Ok ... DATA/MENU/weapon19_icon.tga
Ok ... DATA/MENU/weapon_on_icon.tga
Ok ... DATA/MENU/weapon_empty_icon.tga
Ok ... DATA/MENU/cursor.tga
Ok ... DATA/MENU/cursor_shadow.tga

Program received signal SIGSEGV, Segmentation fault.
0x00007fffe713b767 in ?? () from /usr/lib/x86_64-linux-gnu/dri/i965_dri.so
(gdb) bt

0 0x00007fffe713b767 in ?? () from /usr/lib/x86_64-linux-gnu/dri/i965_dri.so

1 0x00007fffe713ffeb in ?? () from /usr/lib/x86_64-linux-gnu/dri/i965_dri.so

2 0x00007fffe6c89906 in ?? ()

from /usr/lib/x86_64-linux-gnu/libdricore9.1.1.so.1

3 0x00007fffe7141bf9 in ?? () from /usr/lib/x86_64-linux-gnu/dri/i965_dri.so

4 0x00007fffe6c398d6 in _mesa_generate_mipmap ()

from /usr/lib/x86_64-linux-gnu/libdricore9.1.1.so.1

5 0x00007fffe6d37bf7 in _mesa_meta_GenerateMipmap ()

from /usr/lib/x86_64-linux-gnu/libdricore9.1.1.so.1

6 0x00007fffe6c0d2a6 in _mesa_GenerateMipmap ()

from /usr/lib/x86_64-linux-gnu/libdricore9.1.1.so.1

7 0x00000000004adad8 in vw_BuildTexture (

ustDIB=0xf48e00 "\n\005\t\a\002\006\f\a\v\n\005\t\t\004\b\f\a\v\n\005\t\r\b\f\v\006\n\016\t\r\f\a\v\016\t\r\r\b\f\016\t\r\v\006\n\016\t\r\016\t\017\n\005\v\016\t\017\017\n\020\b\006\v\n\b\r\v\t\016\f\n\017\n\b\r\016\f\021\022\020\023\022\020\023\016\f\017\021\017\022\026\024\027\016\f\017\022\016\017\023\017\020\034\030\031\033\027\030\027\023\024\026\022\023\025\021\022\030\024\025\027\023\024\030\024\025\017\r\020\017\r\020\025\024\031\r\f\021\022\023\030\020\021\025\027\033\034\021\025\024\017\021\020\025\027\026\024\026\025\030\032\031\034\034\034$$$\030\030\026\021\021\017\026\030\027\022\024\023\025\031\032\f\020\021\027\032\037\025\030\035\031\032\037\023\024\031\024\025"..., Width=512, Height=512, 
MipMap=<optimized out>, Bytes=<optimized out>, 
CompressionType=<optimized out>, CompressionType@entry=1)

---Type <return> to continue, or q <return> to quit---
at /home/kroartem/SVN/openastromenace-code/AstroMenaceSource/Core/RendererInterface/OGL_Texture.cpp:109

8 0x000000000049e2ff in vw_CreateTextureFromMemory (NeedResizeH=0,

NeedResizeW=0, CompressionType=1, DChanels=3, DHeight=512, DWidth=512, 
DIB=0x1029c60 "\n\005\t\a\002\006\f\a\v\n\005\t\t\004\b\f\a\v\n\005\t\r\b\f\v\006\n\016\t\r\f\a\v\016\t\r\r\b\f\016\t\r\v\006\n\016\t\r\016\t\017\n\005\v\016\t\017\017\n\020\b\006\v\n\b\r\v\t\016\f\n\017\n\b\r\016\f\021\022\020\023\022\020\023\016\f\017\021\017\022\026\024\027\016\f\017\022\016\017\023\017\020\034\030\031\033\027\030\027\023\024\026\022\023\025\021\022\030\024\025\027\023\024\030\024\025\017\r\020\017\r\020\025\024\031\r\f\021\022\023\030\020\021\025\027\033\034\021\025\024\017\021\020\025\027\026\024\026\025\030\032\031\034\034\034$$$\030\030\026\021\021\017\026\030\027\022\024\023\025\031\032\f\020\021\027\032\037\025\030\035\031\032\037\023\024\031\024\025"..., 
TextureName=0x752e5c <MenuLoadList+117660> "DATA/MODELS/EARTHFIGHTER/sf-text00.VW2D", NeedDuplicateCheck=<optimized out>)
at /home/kroartem/SVN/openastromenace-code/AstroMenaceSource/Core/Texture/Texture.cpp:713

9 vw_CreateTextureFromMemory (TextureName=<optimized out="">,

DIB=0x1029c60 "\n\005\t\a\002\006\f\a\v\n\005\t\t\004\b\f\a\v\n\005\t\r\b\f\v\006\n\016\t\r\f\a\v\016\t\r\r\b\f\016\t\r\v\006\n\016\t\r\016\t\017\n\005\v\016\t\017\017\n\020\b\006\v\n\b\r\v\t\016\f\n\017\n\b\r\016\f\021\022\020\023\022\020\023\016\f\017\021\017\022\026\024\027\016\f\017\022\016\017\023\017\020\034\030\031\033\027\030\027\023\024\026\022\023\025\021\022\030\024\025\027\023\024\---Type <return> to continue, or q <return> to quit---

030\024\025\017\r\020\017\r\020\025\024\031\r\f\021\022\023\030\020\021\025\027\033\034\021\025\024\017\021\020\025\027\026\024\026\025\030\032\031\034\034\034$$$\030\030\026\021\021\017\026\030\027\022\024\023\025\031\032\f\020\021\027\032\037\025\030\035\031\032\037\023\024\031\024\025"..., DWidth=512, DHeight=512,
DChanels=3, CompressionType=1, NeedResizeW=0, NeedResizeH=0,
NeedDuplicateCheck=true)
at /home/kroartem/SVN/openastromenace-code/AstroMenaceSource/Core/Texture/Texture.cpp:620

10 0x000000000049e5be in vw_LoadTexture (

nName=0x752e5c <MenuLoadList+117660> "DATA/MODELS/EARTHFIGHTER/sf-text00.VW2D", RememberAsName=0x0, CompressionType=1, LoadAs=<optimized out>, 
NeedResizeW=0, NeedResizeH=0)
at /home/kroartem/SVN/openastromenace-code/AstroMenaceSource/Core/Texture/Texture.cpp:599

11 0x000000000049ac86 in LoadGameData (LoadType=LoadType@entry=-1)

at /home/kroartem/SVN/openastromenace-code/AstroMenaceSource/Loading.cpp:1634

12 0x000000000041c691 in main (argc=0, argv=<optimized out="">)

at /home/kroartem/SVN/openastromenace-code/AstroMenaceSource/Main.cpp:1247

(gdb)

Discussion

  • viewizard

    viewizard - 2013-08-10

    Yep, I know about this issue from Debian mail list: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=718680

    The point is same - issue in mesa i965 drivers. Here is my answer from Debian list:

    Looks like Mesa i965 drivers claim GL_ARB_texture_storage OpenGL
    extension support (what???), but not really work well with texture
    storage feature.

    Just found, that mesa-dev have a thread about this issue:
    http://lists.freedesktop.org/archives/mesa-dev/2013-June/041188.html
    they did enabled GL_ARB_texture_storage for all drivers, i.e. 915 and
    965 too. :(

    Best regards,
    Michael

     
  • Artem

    Artem - 2013-08-10

    So, what can we do to avoid/fix this problem?

     
  • viewizard

    viewizard - 2013-08-11

    All is ok with game sources, and I definitely will not provide any changes in the game upstream sources to "fix" this issue for one corrupted driver. As you could see here:
    http://lists.freedesktop.org/archives/mesa-dev/2013-June/041168.html
    Mesa drivers need 21 patches for i915 and i965 drivers, provided by Intel developer (and 4 of them - 12, 17, 18, and 21 - really important), this is not only GL_ARB_texture_storage issue, but much more.

    Imho, you have several options here:
    1) use some previous mesa i965 drivers.
    2) use custom i965 driver with necessary patches.
    3) use custom game version without texture storage feature, for example, you can comment this line
    https://sourceforge.net/p/openastromenace/code/274/tree/AstroMenaceSource/Core/RendererInterface/OGL_Main.cpp#l359
    and rebuild the game. But you will may face another drivers issue in future...

     
  • Artem

    Artem - 2013-08-11

    Ok, I see your point of view. I won't choose any of these options and will wait for these patches to be included into mesa's master branch.

    However, I don't know whether to close this ticket or not, so I'll leave decision for you. ;)

     
  • Rémi Verschelde

    This bug is still valid with Xorg's intel driver (x11-driver-video-intel 2.99.911 on Mageia Cauldron).

    I confirm that using my Nvidia GPU lets me start the game properly, but it crashes with the Intel HD Graphics 4000 chipset.

     
  • viewizard

    viewizard - 2015-04-09
    • status: open --> closed
     
  • viewizard

    viewizard - 2015-04-09

    Fixed in r290 commit.

     

Log in to post a comment.