Project

General

Profile

Actions

Emulator Issues #151

closed

OGL plugin crash under GNU/Linux x86_64

Added by gnuraziel over 15 years ago.

Status:
Fixed
Priority:
Normal
Assignee:
Category:
GFX
% Done:

0%

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

Description

What steps will reproduce the problem?

  1. Build R253, the last one usable (I mean build done) under GNU/Linux
  2. Have a 3D Gamecube game, for example Zelda Wind Waker
  3. Launch the game

What is the expected output? What do you see instead?
Having 3D output. Instead I see Nintendo logo, surround logo then crash
with this error :

error : (0) : fatal error C9999: exception during compilation

What version of the product are you using? On what operating system?
Dolphin SVN R253 X86_64, default cc flags

Please provide any additional information below.
None to add, exept the fact that if the issue is alrerady reported (i think
not since i do not saw it) i apologize ^^

Actions #1

Updated by knuckles500 over 15 years ago

Don't worry, everyone using linux is currently having problems w/ the video + audio
(I think audio too, not sure) plugins with displaying 3D. This might be accepted,
but I don't think it'll be an easy fix for them. :P

Actions #2

Updated by Sonicadvance1 over 15 years ago

  • Status changed from New to Accepted
  • Category set to gfx
  • Relates to usability set to Yes
  • Operating system N/A added

That's not nice knuckles, I have Dolphin working totally fine for me, video and Audio.

gnuraziel, can you provide a gdb backtrace or a valgrind log with the latest SVN
version(275+)? It would allow me to look in to it more.

Actions #3

Updated by knuckles500 over 15 years ago

What? I thought everyone was having some sort of issue with Dolphin in Linux? Infact,
he was having the same problems as me.

I actually apologize, I forgot to even give what REV number I was using. Although
judging by the time this issue was filled, was an hour earlier before I compiled. My
bad. When I compiled it yesterday (which was the first time I compiled it), it didn't
give me the REV number it downloaded from. Even the program header doesn't give the
REV number like the Windows version does. I'll have to recompile again just to make
sure these problems still exist.

Also, ALSA for some reason wasn't playing the sound properly until after I rebooted
my computer. Now it works fine for the most part, however Sonic Heroes or anything w/
ADX (maybe) plays a lot quicker.

I'll recompile + report back. Hopefully the problems I'm having got fixed.

Actions #4

Updated by knuckles500 over 15 years ago

Reporting back here with some updates. Sound for the most part is still the same as
was before, but I'm still getting weird video problems. For example with Crazy Taxi
(see attached screenshot), it plays the sound + opening movie fine, but at this part
where you need to make a save file it doesn't show anything.

I have many other graphical problems besides this on linux, if you're interested in
them, let me know somehow. Thanks. :)

PS: This is amd64/Ubuntu 8.04 w/ REV278.

Actions #5

Updated by gnuraziel over 15 years ago

Here the valgring log you've requested with R278, using full leak check option.

And thx for the build fix :)

Actions #6

Updated by gnuraziel over 15 years ago

May I add that R279 is not building while R278 build...

g++ -o Source/Core/Core/Src/PowerPC/Jit64/Jit.o -c -g -O3 -fno-strict-aliasing -fPIC
-msse2 -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -Wall -Wwrite-strings -Wfloat-equal
-Wshadow -Wpointer-arith -Wpacked -Wno-conversion -g -O3 -fno-strict-aliasing -fPIC
-msse2 -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -Wall -Wwrite-strings -Wfloat-equal
-Wshadow -Wpointer-arith -Wpacked -Wno-conversion -ISource/Core/Common/Src
-ISource/Core/DiscIO/Src -ISource/PluginSpecs -ISource -ISource/Core/Core/Src
-ISource/Core/DebuggerWX/src -IExternals/Bochs_disasm -ISource/Core/VideoCommon/Src
Source/Core/Core/Src/PowerPC/Jit64/Jit.cpp
Source/Core/Core/Src/PowerPC/Jit64/Jit.cpp: In function 'void Jit64::Init()':
Source/Core/Core/Src/PowerPC/Jit64/Jit.cpp:239: error: 'Core' has not been declared
scons: *** [Source/Core/Core/Src/PowerPC/Jit64/Jit.o] Error 1
scons: building terminated because of errors.

