Project

General

Profile

Actions

Emulator Issues #5290

closed

Crash in glDrawElements on Linux/OSX with Nvidia drivers

Added by synergism over 12 years ago.

Status:
Fixed
Priority:
Normal
Assignee:
-
% Done:

0%

Operating system:
OS X
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

  1. Super Smash Brothers Melee - GALE01

  2. I expected the level to start. Instead, it crashed, producing a core file (see backtrace below).

  3. I have only just started using dolphin-emu, so I have no information from earlier versions.

4) What steps will reproduce the problem?

When I start the single player mode event 30 "All Star Match 3" with "Enable DTK Music" turned on, the game crashes. With the option disabled, or with sound disabled entirely, the game does not crash. I used the character "Fox", but so far as I can remember, it crashed with other characters as well. Others on irc tried with the same corefile but could not reproduce the issue (though they did notice some irregularity in the music at around the time where my crash is occurring).

  1. I have tested with bf76b80 from git (shows as Dolphin 3.0-457-dirty), 32 bit, built myself on Debian unstable i386 on an Intel Dual core system with nVidia GeForce 9800 GT graphics card and nVidia 295.20 driver. I'm running the game on a gnome3 desktop, but with the pulseaudio package removed, so it is using the alsa backend.

At the recommendation of one of the people helping me build on irc, I applied this patch to get my build to work properly with sid's libav:

diff --git a/Source/Core/VideoCommon/Src/AVIDump.cpp b/Source/Core/VideoCommon/Src/AVIDump.cpp
index 6706936..4c05a9c 100644
--- a/Source/Core/VideoCommon/Src/AVIDump.cpp
+++ b/Source/Core/VideoCommon/Src/AVIDump.cpp
@@ -319,9 +319,10 @@ void AVIDump::AddFrame(uint8_t *data, int width, int height)
AVPacket pkt;
av_init_packet(&pkt);

+/*
if (s_Stream->codec->coded_frame->pts != (unsigned int)AV_NOPTS_VALUE)
pkt.pts = av_rescale_q(s_Stream->codec->coded_frame->pts,

  •                                   s_Stream->codec->time_base, s_Stream->time_base);
    
  •                                   s_Stream->codec->time_base, s_Stream->time_base); */
              if(s_Stream->codec->coded_frame->key_frame)
                      pkt.flags |= AV_PKT_FLAG_KEY;
              pkt.stream_index = s_Stream->index;
    

It was also suggested on irc I try the FifoBusy branch, but I could not get that to build, so I never tried it.

6) Please provide any additional information below.

Here is a backtrace from the core file produced by the crash:

Thread 5 (Thread 0xb1c749d0 (LWP 15556)):
#0 0xb77c6424 in __kernel_vsyscall ()
#1 0xb4c80746 in poll () from /lib/i386-linux-gnu/i686/cmov/libc.so.6
#2 0xb5effafb in g_poll () from /lib/i386-linux-gnu/libglib-2.0.so.0
#3 0xb63ec7fa in ?? () from /usr/lib/i386-linux-gnu/libwx_gtk2u_core-2.8.so.0
#4 0xb5ef1076 in ?? () from /lib/i386-linux-gnu/libglib-2.0.so.0
#5 0xb5ef177b in g_main_loop_run () from /lib/i386-linux-gnu/libglib-2.0.so.0
#6 0xb5a5394f in gtk_main () from /usr/lib/i386-linux-gnu/libgtk-x11-2.0.so.0
#7 0xb640339a in wxEventLoop::Run() () from /usr/lib/i386-linux-gnu/libwx_gtk2u_core-2.8.so.0
#8 0xb6488c3f in wxAppBase::MainLoop() () from /usr/lib/i386-linux-gnu/libwx_gtk2u_core-2.8.so.0
#9 0xb64884df in wxAppBase::OnRun() () from /usr/lib/i386-linux-gnu/libwx_gtk2u_core-2.8.so.0
#10 0xb60ca946 in wxEntry(int&, wchar_t**) () from /usr/lib/i386-linux-gnu/libwx_baseu-2.8.so.0
#11 0xb60ca9e6 in wxEntry(int&, char**) () from /usr/lib/i386-linux-gnu/libwx_baseu-2.8.so.0
#12 0x080834db in main ()

Thread 4 (Thread 0x9d0f5b70 (LWP 15590)):
#0 0xb77c6424 in __kernel_vsyscall ()
#1 0xb4c653dc in sched_yield () from /lib/i386-linux-gnu/i686/cmov/libc.so.6
#2 0x0815b5f2 in CoreTiming::Idle() ()
#3 0xaa0388a4 in ?? ()
Backtrace stopped: previous frame inner to this frame (corrupt stack?)

Thread 3 (Thread 0x9c8f4b70 (LWP 15591)):
#0 0xb77c6424 in __kernel_vsyscall ()
#1 0xb4c86449 in ioctl () from /lib/i386-linux-gnu/i686/cmov/libc.so.6
#2 0xb4f6cf17 in ?? () from /usr/lib/i386-linux-gnu/libasound.so.2
#3 0xb4f5b9d4 in snd_pcm_writei () from /usr/lib/i386-linux-gnu/libasound.so.2
#4 0x082da973 in AlsaSound::SoundLoop() ()
#5 0xb4de6917 in ?? () from /usr/lib/i386-linux-gnu/libstdc++.so.6
#6 0xb75eaf51 in ?? () from /usr/lib/i386-linux-gnu/libGL.so.1
�/���ccess memory at address 0xb4be920

  1. Here is my whole ~/.dolphin-emu including the SSB melee save file.

http://dl.dropbox.com/u/54863919/dolphin-emu.tgz

Here is a screenshot of where the game freezes:

http://dl.dropbox.com/u/54863919/Screenshot%20at%202012-03-12%2016%3A24%3A23.png


Related issues 1 (0 open1 closed)

Has duplicate Emulator - Emulator Issues #5126: Dolphin 3.0 - 368 get crash when go loading game Fatal Frame 4 on Macbook pro 2010Duplicate

Actions
Actions

Also available in: Atom PDF