Project

General

Profile

Actions

Emulator Issues #4400

closed

Instant crash when accesing Graphics option (GFX config) on Linux

Added by dubigrasu about 13 years ago.

Status:
Fixed
Priority:
Normal
Assignee:
% Done:

0%

Operating system:
N/A
Issue type:
Bug
Milestone:
Regression:
No
Relates to usability:
No
Relates to performance:
No
Easy:
No
Relates to maintainability:
No
Regression start:
Fixed in:

Description

What's the problem?
Accessing Graphics options (GFX config) with or without a game started is crashing the application.

Dolphin version with the problem (as it appears in the title bar, Ex.: "R
4779" or "R 6403M"): All revisions (see additional informations below) after r7436

(optional) Dolphin version that does not have the problem: r7436

Operating system and version:
32-bit or 64-bit: MandrivaLinux 32-bit

Build command-line (not on Windows): Standard method as described on wiki.

Please provide any additional information below.

The last tested working version is r7436.
I was unable to test the next two revisions r7437 and r7438 (both failed to compile) so I can't tell for sure which one is responsible for the issue.
All I know is that r7439 has the issue and all revision after that.

I attached the errors I had compiling r7437 and r7438 (might help or not).

Actions #1

Updated by dubigrasu about 13 years ago

I noticed just now that if the "Video Backend" is set to "Software Renderer" (through "Config">>"Video Backend") the crash is no longer happening.

After going back to "OpenGL" the issue is back.

Actions #2

Updated by NeoBrainX about 13 years ago

Going to commit some VideoConfig cleanups soon. As I'm developing on both Linux and Windows, it should be fixed after that...
Can't give any ETA though.

Actions #3

Updated by dubigrasu about 13 years ago

Thanks, there is no hurry, I can still modify the options by editing gfx_opengl.ini.

Actions #4

Updated by gnick79 about 13 years ago

@dubigr

and log from r7439 ???
duplicate case issue was closed since r7439 O.o

Actions #5

Updated by dubigrasu about 13 years ago

OK, here is the log:

32:12:906 /root/dolphin-emu-read-only/Source/Core/Common/Src/FileUtil.cpp:100 W[COMMON]: IsDirectory: stat failed on /root/.dolphin-emu/Wii/title/00000001/00000002/content:
32:12:907 /root/dolphin-emu-read-only/Source/Core/Common/Src/FileUtil.cpp:100 W[COMMON]: IsDirectory: stat failed on /root/.dolphin-emu/Wii/title/00000001/00000002/content:
32:12:907 /root/dolphin-emu-read-only/Source/Core/Common/Src/FileUtil.cpp:100 W[COMMON]: IsDirectory: stat failed on /root/.dolphin-emu/Wii/title/00000001/00000002/content:
32:12:928 /root/dolphin-emu-read-only/Source/Core/Common/Src/FileUtil.cpp:100 W[COMMON]: IsDirectory: stat failed on /root/.dolphin-emu/Wii/title/00000001/00000002/content:

Actions #6

Updated by gnick79 about 13 years ago

@dubigr

this log now is a bit strange.

Actions #7

Updated by NeoBrainX about 13 years ago

That log is useless in 99% percent of all cases anyway.
Nothing strange about it, apart from the fact that you shouldn't need to run Dolphin as root.

Actions #8

Updated by gnick79 about 13 years ago

@NeoBrainX

percentage absolutely excessive.
Log from r7438 is a good example :°D

Anyway log indicates and mark this issue "as invalid" for me.

Actions #9

Updated by NeoBrainX about 13 years ago

That log from r7438 was a build log and not a Dolphin console log...

Actions #10

Updated by NeoBrainX about 13 years ago

The log doesn't indicate anything.

Actions #11

Updated by dubigrasu about 13 years ago

I think it is my fault by attaching those build logs (7437 and 7438), those are NOT the issue I'm reporting and I only confused things.

I attached them only in case someone was curious, besides, whatever was causing those errors is already fixed in r7439.

As for Dolphin console log (r7439) is posted at comment nr 5.
There isn't much there (other than NeoBra catching me running as root :) )
I changed the verbosity level but this is all I'm getting there.
All I did was start Dolphin and click on "Graphics option" >>> instant crash.

Actions #12

Updated by gnick79 about 13 years ago

@dubigr

It happens something strange... instant crash is very bad.
I don't know what is the problem, maybe something related to gcc compiler.
You don't have neither warning mex while compiling....
Changes, since last revision worked for you, were "classes template". This can be the cause.
Other linux users after r7438 it seems they don't have crash experiences. :/

Actions #13

Updated by gnick79 about 13 years ago

I've got something of interesting inside the sourcecode (completely I forgot before). :)

Actions #14

Updated by NeoBrainX about 13 years ago

Like I said, I'm rewriting the dialog code anyway... so please don't spam the svn logs :P
You're free to share you findings though, of course ;)

Actions #15

Updated by gnick79 about 13 years ago

@NeoBrainX
Your attitude is unacceptable.
If you call my waste of time spam, someone is idiot. ;)