Actions #7

Updated by knuckles500 over 15 years ago

Same. Error messages and all. :(

g++ -o Source/Core/Core/Src/PowerPC/Jit64/Jit.o -c -g -O3 -fno-strict-aliasing -fPIC
-msse2 -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -Wall -Wwrite-strings -Wfloat-equal
-Wshadow -Wpointer-arith -Wpacked -Wno-conversion -ISource/Core/Common/Src
-ISource/Core/DiscIO/Src -ISource/PluginSpecs -ISource -ISource/Core/Core/Src
-ISource/Core/DebuggerWX/src -IExternals/Bochs_disasm -ISource/Core/VideoCommon/Src
Source/Core/Core/Src/PowerPC/Jit64/Jit.cpp
In file included from Source/Core/Core/Src/PowerPC/Jit64/../../CoreTiming.h:28,
from Source/Core/Core/Src/PowerPC/Jit64/Jit.cpp:25:
Source/Core/Common/Src/ChunkFile.h:109:7: warning: no newline at end of file
Source/Core/Core/Src/PowerPC/Jit64/Jit.cpp: In function 'void Jit64::Init()':
Source/Core/Core/Src/PowerPC/Jit64/Jit.cpp:239: error: 'Core' has not been declared
scons: *** [Source/Core/Core/Src/PowerPC/Jit64/Jit.o] Error 1
scons: building terminated because of errors.

Actions #8

Updated by Sonicadvance1 over 15 years ago

Knuckles, what is your CPU type? If it has SSE3 but it isn't being detected( You can
tell by the string that is shown at the start of emulation) then most games will fail
to work, something in ector's department with that.
Also, the sound plugin uses libao in Linux, the sound problem is probably from your
distro. Mine works fine.
gnuraziel, I'll look in to your valgrind log in a bit.
And I will also fix Compiling again. >>

Actions #9

Updated by Sonicadvance1 over 15 years ago

gnurazial, what is your Video card and what version of nvidia-cg-toolkit are you using?

Actions #10

Updated by gnuraziel over 15 years ago

-Graphic card : GeForce 7800GS "Extreme Edition" (AGP, 512MB of DDR3, memory and GPU
frequencies x2)
-Driver : 173.14.12
-CG toolkit : 2.0.0015

Actions #11

Updated by gnuraziel over 15 years ago

Thx again Sonicasvance1 for the build fix :)

Actions #12

Updated by gnuraziel over 15 years ago

Did you find anything usefull in the Valgrind log that explain why OGL plugin hang ?

Actions #13

Updated by knuckles500 over 15 years ago

Here's a nice generated log of my CPU, done in Windows though.

Actions #14

Updated by Sonicadvance1 over 15 years ago

knuckles, the CPUID detection varies between Windows and Linux, seeing what it says
when the game first starts up should be what you go by.

Actions #15

Updated by gnuraziel over 15 years ago

Sonicadvance1 :
Did you found anything usefull in the Valgrind log that explain why OGL plugin hang ?

Actions #16

Updated by knuckles500 over 15 years ago

