libretro / vba-next

Optimized port of VBA-M to Libretro.
GNU General Public License v2.0
96 stars 88 forks source link

[Help Needed] Enable thread support in Linux (backtrace included) #137

Closed negativeExponent closed 4 years ago

negativeExponent commented 4 years ago

atm, this core supports threads on Vita. im not sure if the threads is suppose to work with non-vita since there are code branches for non-vita.

Currently, the core can compile fine with threads support. But running it will crash retroarch even before reaching retro_load_game (when loading .gba file instead of zip, you can further into CPULoadRom/Data before it crashes.

BUT if compiled with debugging, you can run the core but only shows black screen. Despite the screen being black, audio works fine in the background meaning the emulation is running but not the video rendering portion.

I have no idea about threading, and if this can work without breaking vita then great.

Maybe for a start, find/fix the cause of the crash which i failed to diagnose where. Then i can dig around the problem with video rendering and sequence, that i can probably follow.

negativeExponent commented 4 years ago

heres a backtrace when the crash happens (re: this is on Linux)

https://gist.github.com/negativeExponent/61b36ba1cc913d264a1e42298020f2ce

negativeExponent commented 4 years ago

Is there a need to push through this endeavor?

I have lost my hdd days ago. lost everthing not just unpushed projects but projects that i was working on. Not to mention this harddrive contains records of my last 20 years here on earth. I have not gone past this initial issue also. The pendemic and the strictness of the lockdown where i am from has taken a toll. I was already having financial issue even before the pendemic(cant even afford a backup hdd) and now it has just gotten worse.

at the current state, i have just lost interest.