PCSX2 for Fedora
Just did a fresh install of Fedora 26, and tried to add in pcsx2-1.5.0+git.2205-1.fc26.i686.tar.xz.  Hope I didn't screw up and forget to install something.

Two issues I have at the moment are:

1) Select Config => Controllers (PAD) => Plugin Settings...  Without a controller plugged in, the OnePad configuration windows shows up ok.  But if connect a controller before or during the OnePad configuration is visible, PCSX2 crashes.

2) Getting sound, but it sounds like noise. Not sure if I can describe it.  Maybe a very small clip of audio repeated?  Video looks normal when it happens.

Current info:
Code:
PCSX2 1.5.0-20170917165336 - compiled on Sep 21 2017
Savestate version: 0x9a0d0000

Host Machine Init:
Operating System =  Linux 4.13.4-200.fc26.x86_64 x86_64
Physical RAM     =  16059 MB
CPU name         =  AMD Ryzen 5 1600 Six-Core Processor
Vendor/Model     =  AuthenticAMD (stepping 01)
CPU speed        =  3.191 ghz (12 logical threads)
x86PType         =  Standard OEM
x86Flags         =  178bfbff 7ed8320b
x86EFlags        =  2fd3fbff

x86 Features Detected:
SSE2.. SSE3.. SSSE3.. SSE4.1.. SSE4.2.. AVX.. AVX2.. FMA
SSE4a

Installing POSIX SIGSEGV handler...
Reserving memory for recompilers...

Loading plugins from /usr/lib/PCSX2...
Bound   GS: libGSdx.so [GSdx (GCC 7.2.1 AVX2/AVX2) 1.1.0]
Bound  PAD: libonepad-legacy.so [OnePAD 20170917165336 1.3.0]
Bound SPU2: libspu2x-2.0.0.so [SPU2-X 2.0.0]
Bound CDVD: libcdvdGigaherz.so [cdvdGigaherz 20170917165336 0.11.0]
Bound  USB: libUSBnull-0.7.0.so [USBnull Driver 20170917165336 0.7.0]
Bound   FW: libFWnull-0.7.0.so [FWnull Driver 20170917165336 0.7.0]
Bound DEV9: libdev9null-0.5.0.so [DEV9null Driver 20170917165336 0.5.0]
Plugins loaded successfully.

Since both might be SDL related, here's what I have installed atm:
Code:
SDL-1.2.15-25.fc26.x86_64
SDL2-2.0.5-4.fc26.x86_64
SDL2-2.0.5-4.fc26.i686
SDL-1.2.15-25.fc26.i686
Reply

Sponsored links

(10-10-2017, 08:53 AM)ihateforums Wrote: Just did a fresh install of Fedora 26, and tried to add in pcsx2-1.5.0+git.2205-1.fc26.i686.tar.xz.  Hope I didn't screw up and forget to install something.

Two issues I have at the moment are:

1) Select Config => Controllers (PAD) => Plugin Settings...  Without a controller plugged in, the OnePad configuration windows shows up ok.  But if connect a controller before or during the OnePad configuration is visible, PCSX2 crashes.

2) Getting sound, but it sounds like noise. Not sure if I can describe it.  Maybe a very small clip of audio repeated?  Video looks normal when it happens.
I'm not 100% sure as both of your issues do not happen on my system. I'm clearing off a spare drive so I can do a fresh install of Fedora 26 and start from there. Just a couple of questions if you dont mind pasting some more info for me. If you start PCSX2 from the terminal does the output give any info that looks helpful about sound or before it crashes? What video card are you using (just curious)? Have you tried different latency settings in the spu2x config (I think mine is at 50 as the default was too high if I remember correctly)?
Those few things are all I can think of right off the top of my head. I'm also running a Ryzen system so I'm sure it's nothing with the new AMD CPUs. Once My drive finishes copying over data I'll do a fresh install and get back with you.
Reply
=== Here's some info related to the controller:


Here's a 'journalctl -f' of when I start PCSX2 with a controller already plugged in. (How can anyone read this is beyond me. lol)
Code:
Process 2963 (PCSX2) of user 1000 dumped core.

