Latest Posts

Topic: Error running build7280 in VirtualBox Ubuntu

fuchur

Topic Opener
Joined: 2009-10-07, 13:01
Posts: 186
Ranking
Widelands-Forum-Junkie
Location: Germany
Posted at: 2014-11-27, 20:13

Yesterday I downloaded the current trunk (build7280), today I managed to compile it (after installing the SDL2 libs). The game starts but crashes when I try to enter certain menus. I tried Single Player -> New Game and Single Player -> Load Game. The options menu is fine, also the advanced options menu.

In the console window I get several error mesages:

Set home directory: /home/fuchur/.widelands
Widelands executable directory: /home/fuchur/widelands-repo/ship-statistics/
full path: /home/fuchur/widelands-repo/ship-statistics
Adding directory: /home/fuchur/widelands-repo/ship-statistics
selected language: en
using locale en_US.utf-8
libGL error: pci id for fd 5: 80ee:beef, driver (null)
OpenGL Warning: glFlushVertexArrayRangeNV not found in mesa table
OpenGL Warning: glVertexArrayRangeNV not found in mesa table
OpenGL Warning: glCombinerInputNV not found in mesa table
OpenGL Warning: glCombinerOutputNV not found in mesa table
OpenGL Warning: glCombinerParameterfNV not found in mesa table
OpenGL Warning: glCombinerParameterfvNV not found in mesa table
OpenGL Warning: glCombinerParameteriNV not found in mesa table
OpenGL Warning: glCombinerParameterivNV not found in mesa table
OpenGL Warning: glFinalCombinerInputNV not found in mesa table
OpenGL Warning: glGetCombinerInputParameterfvNV not found in mesa table
OpenGL Warning: glGetCombinerInputParameterivNV not found in mesa table
OpenGL Warning: glGetCombinerOutputParameterfvNV not found in mesa table
OpenGL Warning: glGetCombinerOutputParameterivNV not found in mesa table
OpenGL Warning: glGetFinalCombinerInputParameterfvNV not found in mesa table
OpenGL Warning: glGetFinalCombinerInputParameterivNV not found in mesa table
OpenGL Warning: glDeleteFencesNV not found in mesa table
OpenGL Warning: glFinishFenceNV not found in mesa table
OpenGL Warning: glGenFencesNV not found in mesa table
OpenGL Warning: glGetFenceivNV not found in mesa table
OpenGL Warning: glIsFenceNV not found in mesa table
OpenGL Warning: glSetFenceNV not found in mesa table
OpenGL Warning: glTestFenceNV not found in mesa table
libGL error: core dri or dri2 extension not found
libGL error: failed to load driver: vboxvideo
Graphics: Try to set Videomode 800x600
Graphics: OpenGL: Version "2.1 Chromium 1.9"
Graphics: OpenGL: Double buffering enabled
Graphics: OpenGL: Max texture size: 8192
**** GRAPHICS REPORT ****
 VIDEO DRIVER x11
 pixel fmt 370546692
 size 800 600
**** END GRAPHICS REPORT ****
[] Section [global], key 'inputgrab' not used (did you spell the name correctly?)
[] Section [global], key 'opengl' not used (did you spell the name correctly?)
[] Section [global], key 'EXENAME' not used (did you spell the name correctly?)
Speicherzugriffsfehler (Speicherabzug geschrieben)

I guess that has something to do with the graphics driver of the virtual Ubuntu, or maybe OpenGL.

When I click on Exit I also get an error in the console:

X Error of failed request:  BadDrawable (invalid Pixmap or Window parameter)
  Major opcode of failed request:  14 (X_GetGeometry)
  Resource id in failed request:  0x460000b
  Serial number of failed request:  875
  Current serial number in output stream:  875
OpenGL Warning: crStateGetProgramObj called without current ctx
OpenGL Warning: Unknown program 4

Some weeks ago it worked with an older build (7181). But I also had an older version of VirtualBox installed then. Any ideas? Maybe it's just that special build number.

Edit: Btw. the switch to disable OpenGL in the advanced options is gone. Maybe that's not good for me, or let's say running widelands on my system.

Edited: 2014-11-27, 20:18

Top Quote
Tibor

Joined: 2009-03-23, 22:24
Posts: 1377
Ranking
One Elder of Players
Location: Slovakia
Posted at: 2014-11-27, 21:18

I had similar experience in VirtualBox. There used to be also command line swith to toggle opengl on/off, but it seems it is gone

Can you try other virtual machine?


Top Quote
GunChleoc
Avatar
Joined: 2013-10-07, 14:56
Posts: 3324
Ranking
One Elder of Players
Location: RenderedRect
Posted at: 2014-11-28, 07:47

We decided to get rid of software rendering, because it's outdated, slow, hard to maintain, and limits flexibility when implementing new graphics features.

According to our research, graphics drivers from 2006 on or so should usually be able to handle OpenGL (or was that 2008?).


Busy indexing nil values

Top Quote
einstein13
Avatar
Joined: 2013-07-28, 23:01
Posts: 1118
Ranking
One Elder of Players
Location: Poland
Posted at: 2014-11-28, 07:47

Hey!

I'm running Widelands on VMWare Player. Everything is fine when you install theirs drivers (for Ubuntu are isntalled by default)


einstein13
calculations & maps packages: http://wuatek.no-ip.org/~rak/widelands/
backup website files: http://kartezjusz.ddns.net/upload/widelands/

Top Quote
fuchur

Topic Opener
Joined: 2009-10-07, 13:01
Posts: 186
Ranking
Widelands-Forum-Junkie
Location: Germany
Posted at: 2014-12-02, 18:30

Ok, I tried to get it working in VirtualBox, but up to now without success. I found somewhere a statement that VirtualBox doesn't support OpenGL 3. But in the latest development news on the widelands main page is mentioned that it needs OpenGL 2.1. So I'm not sure if that could be a reason.

Concerning the VMware Player, I never used that. But I have the feeling that you can't create new virtual machines with it. Are there free appliances with Ubuntu suitable for building and running Widelands?

I don't think it will be a good idea to just use an older build to do some programming work... face-confused.png


Top Quote
SirVer

Joined: 2009-02-19, 14:18
Posts: 1445
Ranking
One Elder of Players
Location: Germany - Munich
Posted at: 2014-12-02, 20:33

Widelands needs OpenGL 2.1 since that is the version of OpenGL ES that is well supported on tablets these days. OpenGL 3 support is not needed.


Top Quote
GunChleoc
Avatar
Joined: 2013-10-07, 14:56
Posts: 3324
Ranking
One Elder of Players
Location: RenderedRect
Posted at: 2014-12-03, 08:37

I tried installing an Ubuntu in VirtualBox on my Ubuntu to check things out. But I wasn't even able to load a DVD medium or ISO file to install the OS.

I sometimes use VMWare Player on Windows 7 and it works just fine. Create as many virtual machines as you want. I have never tried it on Linux though.

OpenGL Warning: glFlushVertexArrayRangeNV not found in mesa table

Does this sound like a graphics driver issue?

Edited: 2014-12-03, 08:44

Busy indexing nil values

Top Quote
Tino

Joined: 2009-02-20, 16:05
Posts: 252
Ranking
Tribe Member
Location: Somewhere in Germany...
Posted at: 2014-12-03, 10:50

Please differentiate between Host and Guest operating system ;).

I can't really figure out what you want to achive here. I am running Kubuntu 14.04 in Virtualbox 4.3.12 on a Windows 7 64-bit Host operating system.

Installing widelands via daily ppa was no problem and it starts fine. Only some weird graphic issues with 7297 face-wink.png

Imgur

Make sure your guest operating system supports OpenGL, you have enabled 3D acceleration for your virtual machine and installed the virtualbox driver package in your guest operating system (Use the menu entry "Devices -> Insert media with guest extensions..." of your vbox task bar)

Edited: 2014-12-03, 10:54

Top Quote
fuchur

Topic Opener
Joined: 2009-10-07, 13:01
Posts: 186
Ranking
Widelands-Forum-Junkie
Location: Germany
Posted at: 2014-12-04, 21:03

@GunChleoc: Maybe it's graphics driver issue, I'll investigate that. Thanks for trying to check out VirtualBox. To load an ISO is possible in the settings. In the section "Storage" you can add an ISO to the IDE Controller. But as Tino says it works for him you don't need to test that, too.

@Tino: Sorry, I didn't think about that. I have a Windows 7 64-bit host, VirtualBox is version 4.3.20, and I tried plain Ubuntu 14.04. Guest additions are installed, 3D acceleration is enabled. But I didn't use the daily ppa. I downloaded the source and compiled it myself. There were some warnings about pointer types, but they were present also when I built an older version of widelands which worked.

The manual of VirtualBox states that the 3D acceleration does not emulate the functions but uses the host hardware. So I checked out OpenGL Extensions Viewer which claims that I have OpenGL version 3.1. This should be ok.

Thanks for your hints, I'll go deeper into this. Unfortunately my time is limited at the moment face-sad.png


Top Quote
GunChleoc
Avatar
Joined: 2013-10-07, 14:56
Posts: 3324
Ranking
One Elder of Players
Location: RenderedRect
Posted at: 2014-12-05, 08:26

Since your host system is Windows, try VMWare Player. It's free - they want you to register though.

After that, it handles similarly to VirtualBox.


Busy indexing nil values

Top Quote