Emulator Issues #4400
closedInstant crash when accesing Graphics option (GFX config) on Linux
Added by dubigrasu over 13 years ago.
0%
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).
Updated by dubigrasu over 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.
Updated by NeoBrainX over 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.
Updated by dubigrasu over 13 years ago
Thanks, there is no hurry, I can still modify the options by editing gfx_opengl.ini.
Updated by gnick79 over 13 years ago
@dubigr
and log from r7439 ???
duplicate case issue was closed since r7439 O.o
Updated by dubigrasu over 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:
Updated by NeoBrainX over 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.
Updated by gnick79 over 13 years ago
<That log is useless in 99% percent of all cases anyway.>
percentage absolutely excessive.
Log from r7438 is a good example :°D
Anyway log indicates and mark this issue "as invalid" for me.
Updated by NeoBrainX over 13 years ago
That log from r7438 was a build log and not a Dolphin console log...
Updated by dubigrasu over 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.
Updated by gnick79 over 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. :/
Updated by gnick79 over 13 years ago
I've got something of interesting inside the sourcecode (completely I forgot before). :)
Updated by NeoBrainX over 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 ;)
Updated by gnick79 over 13 years ago
@NeoBrainX
Your attitude is unacceptable.
If you call my waste of time spam, someone is idiot. ;)
Updated by florian98.rg over 13 years ago
W00t ? I'm using Ubuntu 10.10 and it works perfectly...
Updated by siliconjoe over 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)
Updated by siliconjoe over 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.
Updated by dubigrasu over 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.
Updated by gnick79 over 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.
Updated by dubigrasu over 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!