Stack trace of thread 2963:
#0  0x00000000f7effdb9 __kernel_vsyscall (linux-gate.so.1)
#1  0x00000000f6793212 raise (libpthread.so.0)
#2  0x000000000838768a _Z6pxTrapv (PCSX2)
#3  0x000000000839395c _ZL24SysPageFaultSignalFilteriP9siginfo_tPv (PCSX2)
#4  0x00000000f7effde0 __kernel_rt_sigreturn (linux-gate.so.1)
#5  0x00000000f665d593 strlen (libc.so.6)
#6  0x00000000f07bce7c _ZN12JoystickInfo4InitEi (libonepad-legacy.so)
#7  0x00000000f07bd0d0 _ZN12JoystickInfo18EnumerateJoysticksERSt6vectorIP7GamePadSaIS2_EE (libonepad-legacy.so)
#8  0x00000000f07c41f3 _Z13DisplayDialogv (libonepad-legacy.so)
#9  0x00000000080b340c _ZN14SysCorePlugins9ConfigureE13PluginsEnum_t (PCSX2)
#10 0x000000000825b873 _ZN12MainEmuFrame23Menu_ConfigPlugin_ClickER14wxCommandEvent (PCSX2)
#11 0x00000000081e7d16 _ZN8Pcsx2App11HandleEventEP12wxEvtHandlerMS0_FvR7wxEventES3_ (PCSX2)
#12 0x00000000f7c7d798 _ZNK16wxAppConsoleBase16CallEventHandlerEP12wxEvtHandlerR14wxEventFunctorR7wxEvent (libwx_baseu-3.0.so.0)
#13 0x00000000f7e39ba4 _ZN12wxEvtHandler23ProcessEventIfMatchesIdERK21wxEventTableEntryBasePS_R7wxEvent (libwx_baseu-3.0.so.0)
#14 0x00000000f7e3a0d8 _ZN12wxEvtHandler23SearchDynamicEventTableER7wxEvent (libwx_baseu-3.0.so.0)
#15 0x00000000f7e3a191 _ZN12wxEvtHandler11TryHereOnlyER7wxEvent (libwx_baseu-3.0.so.0)
#16 0x00000000f7e3a3e9 _ZN12wxEvtHandler12ProcessEventER7wxEvent (libwx_baseu-3.0.so.0)
#17 0x00000000f7e39f4e _ZN12wxEvtHandler10DoTryChainER7wxEvent (libwx_baseu-3.0.so.0)
#18 0x00000000f7e3a284 _ZN12wxEvtHandler19ProcessEventLocallyER7wxEvent (libwx_baseu-3.0.so.0)
#19 0x00000000f7e3a2f5 _ZN12wxEvtHandler12ProcessEventER7wxEvent (libwx_baseu-3.0.so.0)
#20 0x00000000f7a7c266 _ZN12wxWindowBase8TryAfterER7wxEvent (libwx_gtk3u_core-3.0.so.0)
#21 0x00000000f7e39fbe _ZN12wxEvtHandler18SafelyProcessEventER7wxEvent (libwx_baseu-3.0.so.0)
#22 0x00000000f7a7ddc6 _ZNK12wxWindowBase17HandleWindowEventER7wxEvent (libwx_gtk3u_core-3.0.so.0)
#23 0x00000000f7a214b3 _ZN10wxMenuBase9SendEventEii (libwx_gtk3u_core-3.0.so.0)
#24 0x00000000f78e50de menuitem_activate (libwx_gtk3u_core-3.0.so.0)
#25 0x00000000f73dc9b2 g_closure_invoke (libgobject-2.0.so.0)
#26 0x00000000f73f0ff6 signal_emit_unlocked_R (libgobject-2.0.so.0)
#27 0x00000000f73fa134 g_signal_emit_valist (libgobject-2.0.so.0)
#28 0x00000000f73fa993 g_signal_emit (libgobject-2.0.so.0)
#29 0x00000000f6db1e2d gtk_widget_activate (libgtk-3.so.0)
#30 0x00000000f6c4f9d1 gtk_menu_shell_activate_item (libgtk-3.so.0)
#31 0x00000000f6c4fd87 gtk_menu_shell_button_release (libgtk-3.so.0)
#32 0x00000000f6c2fd11 _gtk_marshal_BOOLEAN__BOXEDv (libgtk-3.so.0)
#33 0x00000000f73dcc1a _g_closure_invoke_va (libgobject-2.0.so.0)
#34 0x00000000f73f9e78 g_signal_emit_valist (libgobject-2.0.so.0)
#35 0x00000000f73fa993 g_signal_emit (libgobject-2.0.so.0)
#36 0x00000000f6daf415 gtk_widget_event_internal (libgtk-3.so.0)
#37 0x00000000f6c2c0fd propagate_event (libgtk-3.so.0)
#38 0x00000000f6c2e865 gtk_main_do_event (libgtk-3.so.0)
#39 0x00000000f714f40f _gdk_event_emit (libgdk-3.so.0)
#40 0x00000000f71890b8 gdk_event_source_dispatch (libgdk-3.so.0)
#41 0x00000000f746ffc9 g_main_context_dispatch (libglib-2.0.so.0)
#42 0x00000000f74703f0 g_main_context_iterate.isra.24 (libglib-2.0.so.0)
#43 0x00000000f74707a1 g_main_loop_run (libglib-2.0.so.0)
#44 0x00000000f6c2d6fd gtk_main (libgtk-3.so.0)
#45 0x00000000f7857fa5 _ZN14wxGUIEventLoop5DoRunEv (libwx_gtk3u_core-3.0.so.0)
#46 0x00000000f7cc8402 _ZN15wxEventLoopBase3RunEv (libwx_baseu-3.0.so.0)
#47 0x00000000f7c84e27 _ZN16wxAppConsoleBase8MainLoopEv (libwx_baseu-3.0.so.0)
#48 0x00000000f7924fef _ZN9wxAppBase5OnRunEv (libwx_gtk3u_core-3.0.so.0)
#49 0x00000000f7d23fb9 _Z7wxEntryRiPPw (libwx_baseu-3.0.so.0)
#50 0x00000000f7d24de6 _Z7wxEntryRiPPc (libwx_baseu-3.0.so.0)
#51 0x000000000806803f main (PCSX2)
#52 0x00000000f65ef2c3 __libc_start_main (libc.so.6)
#53 0x000000000806c662 _start (PCSX2)

