LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 10-31-2017, 10:47 AM   #1
Antonino89
LQ Newbie
 
Registered: Oct 2017
Posts: 6

Rep: Reputation: Disabled
SDL Problem


Hi guys,

i'm trying to run a very basic videogame called powermanga, i compiled from the source and i installed it.

But when i'm going to run it... an error occur:

[root@SRVTREP01 games]# ./powermanga

(II) configuration filename: /root/.config/tlk-games/powermanga.conf [config_file.c:238, configfile_load]

(II) fullscreen: 1; nosound: 1; resolution: 640; verbose: 0; difficulty: 1; lang: en; scale_x: 2; joy_config 0 1 0 1 2; nosync: 0 [config_file.c:105, configfile_print]

(EE) SDL_SetVideoMode() return Couldn't set console screen info [display_sdl.c:421, init_video_mode]

My Hardware is:

product: Intel(R) Xeon(R) CPU X5660 @ 2.80GHz
product: ProLiant DL360 G7 (BY269A) - 6 Giga RAM DDR3
vendor: HP

OS: Centos 6 - Linux 3.10.0-514.10.2.el7.x86_64

Does anyone has some suggestions?

Thanks

Anto

Last edited by Antonino89; 10-31-2017 at 10:48 AM.
 
Old 10-31-2017, 11:22 AM   #2
jsbjsb001
Senior Member
 
Registered: Mar 2009
Location: Earth, unfortunately...
Distribution: Currently: OpenMandriva. Previously: openSUSE, PCLinuxOS, CentOS, among others over the years.
Posts: 3,881

Rep: Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063
Well, yes I do have a few suggestions;

1) Why are you trying to run it under the root user account?

You should ONLY be using that account for system administration, NOT for games.

2) Any reason why you are still using CentOS 6?

The latest version is 7.4

I suggest you download and install the latest version of CentOS and do NOT use the root user account, to run your game.
 
Old 10-31-2017, 11:42 AM   #3
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 11,237

Rep: Reputation: 5322Reputation: 5322Reputation: 5322Reputation: 5322Reputation: 5322Reputation: 5322Reputation: 5322Reputation: 5322Reputation: 5322Reputation: 5322Reputation: 5322
Do you have a custom xorg.conf? There's a similar issue for my DosBox fork, where the user did some weird stuff to his X configuration that prevented SDL from setting the video mode.
 
Old 10-31-2017, 02:00 PM   #4
!!!
Member
 
Registered: Jan 2017
Location: Fremont, CA, USA
Distribution: Trying any&ALL on old/minimal
Posts: 997