Yeah, for some reason Dolphin says that I'm using 1 core and only SSE and SSE2. So
I'm reporting. :P
Of course when using it on Windows, it says it's using 2 cores and SSSE3 is there.
Now what? :(

What's the distro you're using anyway, Sonicadvance1?

Actions #17

Updated by gnuraziel over 15 years ago

knuckles500 :
use the -msse3 and -march=nocona flags to force scons build with sse3 and cpu
specific support.

Actions #18

Updated by gnuraziel over 15 years ago

With last Rev (R340) I now have the exact same issue un x86 than the one reported here.

For example, with ZWW, I see Nintendo logo, then surround logo and Dolphin crash with
this error :

(0) : fatal error C9999: *** exception during compilation ***

One step forward since x86 is now a little more functionnal.

Actions #19

Updated by gnuraziel over 15 years ago

Here all warnings (and only warnings, it fully build) displayed with R363 under
GNU/Linux x86 :

http://pastebin.com/f4d4a0971

I also spotted that Cg toolkit 2.0 (and 2.1 beta) have issues with PixelShaders. Here
functions you must deactivate to be able to have usable build under GNU/Linux (only
idea) :

GL_EXT_texture_rectangle
GL_ARB_texture_rectangle
GL_NV_texture_rectangle

Actions #20

Updated by gnuraziel over 15 years ago

R379 result :

-Tested on SEVEN different hardware and Linux dist (thx to eldon, Moustik and guru),
it always, ALWAYS give the exact same error :

(0) : fatal error C9999: exception during compilation Cg compiler terminated due to
fatal error

I don't know how SOnicadvance1 do, but he is probably the only guy having 3D init
under Linux.

I don't want to bother you guys but something is definitly wrong since Linux version
is ultra buggy (far more than Windows version) and OSX version is simply non-funtionnal.

Most of the revision are only windows-friendly...That explain why it take 5 rev avery
change to make dolphin build under *NIX again...

I caon't help you because I do not have enough knowledge in C++ but one basic thing I
know is when to make multi-OSes program, it's the most basic thing to be sure that
program run the exact same way for all supported OSes (currently Dolphin is a
windows-friendly emu and a useless GUI under *NIX).

No offence, I thx you for your work and the time you spend on this project, I just
give my thinking about Dolphin project because I work in web and java dev society and
the first thing we do is always make sure our project will work at 100% under each
OSes we choose to support (most of time windows, Linux, OSX and BSD).

Actions #21

Updated by mthuurne over 15 years ago

It is true that Linux support is not as good as Windows support, but please take
into account that Dolphin was developed for Windows for 5 years, while Linux
support was added only a few weeks ago. Things will get better with time. Please
keep testing and reporting problems.

Actions #22

Updated by Sonicadvance1 over 15 years ago

I use Ubuntu 8.10 with latest Nvidia Graphics drivers and everything updated. I don't
know what distros and videos drivers you use, it has always worked for me.

Actions #23

Updated by gnuraziel over 15 years ago

Linux Dist tested / Result :
-Ubuntu 8.04.1 x86_64 / C999 error
-Debian Lenny X86_64 / C999 error
-OpenSuse 11.0 X86_64 / C999 error
-Gentoo X86_64 / C999 error
-Mandriva 2008 X86_64 / C999 error

Each dist is full up-to-date, have Nvidia Cg (GF 6 to 9), 2-4 GB of RAM, CPU > 2GHz
(Core2Duo and Athlon X2).

So no, Linux version of Dolphin is not functionnal, you're a lucky one Sonicadvance1.

Seven Different Hardware on five diffrent dist end to the EXACT same error so don't
tell me it work good under GNU/Linux, something is definitly wrong.

You have Valgrind log, if you need another kind of log tell me, I will provide it as
fast as I can (I can provide log under Ubuntu 8.04.1 x86 and Debian Lenny X86_64) but
if you cannot find what is wrong, better mark Linux version as useless for the moment
because, considering all the post on the net, only VERY FEW poeple can make it work,
most of linux user end with the C999 error.

(0) : fatal error C9999: exception during compilation Cg compiler terminated due to
fatal error

Actions #24

Updated by gnuraziel over 15 years ago

Here is my last report :
R403 still give the same error on all PC/dist tested (thx again to those helped me by
testing thisRev on their computer)

(0) : fatal error C9999: exception during compilation Cg compiler terminated due to
fatal error

Expect the fact that Dual-Core and maybe SSE3 (I always force it anyway so I do not
noticed) are now detected with AMD CPU, there is no improvement on Linux release.

Considering Sonicadvance1 do not have this problem and, expect ector (which do not
have this problem either), he is the only one using linux there is nearly no chance
to see this bug fixed as most of the contributors are Windows only users (Maybe I'm
wrong but most of the rev are Windows enhanced only).

Most of Linux users end with a non-working emu, this is a fact but it seems they're
just out of luck...

Good luck, I will check this project out in one year or so, maybe then Linux version
will be functionnal...For the moment I will still use my Gamecube, the best way to
play GC games.

Actions #25

Updated by nakeee over 15 years ago

I know we fixed most of those issues.
Is any of them still relevant to someone?

Actions #26

Updated by Sonicadvance1 over 15 years ago

Indeed, Does this still cause people to crash? There have been quite a bit of
changes.

Actions #27

Updated by nakeee over 15 years ago

  • Status changed from Accepted to Fixed

marked fixed unless someone claims otherwise

Actions

Also available in: Atom PDF