• Login
  • Register
  • Dolphin Forums
  • Home
  • FAQ
  • Download
  • Wiki
  • Code


Dolphin, the GameCube and Wii emulator - Forums › Dolphin Emulator Discussion and Support › Support v
« Previous 1 ... 1138 1139 1140 1141 1142 ... 1198 Next »

Linux dual core crash
View New Posts | View Today's Posts

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Thread Modes
Linux dual core crash
10-14-2009, 04:05 AM (This post was last modified: 10-14-2009, 04:12 AM by skyw4lker.)
#9
skyw4lker Offline
Junior Member
**
Posts: 5
Threads: 0
Joined: Oct 2009
I really want to use the dual core mode under linux. so i took a look at the code and searched for the problem myself.
The main problem seems to be, that the X11Lib isn't thread safe.

The problem is that the Core.cpp of Dolphin starts two threads. They are called "Video Thread" and "CPU Thread".
But this ONLY happens in dual core mode, in single core mode these both threads are just ONE, so there is no conflict in accessing X11Lib.

By putting in some debug lines I found 2 locations in the code where there is active polling of XEvents with XNextEvent(...) , one in GLUtil.cpp and the other in PadSimple.cpp.


I'am pretty sure that there is a problem. I testet a few things:

I ran Zelda TP, the intro plays a few seconds, then the game crashes with either: "Dolphin: Fatal IO error 11 (Resource temporarily unavailable) on X server :0.0"
or "Dolphin: xcb_io.c:242: process_responses: Assertion `(((long) (dpy->last_request_read) - (long) (dpy->request)) <= 0)' failed."

When i comment out the polling in PadSimple: The intro works, but no keyboard input Smile

Then i created a mutex for X11Lib access in GLUtil and PadSimple, but that doesn't really work as i wished. But the game seems to crash a little bit later, i could even play now a WHOLE minute sometimes Big Grin

So i guess there must be another active thread or something that i have missed.

The funny thing is that nJoy plugin works, its using SDL, maybe its worth thinking about rewriting PadSimple using SDL instead X11Lib directly.
Find
Reply
« Next Oldest | Next Newest »


Messages In This Thread
Linux dual core crash - Brad4423 - 07-27-2009, 06:50 PM
RE: Linux dual core crash - cmccmc - 07-28-2009, 01:30 AM
RE: Linux dual core crash - THELUKESTIR - 07-28-2009, 01:31 AM
RE: Linux dual core crash - Brad4423 - 07-28-2009, 09:34 AM
RE: Linux dual core crash - skyw4lker - 10-05-2009, 05:06 AM
RE: Linux dual core crash - Dugie - 10-05-2009, 08:16 AM
RE: Linux dual core crash - boogerlad - 10-14-2009, 11:13 AM
RE: Linux dual core crash - wea0 - 10-05-2009, 08:46 AM
RE: Linux dual core crash - skyw4lker - 10-05-2009, 11:24 AM
RE: Linux dual core crash - skyw4lker - 10-14-2009, 04:05 AM
RE: Linux dual core crash - WindPower - 10-14-2009, 06:45 AM
RE: Linux dual core crash - wea0 - 10-14-2009, 08:10 AM
RE: Linux dual core crash - WindPower - 10-14-2009, 08:23 AM
RE: Linux dual core crash - skyw4lker - 10-15-2009, 03:41 AM
RE: Linux dual core crash - skyw4lker - 10-15-2009, 05:00 AM

  • View a Printable Version
  • Subscribe to this thread
Forum Jump:


Users browsing this thread: 2 Guest(s)



Powered By MyBB | Theme by Fragma

Linear Mode
Threaded Mode