Rep: Reputation: 382Reputation: 382Reputation: 382Reputation: 382
Welcome to LQ!!! A web-search (of error) result: https://www.reddit.com/r/linux/comme..._linux_console
I wonder IF my favorite 'toy' strace (-f-o see man) might gather any useful info here...
Let us know... (mark Thread Solv'd if you find&post info/keywords, for future searchers)
 
Old 11-02-2017, 03:45 AM   #5
Antonino89
LQ Newbie
 
Registered: Oct 2017
Posts: 6

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by !!! View Post
Welcome to LQ!!! A web-search (of error) result: https://www.reddit.com/r/linux/comme..._linux_console
I wonder IF my favorite 'toy' strace (-f-o see man) might gather any useful info here...
Let us know... (mark Thread Solv'd if you find&post info/keywords, for future searchers)
Tried this an now a get a differente error:

(EE) SDL_Init() failed: No available video device
 
Old 11-02-2017, 04:51 AM   #6
Antonino89
LQ Newbie
 
Registered: Oct 2017
Posts: 6

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by dugan View Post
Do you have a custom xorg.conf? There's a similar issue for my DosBox fork, where the user did some weird stuff to his X configuration that prevented SDL from setting the video mode.

No, i do not have custom configuration.
 
Old 11-02-2017, 06:05 AM   #7
Antonino89
LQ Newbie
 
Registered: Oct 2017
Posts: 6

Original Poster
Rep: Reputation: Disabled
Strace:

[root@SRVTREP01 games]# strace -d ./powermanga


wait(0x857f) = 2034] WIFSTOPPED,sig=133
connect(3, {sa_family=AF_INET, sin_port=htons(6000), sin_addr=inet_addr("127.0.0.1")}, 16 [wait(0x857f) = 2034] WIFSTOPPED,sig=133
) = -1 ECONNREFUSED (Connection refused)
[wait(0x857f) = 2034] WIFSTOPPED,sig=133
close(3 [wait(0x857f) = 2034] WIFSTOPPED,sig=133

) = 0
[wait(0x857f) = 2034] WIFSTOPPED,sig=133
munmap(0x7f5af825e000, 2138568 [wait(0x857f) = 2034] WIFSTOPPED,sig=133
) = 0
[wait(0x857f) = 2034] WIFSTOPPED,sig=133
munmap(0x7f5af8469000, 2138760 [wait(0x857f) = 2034] WIFSTOPPED,sig=133
) = 0
[wait(0x857f) = 2034] WIFSTOPPED,sig=133
munmap(0x7f5af8674000, 2169112 [wait(0x857f) = 2034] WIFSTOPPED,sig=133
) = 0
[wait(0x857f) = 2034] WIFSTOPPED,sig=133
munmap(0x7f5af8cb2000, 3399136 [wait(0x857f) = 2034] WIFSTOPPED,sig=133
) = 0
[wait(0x857f) = 2034] WIFSTOPPED,sig=133
munmap(0x7f5af8a8a000, 2257960 [wait(0x857f) = 2034] WIFSTOPPED,sig=133
) = 0
[wait(0x857f) = 2034] WIFSTOPPED,sig=133
munmap(0x7f5af8886000, 2109736 [wait(0x857f) = 2034] WIFSTOPPED,sig=133
) = 0
[wait(0x857f) = 2034] WIFSTOPPED,sig=133
write(2, "(EE) SDL_Init() failed: No avail"..., 84(EE) SDL_Init() failed: No available video device [display_sdl.c:210, display_init]
[wait(0x857f) = 2034] WIFSTOPPED,sig=133
) = 84

[wait(0x857f) = 2034] WIFSTOPPED,sig=133
rt_sigaction(SIGSEGV, NULL, [wait(0x857f) = 2034] WIFSTOPPED,sig=133
{SIG_DFL, [], 0}, 8) = 0
[wait(0x857f) = 2034] WIFSTOPPED,sig=133
rt_sigaction(SIGBUS, NULL, [wait(0x857f) = 2034] WIFSTOPPED,sig=133
{SIG_DFL, [], 0}, 8) = 0
[wait(0x857f) = 2034] WIFSTOPPED,sig=133
rt_sigaction(SIGFPE, NULL, [wait(0x857f) = 2034] WIFSTOPPED,sig=133
{SIG_DFL, [], 0}, 8) = 0
[wait(0x857f) = 2034] WIFSTOPPED,sig=133
rt_sigaction(SIGQUIT, NULL, [wait(0x857f) = 2034] WIFSTOPPED,sig=133
{SIG_DFL, [], 0}, 8) = 0
[wait(0x857f) = 2034] WIFSTOPPED,sig=133
open("/root/.config/tlk-games/powermanga.conf", O_WRONLY|O_CREAT|O_TRUNC, 0666 [wait(0x857f) = 2034] WIFSTOPPED,sig=133
) = 3
[wait(0x857f) = 2034] WIFSTOPPED,sig=133
fstat(3, [wait(0x857f) = 2034] WIFSTOPPED,sig=133
{st_mode=S_IFREG|0644, st_size=0, ...}) = 0
[wait(0x857f) = 2034] WIFSTOPPED,sig=133
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0 [wait(0x857f) = 2034] WIFSTOPPED,sig=133
 
Old 11-02-2017, 05:54 PM   #8
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,627

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
this right here looks to be a MAJOR problem
Quote:
OS: Centos 6 - Linux 3.10.0-514.10.2.el7.x86_64
a cent 7 kernel on a cent 6 os

very very very bad idea
i am surprise that anything is working
 
Old 11-03-2017, 03:42 AM   #9
Antonino89
LQ Newbie
 
Registered: Oct 2017
Posts: 6

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by John VV View Post
this right here looks to be a MAJOR problem

a cent 7 kernel on a cent 6 os

very very very bad idea
i am surprise that anything is working
My mistake... it's 7.

[root@SRVTREP01 ~]# cat /etc/centos-release
CentOS Linux release 7.3.1611 (Core)
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
C: Minimalist SDL Presentation (SDL SDL_ttf) Xeratul Programming 0 12-23-2013 11:44 AM
SDL is installed, included and linked, but will not compile SDL code mansizerooster Programming 10 05-31-2006 04:18 AM
Sourcecompiling Problem...The sdl-config script installed by SDL could not be found. deepclutch Debian 1 12-15-2005 12:15 PM
Trying to program an SDL application but cannot find the SDL.h file:SuSE 9.2&KDevelop pujolasdf Linux - Newbie 4 03-13-2005 07:50 AM
gl-117 sdl problem LavaDevil94 Linux - Software 2 09-10-2003 04:18 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:56 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration