Author Topic: Problem with intel GMA in linux with romans( and some mods in current svn )  (Read 1824 times)

titi

  • MegaGlest Team
  • Airship
  • ********
  • Posts: 4,240
    • View Profile
    • http://www.titusgames.de
Code: [Select]
[13:13] <debill> laptop% mk/linux/glest.bin --ini-path=mk/linux/ --data-path=mk/linux/
[13:13] <debill> v3.4.1-dev-GNUC: 40405-Mar 30 2011 15:04:04, SVN: [Rev: 1955M], [STREFLOP]
[13:13] <debill> Mesa warning: couldn't open libtxc_dxtn.so, software DXTn compression/decompression unavailable
[13:13] <debill> glest.bin: brw_wm_surface_state.c:538: brw_update_renderbuffer_surface: Assertion `brw->has_surface_tile_offset || (tile_x == 0 && tile_y == 0)' failed.
[13:13] <debill> [1]    6253 abort      mk/linux/glest.bin --ini-path=mk/linux/ --data-path=mk/linux/
[13:14] <debill> its happened when im trying to launch battle with romans or with scenario Mission: Break Out
[13:15] <debill> on laptop. But on other host everything goes fine
[13:27] <debill> and when im trying to change tech (to Vbros pack 4) in "Custom game" page
[14:23] <titi_at_work> debill thats (somehow) interisting ...
[14:23] <titi_at_work> which linux?
[14:25] <titi_at_work> Now I know ( google is my friend )
[14:25] <titi_at_work> your card does not support s3tc completly
[14:25] <titi_at_work> it is based on the mesa implementation maybe.
[14:26] <titi_at_work> ( s3tc is texture compression ) which is used by MG
[14:26] <titi_at_work> So which graphics hardware / driver are you using?
[14:27] <titi_at_work> its also maybe related to the content which is used in the vbros packs!
[14:28] <titi_at_work> while loading the textures MG prepares them on the fly into a compressed texture format.  Which format is decided by the driver
[14:28] <titi_at_work> I mean which format is used is decided by the graphics driver.
[14:28] <KroArtem> s3tc can be compiled as a library and added as a plugin to mesa (err, may be not as a plugin, but it's support can be added manually)
[14:29] <titi_at_work> In your case it looks like s3tc is used, but your driver does not fully support it....
[14:29] <titi_at_work> yes so I think this library is maybe missing ( as he said! )
[14:29] <titi_at_work> Mesa warning: couldn't open libtxc_dxtn.so
[14:30] <titi_at_work> KroArtem does this mesa lib has full s3tc support?
[14:30] <titi_at_work> http://dri.freedesktop.org/wiki/S3TC
[14:31] <titi_at_work> here for example is stated its only partly implemented yet because of ... patents
[14:32] <debill> i can use romans on 3,4,0 version
[14:32] <debill> in dev no
[14:32] <debill> card is GMA
[14:33] <KroArtem> well, I'm not a pro in such things, however I didn't manage to add s3tc support to mesa drivers 1-2 months ago
[14:33] <titi_at_work> To sum it up: the mods must somehow use a graphics format which is supported by MG in general, but not supported by the driver ( which does the compression/conversion )
[14:33] <titi_at_work> I will talk to softcoder if some kind of texture replacement has been taken place in romans
[14:34] <titi_at_work> maybe there is used a format now which was not used before
[14:34] <titi_at_work> this would explain the problem
[14:37] <titi_at_work> debill which linux distri is it?
[14:37] <debill> ubuntu10.10
« Last Edit: 30 March 2011, 12:52:47 by titi »
Try Megaglest! Improved Engine / New factions / New tilesets / New maps / New scenarios

tomreyn

  • MegaGlest Team
  • Airship
  • ********
  • Posts: 2,764
    • View Profile
    • MegaGlest - the free and open source cross platform 3D real-time strategy game
This is probably not too helpful but maybe it provides some hint on where to continue searching...

I also have an Intel GMA GPU...

Quote from: lspci -knn
00:02.0 VGA compatible controller [0300]: Intel Corporation Mobile 4 Series Chipset Integrated Graphics Controller [8086:2a42] (rev 07)
   Subsystem: ASUSTeK Computer Inc. Device [1043:1862]
   Kernel driver in use: i915
   Kernel modules: i915

and am on Ubuntu 10.10 (AMD64).

Both this scenario (which, by the way, should be called "BrEak out") and the Romans faction work for me. In case it matters I have
Quote from: glestuser.ini
EnableTextureCompression=false
in ~/.megaglest/glestuser.ini
« Last Edit: 4 April 2011, 13:16:22 by tomreyn »
atibox: Ryzen 1800X (8 cores @3.6GHz), 32 GB RAM, MSI Radeon RX 580 Gaming X 8G, PCI subsystem ID [1462:3417], (Radeon RX 580 chipset, POLARIS10) @3440x1440; latest stable Ubuntu release, (open source) radeon (amdgpu) / mesa video driver
atibox (old): Core2Quad Q9400 (4 cores @2.66GHz), 8 GB RAM, XFX HD-467X-DDF2, PCI subsystem ID [1682:2931], (Radeon HD 4670, RV730 XT) @1680x1050; latest stable Ubuntu release, (open source) radeon / mesa video driver
notebook: HP envy13d020ng
internet access: VDSL2+

· · · How YOU can contribute to MG · Latest development snapshot · How to build yourself · Megapack techtree · Currently hosted MG games · · ·

tomreyn

  • MegaGlest Team
  • Airship
  • ********
  • Posts: 2,764
    • View Profile
    • MegaGlest - the free and open source cross platform 3D real-time strategy game
I just retried with
Quote
EnableTextureCompression=true

and I run into issues, too. While loading the "brake out" scenario data (displaying the progress bar), the game just frezes and outputs:
Quote
v3.4.1-dev-GNUC: 40405 [64bit]-Mar 30 2011 16:41:25, SVN: [Rev: 611:1955M], [STREFLOP]
In [/home/user1/SCM/megaglest-trunk/source/glest_game/main/main.cpp::handleSIGSEGV Line: 537] Error detected: signal 11:
[2011-03-30 20:41:34] *ERROR* In [/home/user1/SCM/megaglest-trunk/source/glest_game/main/main.cpp::handleRuntimeError Line: 322] [In [/home/user1/SCM/megaglest-trunk/source/glest_game/main/main.cpp::handleSIGSEGV Line: 537] Error detected: signal 11:
] gameInitialized = 1, program = 0x28517f0
[2011-03-30 20:41:35] *ERROR* In [/home/user1/SCM/megaglest-trunk/source/glest_game/main/main.cpp::handleRuntimeError Line: 413] [In [/home/user1/SCM/megaglest-trunk/source/glest_game/main/main.cpp::handleSIGSEGV Line: 537] Error detected: signal 11:

Stack Trace:
./glest.bin:Glest::Game::handleSIGSEGV(int) address [0x552912] line: 541
/lib/libc.so.6:() address [0x7f8061d19c20] line: 0
/usr/lib/dri/i965_dri.so:() address [0x7f805a78af56] line: 0
/usr/lib/dri/i965_dri.so:() address [0x7f805a78c3d8] line: 0
/usr/lib/dri/i965_dri.so:() address [0x7f805a790d04] line: 0
/usr/lib/dri/i965_dri.so:() address [0x7f805a6e9723] line: 0
/usr/lib/dri/i965_dri.so:() address [0x7f805a7af4ce] line: 0
./glest.bin:Shared::Graphics::Gl::Texture2DGl::init(Shared::Graphics::Texture::Filter, int) address [0x736cc1] line: 819
./glest.bin:Shared::Graphics::Mesh::loadMeshTexture(int, int, Shared::Graphics::TextureManager*, std::string, int, bool&, bool, std::map<std::string, int, std::less<std::string>, std::allocator<std::pair<std::string const, int> > >*) address [0x72843f] line: 423
./glest.bin:Shared::Graphics::Mesh::load(int, std::string const&, _IO_FILE*, Shared::Graphics::TextureManager*, bool, std::map<std::string, int, std::less<std::string>, std::allocator<std::pair<std::string const, int> > >*) address [0x728f2a] line: 489
./glest.bin:Shared::Graphics::Model::loadG3d(std::string const&, bool, std::map<std::string, int, std::less<std::string>, std::allocator<std::pair<std::string const, int> > >*) address [0x72b040] line: 116
./glest.bin:Shared::Graphics::Model::load(std::string const&, bool, std::map<std::string, int, std::less<std::string>, std::allocator<std::pair<std::string const, int> > >*) address [0x72b528] line: 511
./glest.bin:Glest::Game::SkillType::load(Shared::Xml::XmlNode const*, std::string const&, Glest::Game::TechTree const*, Glest::Game::FactionType const*, std::map<std::string, int, std::less<std::string>, std::allocator<std::pair<std::string const, int> > >&) address [0x6ba4a6] line: 69
./glest.bin:Glest::Game::UnitType::load(int, std::string const&, Glest::Game::TechTree const*, Glest::Game::FactionType const*, Shared::Util::Checksum*, Shared::Util::Checksum*, std::map<std::string, int, std::less<std::string>, std::allocator<std::pair<std::string const, int> > >&) address [0x6cb8d5]
]
[2011-03-30 20:41:35] *ERROR* In [/home/user1/SCM/megaglest-trunk/source/shared_lib/sources/graphics/model.cpp::loadG3d Line: 874] Error [OpenGL error: invalid value at file: /home/user1/SCM/megaglest-trunk/source/glest_game/graphics/renderer.cpp, line 428]
[2011-03-30 20:41:35] *ERROR* In [/home/user1/SCM/megaglest-trunk/source/glest_game/types/unit_type.cpp::load Line: 478] Error [Exception caught loading 3d file: /home/user1/.megaglest/scenarios/mission:_brake_out/data/factions/computer/units/building/models/mill_camp_idle.g3d
OpenGL error: invalid value at file: /home/user1/SCM/megaglest-trunk/source/glest_game/graphics/renderer.cpp, line 428]
[2011-03-30 20:41:35] *ERROR* In [/home/user1/SCM/megaglest-trunk/source/glest_game/types/faction_type.cpp::load Line: 96] Error [Error loading UnitType: /home/user1/.megaglest/scenarios/mission:_brake_out/data/factions/computer/units/building/building.xml
Exception caught loading 3d file: /home/user1/.megaglest/scenarios/mission:_brake_out/data/factions/computer/units/building/models/mill_camp_idle.g3d
OpenGL error: invalid value at file: /home/user1/SCM/megaglest-trunk/source/glest_game/graphics/renderer.cpp, line 428]
[2011-03-30 20:41:35] *ERROR* In [/home/user1/SCM/megaglest-trunk/source/glest_^C

I tried to cancel there, but without luck, needed to kill -9. So EnableTextureCompression should be set to false, which appears to be the default in current development revisions.
atibox: Ryzen 1800X (8 cores @3.6GHz), 32 GB RAM, MSI Radeon RX 580 Gaming X 8G, PCI subsystem ID [1462:3417], (Radeon RX 580 chipset, POLARIS10) @3440x1440; latest stable Ubuntu release, (open source) radeon (amdgpu) / mesa video driver
atibox (old): Core2Quad Q9400 (4 cores @2.66GHz), 8 GB RAM, XFX HD-467X-DDF2, PCI subsystem ID [1682:2931], (Radeon HD 4670, RV730 XT) @1680x1050; latest stable Ubuntu release, (open source) radeon / mesa video driver
notebook: HP envy13d020ng
internet access: VDSL2+

· · · How YOU can contribute to MG · Latest development snapshot · How to build yourself · Megapack techtree · Currently hosted MG games · · ·

softcoder

  • MegaGlest Team
  • Battle Machine
  • ********
  • Posts: 2,239
    • View Profile
Added some code in svn to try to revert back to uncompressed if compressed fails, please try and let me know if this solves the problem?

This seems to be a driver bug in that we only use a compression type that the driver indicates is supported in the first place.

Thanks

tomreyn

  • MegaGlest Team
  • Airship
  • ********
  • Posts: 2,764
    • View Profile
    • MegaGlest - the free and open source cross platform 3D real-time strategy game
No change yet.

Here's a backtrace of this issue:

Quote
0x00007f37a87ab6b4 in __lll_lock_wait () from /lib/libpthread.so.0
#0  0x00007f37a87ab6b4 in __lll_lock_wait () from /lib/libpthread.so.0
#1  0x00007f37a87a6849 in _L_lock_953 () from /lib/libpthread.so.0
#2  0x00007f37a87a666b in pthread_mutex_lock () from /lib/libpthread.so.0
#3  0x00007f379d21f230 in _mesa_lock_context_textures (ctx=0x1684360) at main/texobj.c:1218
#4  0x00007f379d20e8d9 in _mesa_update_state (ctx=0x1676150) at main/state.c:675
#5  0x00007f379d1abd78 in _mesa_Clear (mask=16640) at main/clear.c:129
#6  0x00000000004cc567 in Glest::Game::Logger::renderLoadingScreen (this=0xaaa9a0) at /home/user1/SCM/megaglest-trunk/source/glest_game/facilities/logger.cpp:113
#7  0x00000000004e9fa9 in Glest::Game::Game::~Game (this=0x7f37940110c0, __in_chrg=<value optimized out>) at /home/user1/SCM/megaglest-trunk/source/glest_game/game/game.cpp:123
#8  0x000000000055aa8e in Glest::Game::Program::setState (this=0x16517f0, programState=0x7f37949058d0, cleanupOldState=true) at /home/user1/SCM/megaglest-trunk/source/glest_game/main/program.cpp:379
#9  0x000000000055af5e in Glest::Game::Program::setState (this=0x16517f0, programState=<value optimized out>, cleanupOldState=24) at /home/user1/SCM/megaglest-trunk/source/glest_game/main/program.cpp:431
#10 0x0000000000574308 in Glest::Game::MenuStateScenario::launchGame (this=0x7f37940365d0) at /home/user1/SCM/megaglest-trunk/source/glest_game/menu/menu_state_scenario.cpp:200
#11 0x0000000000576577 in Glest::Game::MenuStateScenario::mouseClick (this=0x7f37940365d0, x=578, y=213, mouseButton=<value optimized out>) at /home/user1/SCM/megaglest-trunk/source/glest_game/menu/menu_state_scenario.cpp:124
#12 0x0000000000548785 in Glest::Game::MainWindow::eventMouseDown (this=0x1651930, x=<value optimized out>, y=<value optimized out>, mouseButton=Shared::Platform::mbLeft) at /home/user1/SCM/megaglest-trunk/source/glest_game/main/main.cpp:591
#13 0x0000000000771d68 in Shared::Platform::Window::handleMouseDown (this=0x1651930, event=...) at /home/user1/SCM/megaglest-trunk/source/shared_lib/sources/platform/sdl/window.cpp:529
#14 0x00000000007722c2 in Shared::Platform::Window::handleEvent () at /home/user1/SCM/megaglest-trunk/source/shared_lib/sources/platform/sdl/window.cpp:128
#15 0x000000000055501a in Glest::Game::glestMain (argc=<value optimized out>, argv=<value optimized out>) at /home/user1/SCM/megaglest-trunk/source/glest_game/main/main.cpp:2193
#16 0x000000000055663e in Glest::Game::glestMainWrapper (argc=1, argv=0x7fff0f5feb48) at /home/user1/SCM/megaglest-trunk/source/glest_game/main/main.cpp:2268
#17 0x00007f37a4773d8e in __libc_start_main () from /lib/libc.so.6
#18 0x000000000048c779 in _start ()
atibox: Ryzen 1800X (8 cores @3.6GHz), 32 GB RAM, MSI Radeon RX 580 Gaming X 8G, PCI subsystem ID [1462:3417], (Radeon RX 580 chipset, POLARIS10) @3440x1440; latest stable Ubuntu release, (open source) radeon (amdgpu) / mesa video driver
atibox (old): Core2Quad Q9400 (4 cores @2.66GHz), 8 GB RAM, XFX HD-467X-DDF2, PCI subsystem ID [1682:2931], (Radeon HD 4670, RV730 XT) @1680x1050; latest stable Ubuntu release, (open source) radeon / mesa video driver
notebook: HP envy13d020ng
internet access: VDSL2+

· · · How YOU can contribute to MG · Latest development snapshot · How to build yourself · Megapack techtree · Currently hosted MG games · · ·

titi

  • MegaGlest Team
  • Airship
  • ********
  • Posts: 4,240
    • View Profile
    • http://www.titusgames.de
for all who might run into this trouble, we have an ingame option now where you can switch on and off texture compression.
Try Megaglest! Improved Engine / New factions / New tilesets / New maps / New scenarios

titi

  • MegaGlest Team
  • Airship
  • ********
  • Posts: 4,240
    • View Profile
    • http://www.titusgames.de
just a vague idea of what can be wrong ....
Maybe the intel dirver has problems with no power of 2 textures?

I think I use things like 256x128 in the megapack, but not something like 17x123. Maybe there is something like this in the mentioned mods?
looks like he gets problems when compressing ...
Try Megaglest! Improved Engine / New factions / New tilesets / New maps / New scenarios