Actions #16

Updated by florian98.rg about 13 years ago

W00t ? I'm using Ubuntu 10.10 and it works perfectly...

Actions #17

Updated by siliconjoe about 13 years ago

Not for me, on ubuntu too...

An attempt to run it via gdb and clicking on the video config button produces this:

gzed@firegarden:~$ gdb dolphin-emu
GNU gdb (GDB) 7.2-ubuntu
Copyright (C) 2010 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later http://gnu.org/licenses/gpl.html
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "i686-linux-gnu".
For bug reporting instructions, please see:
http://www.gnu.org/software/gdb/bugs/...
Reading symbols from /usr/bin/dolphin-emu...(no debugging symbols found)...done.
(gdb) run
Starting program: /usr/bin/dolphin-emu
[Thread debugging using libthread_db enabled]
52:44:644 /home/gzed/Documenti/Gaming-Emu/Wii/dolphin/svn/Source/Core/Common/Src/FileUtil.cpp:100 W[COMMON]: IsDirectory: stat failed on /home/gzed/.dolphin-emu/Wii/title/00000001/00000002/content:
52:44:665 /home/gzed/Documenti/Gaming-Emu/Wii/dolphin/svn/Source/Core/Common/Src/FileUtil.cpp:100 W[COMMON]: IsDirectory: stat failed on /home/gzed/.dolphin-emu/Wii/title/00000001/00000002/content:
52:44:665 /home/gzed/Documenti/Gaming-Emu/Wii/dolphin/svn/Source/Core/Common/Src/FileUtil.cpp:100 W[COMMON]: IsDirectory: stat failed on /home/gzed/.dolphin-emu/Wii/title/00000001/00000002/content:
52:44:702 /home/gzed/Documenti/Gaming-Emu/Wii/dolphin/svn/Source/Core/Common/Src/FileUtil.cpp:100 W[COMMON]: IsDirectory: stat failed on /home/gzed/.dolphin-emu/Wii/title/00000001/00000002/content:

Program received signal SIGSEGV, Segmentation fault.
0xb554b755 in ?? () from /lib/libc.so.6
(gdb) bt
#0 0xb554b755 in ?? () from /lib/libc.so.6
#1 0xb783a9da in wxString::FromAscii(char const*) ()
from /usr/lib/libwx_baseu-2.8.so.0
#2 0x08151900 in SettingChoice::SettingChoice(wxWindow*, int&, int&, bool&, int&, wxString const&, int, wxString const*, long) ()
#3 0x0843bad0 in typeinfo for wxFrame ()
#4 0x00000008 in ?? ()
#5 0xbfffe138 in ?? ()
Backtrace stopped: previous frame inner to this frame (corrupt stack?)
(gdb)

Actions #18

Updated by siliconjoe about 13 years ago

@florian: what are your gcc optimizations flags? Using -O3 here, trying to lower it to -O2 and see if it's an issue with gcc.

Actions #19

Updated by dubigrasu about 13 years ago

@gnick

Quote:
"""I don't know what is the problem, maybe something related to gcc compiler.
You don't have neither warning mex while compiling...."""

Gcc is the same (4.4.3) and gave no warnings for every revision I tried (working or not).

Anyway, I compiled again the r7439 (the first one that had the crash) and one of the latest one (r7465) on a different system.
This one is MandrivaLinux Cooker (the development and unstable version) on 64-bit.

The GCC version is 4.6.0 and gave a LOT of warnings at build time, but all Dolphin versions compiled successfully and they no longer crash.

The original issue still remains though for the 32-bit installation.

Actions #20

Updated by gnick79 about 13 years ago

@dubigr

The problem, I think, is a my fault when I fogot to remove even some lines;
Remove these rows and all should work right without problems anymore:
121, 122, 123 (you can see the first line is "void *p = &m_setting;")
137, 138, 139 (here first line is still "void *p = &m_setting;")
Remove these six lines and rebuild.

Actions #21

Updated by gnick79 about 13 years ago

file is VideoConfigDiag.cpp

Actions #22

Updated by dubigrasu about 13 years ago

Working!

I compiled two revisions (7438 and 7468) using the modified "VideoConfigDiag.cpp" file and Dolphin is no longer crashing when accessing "Graphics options".
The issue is gone now.
Thank you!

Actions #23

Updated by siliconjoe about 13 years ago

working on my system as well!

Actions #24

Updated by gnick79 about 13 years ago

Closing... try r7472/3

Actions

Also available in: Atom PDF