Here's a 'journalctl -f' of when I start PCSX2 and waiting till OnePad configuration window is open, then plugging in controller:
Code:
Process 3158 (PCSX2) of user 1000 dumped core.

Stack trace of thread 3158:
#0  0x00000000f7f99db9 __kernel_vsyscall (linux-gate.so.1)
#1  0x00000000f682d212 raise (libpthread.so.0)
#2  0x000000000838768a _Z6pxTrapv (PCSX2)
#3  0x000000000839395c _ZL24SysPageFaultSignalFilteriP9siginfo_tPv (PCSX2)
#4  0x00000000f7f99de0 __kernel_rt_sigreturn (linux-gate.so.1)
#5  0x00000000f622ed64 n/a (libSDL2-2.0.so.0)

Oh, and I do get 'Assertion Failure - PCSX2' window pop up when loading up BIOS or Game with a controller already connected.
Code:
/home/jeremy/rpmbuild/BUILD/pcsx2-1.5.0-2205/common/src/Utilities/Linux/LnxHostSys.cpp(70) : assertion failed:
    Function:  void SysPageFaultSignalFilter(int, siginfo_t*, void*)
    Thread:    EE Core
    Condition: false
    Message:   Unhandled page fault @ 0x00000000

Stacktrace:
[00] SysPageFaultSignalFilter(int, siginfo_t*, void*)
[01] __kernel_rt_sigreturn                       
[02] strlen                                      
[03] 0x0xf116be7c                                
[04] 0x0xf116c0d0                                
[05] PADopen                                     
[06] SysCorePlugins::OpenPlugin_PAD()            
[07] SysCorePlugins::Open(PluginsEnum_t)         
[08] SysCorePlugins::Open()                      
[09] AppCorePlugins::Open()                      
[10] AppCoreThread::OnResumeInThread(bool)       
[11] SysThreadBase::StateCheckInThread()         
[12] SysCoreThread::StateCheckInThread()         
[13] SysCoreThread::ExecuteTaskInThread()        
[14] Threading::pxThread::_try_virtual_invoke(void (Threading::pxThread::*)())
[15] Threading::pxThread::_internal_execute()    
[16] Threading::pxThread::_internal_callback(void*)
[17] 0x0xf67f92d9                                
[18] clone

Oh and graphics card I'm using: GeForce GTX 1070.

=== Info about the sound:

I've tried changing just about everything in SPU2-X Config. I'm either getting noise or nothing at all.  Changing the Latency or the 3 options in the advanced button didn't seem to help any. 

I did 'Enable Debug Options' and turned everything on in the Debug... window. I compared the console window with another system I have (Running PCSX2 1.4.0)  Here's some messages that popped up in this build, and not on my old system with 1.4.0:

Code:
Reverb Parameter Update for Core 0: // Got these for Core 1: also
----------------------------------------------------------
    IN_COEF_L, IN_COEF_R        0x00000000, 0x00000000
    APF1_SIZE, APF2_SIZE          0x00000000, 0x00000000
    APF1_VOL, APF2_VOL              0x00000000, 0x00000000
    COMB1_VOL                  0x00000000
    COMB2_VOL                  0x00000000
    COMB3_VOL                  0x00000000
    COMB4_VOL                  0x00000000
    COMB1_L_SRC, COMB1_R_SRC      0x00000000, 0x00000000
    COMB2_L_SRC, COMB2_R_SRC      0x00000000, 0x00000000
    COMB3_L_SRC, COMB3_R_SRC      0x00000000, 0x00000000
    COMB4_L_SRC, COMB4_R_SRC      0x00000000, 0x00000000
    SAME_L_SRC, SAME_R_SRC      0x00000000, 0x00000000
    DIFF_L_SRC, DIFF_R_SRC      0x00000000, 0x00000000
    SAME_L_DST, SAME_R_DST    0x00000000, 0x00000000
    DIFF_L_DST, DIFF_R_DST    0x00000000, 0x00000000
    IIR_VOL, WALL_VOL         0x00000000, 0x00000000
    APF1_L_DST                 0x00000000
    APF1_R_DST                 0x00000000
    APF2_L_DST                 0x00000000
    APF2_R_DST                 0x00000000
    EffectsBufferSize           0x8
---------------------------------------------

 * SPU2 > TimeUpdate Sanity Check (Tick Delta: 5164389) (PS2 Ticks: 12)


buffers:    0 ms (  0%), tempo: 0.493140, comp: 1.953, iters: 606, (N-IPS:750 -> avg:50, minokc:50, div:100) reset:3
// odd that it's 0 ms?
Reply
For the crash, I saw that you use SDL2. You must be sure that wxWidget is built with SDL2 support. Fedora's wxWidget used to be SDL1. I don't know if compilation was updated.
Reply
ihateforums, as of now I am getting the same crash you are with onepad and gamepads. It didn't use to crash as I remember playing Silent Hill 2 with my PS4 controller after making the build. I even tried rebuilding the RPM from current git source a couple of days ago in the case of Fedora changing something in an update. It didn't help. 

Gregory, as far as I know I built PCSX2 and onepad using SDL not SDL2.  I had to comment out the SDL2 onepad portion in SelectPcsx2Plugins.cmake to get it to use legacy onepad. It wasn't detecting properly to build the legacy version. I'm not sure why it's looking to libSDL2-2.0.so.0 in ihateforums's stack trace. And yup, fedora is still on SDL 1 for wx. It seems like they are never going to update to SDL2.

As for sound it seems to be working for me, both FMV audio and in game. I'm really not sure what is going on there.

Any further information or insight would be much appreciated as I'd really like to figure this out and get my RPMs back on track.
Reply
There is a cmake flag to select SDL1. Did you use it ? To be sure, could you check the output of "ldd bin/libonepad-legacy.so | grep -i SDL". Could you post a backtrace of the crash too.

Quote:And yup, fedora is still on SDL 1 for wx. It seems like they are never going to update to SDL2.
The trick is to ask them to update the SDL version. Or to drop it. Debian/Ubuntu doesn't build wx with SDL support. So far, no free application seem to use it. Anyway, I doubt they check the PCSX2 forum to know about this detail Wink
Reply
Ok thank you both for the info on the controller. Glad to know it wasn't just me!

  As for the sound issue.  I posted an attachment of what I'm hearing. It's just a 7 second clip of the initial startup of the BIOS.

  Hardware: It's happening with both the integrated on-board sound on the motherboard, and with my USB headset. Since other applications work fine, don't think it's a hardware issue.

  PulseAudio volume control shows in the Applications section that PCSX2 is using: 'Simple DirectMedia Layer'  so I compared that with other software I had installed, and I have a few that matched and they worked fine.

  After installing alsa-plugins-pulseaudio.i686, I tried PortAudio.  It's playing the sounds normally without the issues that SDL Audio has. Would like to get SDL Audio working though because it did sound better on my old system.    Hope I didn't install something that somehow broke it.


Attached Files
.mp3   bios-startup.mp3 (Size: 171,82 KB / Downloads: 425)
Reply
I've finally got some time to get back to my RPMs issues. I've been busy driving taxi for the kids. I'm going to try a compile for Fedora 27 today and see if the issues still exist in it.

-edit- Not coming as a surprise but compiling under Fedora 27 didn't have any impact on the problems with the game pad. Guess its time for a Fedora feature request to remove the SDL support from wx. or update to SDL2.
Reply
Yes, please ask Fedora improvement Smile
Reply
Quote: Guess its time for a Fedora feature request to remove the SDL support from wx. or update to SDL2.

Fedora is already using wx with SDL2 support (since Fedora 27 I think, https://src.fedoraproject.org/rpms/wxGTK...nch=master). You can upgrade to F27 pretty easily Smile

Apart from that, I'd recommend you installing PCSX2 to Fedora via flatpak, https://github.com/flathub/net.pcsx2.PCSX2 , it is just the 1.4.0 for now, but upgrading to git snapshot should be pretty straightforward to do it yourself (just look to the json file in that flatpak repo).
Reply




Users browsing this thread: 2 Guest(s)