You are not logged in.

#1 2016-08-08 09:58:46

Dummweilbaum
Member
Registered: 2016-08-08
Posts: 7

PCSX2 terminates when loading the "ZZ OGL PG" plugin

I'm trying to run FF X on PCSX2 1.4.0 with ZZ OGL PG 0.4.0 because my graphics card doesn't support OpenGL for GSdx. When loading the NullDriver, the emulation works, so ZZ must be the cause of the issue.

I'm using Arch on a laptop with
CPU: AMD Turion 64 x2 TL-52
graphics: ATI Mobility Radeon X1300 HM
RAM: 2x 1GB DDR2

Since PCSX2 directly terminates when starting the emulation, I don't even have an error log at hand.


Thank you in advance

Offline

#2 2016-08-08 12:48:28

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,645

Re: PCSX2 terminates when loading the "ZZ OGL PG" plugin

This system will not, in any shape or form, be able to satisfactorily run Playstation 2 emulation.

That said, a crash is a crash and usually shouldn't happen even on the worst of systems (unless resources are actually starved out so that e.g. the memory killer jumps in or similar), can you get a coredump from coredumpctl and/or provide a backtrace from a run through GDB?

Offline

#3 2016-08-08 14:04:31

Dummweilbaum
Member
Registered: 2016-08-08
Posts: 7

Re: PCSX2 terminates when loading the "ZZ OGL PG" plugin

This is the first time I'm doing this, so there might be some mistakes in what I've done to retrieve these, sorry for possibly posting wrong/unnecessary info.
No spam intended!

(gdb) run
Starting program: /usr/bin/PCSX2 pcsx2
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/usr/lib/libthread_db.so.1".
15:40:30: Warning: Mismatch between the program and library build versions detected.
The library used 3.0 (wchar_t,compiler with C++ ABI 1009,wx containers,compatible with 2.8),
and your program used 3.0 (wchar_t,compiler with C++ ABI 1010,wx containers,compatible with 2.8).
Interface is initializing.  Entering Pcsx2App::OnInit!
Applying operating system default language...
Command line parsing...
Command line parsed!
[New Thread 0xf403bb40 (LWP 11926)]
Creating UserLocalData folder: /root/.config/PCSX2
[New Thread 0xf35f6b40 (LWP 11934)]
[New Thread 0xf2bffb40 (LWP 11935)]
[New Thread 0xf140fb40 (LWP 12401)]
[New Thread 0xf0c0eb40 (LWP 12402)]
[New Thread 0xf040db40 (LWP 12403)]
[New Thread 0xefc0cb40 (LWP 12404)]
[Thread 0xf040db40 (LWP 12403) exited]
[Thread 0xf0c0eb40 (LWP 12402) exited]
[New Thread 0xf040db40 (LWP 12406)]
[Thread 0xf040db40 (LWP 12406) exited]
[New Thread 0xf040db40 (LWP 12416)]
[Thread 0xefc0cb40 (LWP 12404) exited]
[New Thread 0xefc0cb40 (LWP 12420)]
[Thread 0xf040db40 (LWP 12416) exited]
[New Thread 0xf040db40 (LWP 12421)]
[New Thread 0xf0c0eb40 (LWP 12422)]
[New Thread 0xef40bb40 (LWP 12423)]
[Thread 0xf0c0eb40 (LWP 12422) exited]
[Thread 0xef40bb40 (LWP 12423) exited]
[Thread 0xf040db40 (LWP 12421) exited]
[New Thread 0xf040db40 (LWP 12436)]
[New Thread 0xef40bb40 (LWP 12437)]
[New Thread 0xf0c0eb40 (LWP 12439)]
[New Thread 0xee3c9b40 (LWP 12440)]
[Thread 0xef40bb40 (LWP 12437) exited]
[New Thread 0xef40bb40 (LWP 12442)]

Thread 1 "PCSX2" received signal SIGSEGV, Segmentation fault.
0xf7de9936 in wxStringHash::stringHash(wchar_t const*) () from /usr/lib32/libwx_baseu-3.0.so.0
(gdb) bt
#0  0xf7de9936 in wxStringHash::stringHash(wchar_t const*) () from /usr/lib32/libwx_baseu-3.0.so.0
#1  0xf7e5771b in ?? () from /usr/lib32/libwx_baseu-3.0.so.0
#2  0xf7de9b19 in _wxHashTableBase2::CopyHashTable(_wxHashTable_NodeBase**, unsigned int, _wxHashTableBase2*, _wxHashTable_NodeBase**, unsigned long (*)(_wxHashTableBase2*, _wxHashTable_NodeBase*), _wxHashTable_NodeBase* (*)(_wxHashTable_NodeBase*)) () from /usr/lib32/libwx_baseu-3.0.so.0
#3  0xf7e4bcdb in wxTranslations::GetUntranslatedString(wxString const&) () from /usr/lib32/libwx_baseu-3.0.so.0
#4  0x0837cb4f in ?? ()
#5  0x0824b69f in ?? ()
#6  0x081b971d in ?? ()
#7  0x081b9a17 in ?? ()
#8  0x081b9010 in ?? ()
#9  0x081b9049 in ?? ()
#10 0x083888fa in ?? ()
#11 0x081d0375 in ?? ()
#12 0xf7d4ffbf in wxAppConsoleBase::CallEventHandler(wxEvtHandler*, wxEventFunctor&, wxEvent&) const () from /usr/lib32/libwx_baseu-3.0.so.0
#13 0xf7eeb1f5 in wxEvtHandler::ProcessEventIfMatchesId(wxEventTableEntryBase const&, wxEvtHandler*, wxEvent&) () from /usr/lib32/libwx_baseu-3.0.so.0
#14 0xf7eeb6b0 in wxEvtHandler::SearchDynamicEventTable(wxEvent&) () from /usr/lib32/libwx_baseu-3.0.so.0
#15 0xf7eeb74e in wxEvtHandler::TryHereOnly(wxEvent&) () from /usr/lib32/libwx_baseu-3.0.so.0
#16 0xf7eeb81a in wxEvtHandler::ProcessEventLocally(wxEvent&) () from /usr/lib32/libwx_baseu-3.0.so.0
#17 0xf7eeb883 in wxEvtHandler::ProcessEvent(wxEvent&) () from /usr/lib32/libwx_baseu-3.0.so.0
#18 0xf7eec437 in wxEvtHandler::ProcessPendingEvents() () from /usr/lib32/libwx_baseu-3.0.so.0
#19 0xf7d52260 in wxAppConsoleBase::ProcessPendingEvents() () from /usr/lib32/libwx_baseu-3.0.so.0
#20 0xf78b4cfc in wxApp::DoIdle() () from /usr/lib32/libwx_gtk2u_core-3.0.so.0
#21 0xf78b4e1c in ?? () from /usr/lib32/libwx_gtk2u_core-3.0.so.0
#22 0xf68fd9fb in g_main_context_dispatch () from /usr/lib32/libglib-2.0.so.0
#23 0xf68fdde9 in ?? () from /usr/lib32/libglib-2.0.so.0
#24 0xf68fe199 in g_main_loop_run () from /usr/lib32/libglib-2.0.so.0
#25 0xf70d08b5 in gtk_main () from /usr/lib32/libgtk-x11-2.0.so.0
#26 0xf78d6095 in wxGUIEventLoop::DoRun() () from /usr/lib32/libwx_gtk2u_core-3.0.so.0
#27 0xf7d95829 in wxEventLoopBase::Run() () from /usr/lib32/libwx_baseu-3.0.so.0
#28 0xf7d572bf in wxAppConsoleBase::MainLoop() () from /usr/lib32/libwx_baseu-3.0.so.0
#29 0xf7d4fa00 in wxAppConsoleBase::OnRun() () from /usr/lib32/libwx_baseu-3.0.so.0
#30 0xf79b42df in wxAppBase::OnRun() () from /usr/lib32/libwx_gtk2u_core-3.0.so.0
#31 0xf7deb4c8 in wxEntry(int&, wchar_t**) () from /usr/lib32/libwx_baseu-3.0.so.0
#32 0xf7deb593 in wxEntry(int&, char**) () from /usr/lib32/libwx_baseu-3.0.so.0
#33 0x081cdebf in ?? ()
#34 0xf6bdf196 in __libc_start_main () from /usr/lib32/libc.so.6
#35 0x08066921 in ?? ()
(gdb) generate-core-file
warning: target file /proc/11921/cmdline contained unexpected null characters
Saved corefile core.11921



$ sudo coredumpctl gdb
           PID: 12950 (PCSX2)
           UID: 1000 ()
           GID: 1000 ()
        Signal: 11 (SEGV)
     Timestamp: Mon 2016-08-08 15:59:34 CEST (32s ago)
  Command Line: PCSX2
    Executable: /usr/bin/PCSX2
Control Group: /user.slice/user-1000.slice/session-c1.scope
          Unit: session-c1.scope
         Slice: user-1000.slice
       Session: c1
     Owner UID: 1000 ()
       Boot ID:
    Machine ID:
      Hostname:
      Coredump: /var/lib/systemd/coredump/core.PCSX2.1000.806fd315f5d4451faac60e19ad6fd937.12950.1470664774000000000000.lz4
       Message: Process 12950 (PCSX2) of user 1000 dumped core.
               
                Stack trace of thread 12950:
                #0  0x000000000823f12c n/a (PCSX2)
                #1  0x000000000823f25a n/a (PCSX2)
                #2  0x00000000081d0375 n/a (PCSX2)
                #3  0x00000000f753cfbf _ZNK16wxAppConsoleBase16CallEventHandlerEP12wxEvtHandlerR14wxEventFunctorR7wxEvent (libwx_baseu-3.0.so.0)
                #4  0x00000000f76d81f5 _ZN12wxEvtHandler23ProcessEventIfMatchesIdERK21wxEventTableEntryBasePS_R7wxEvent (libwx_baseu-3.0.so.0)
                #5  0x00000000f76d86b0 _ZN12wxEvtHandler23SearchDynamicEventTableER7wxEvent (libwx_baseu-3.0.so.0)
                #6  0x00000000f76d874e _ZN12wxEvtHandler11TryHereOnlyER7wxEvent (libwx_baseu-3.0.so.0)
                #7  0x00000000f76d881a _ZN12wxEvtHandler19ProcessEventLocallyER7wxEvent (libwx_baseu-3.0.so.0)
                #8  0x00000000f76d8883 _ZN12wxEvtHandler12ProcessEventER7wxEvent (libwx_baseu-3.0.so.0)
                #9  0x00000000f76d85af _ZN12wxEvtHandler18SafelyProcessEventER7wxEvent (libwx_baseu-3.0.so.0)
                #10 0x00000000f72f5fef _ZNK12wxWindowBase17HandleWindowEventER7wxEvent (libwx_gtk2u_core-3.0.so.0)
                #11 0x00000000f70eb5fc _ZNK8wxWindow15GTKProcessEventER7wxEvent (libwx_gtk2u_core-3.0.so.0)
                #12 0x00000000f70f3734 n/a (libwx_gtk2u_core-3.0.so.0)
                #13 0x00000000f68c031b n/a (libgtk-x11-2.0.so.0)
                #14 0x00000000f6d57c3b g_closure_invoke (libgobject-2.0.so.0)
                #15 0x00000000f6d6a00e n/a (libgobject-2.0.so.0)
                #16 0x00000000f6d727ac g_signal_emit_valist (libgobject-2.0.so.0)
                #17 0x00000000f6d72e85 g_signal_emit (libgobject-2.0.so.0)
                #18 0x00000000f69dee44 n/a (libgtk-x11-2.0.so.0)
                #19 0x00000000f68be6b9 gtk_propagate_event (libgtk-x11-2.0.so.0)
                #20 0x00000000f68beb0d gtk_main_do_event (libgtk-x11-2.0.so.0)
                #21 0x00000000f70c34e7 n/a (libwx_gtk2u_core-3.0.so.0)
                #22 0x00000000f6cde4b9 n/a (libgdk-x11-2.0.so.0)
                #23 0x00000000f60eab49 g_main_context_dispatch (libglib-2.0.so.0)
                #24 0x00000000f60eade9 n/a (libglib-2.0.so.0)
                #25 0x00000000f60eaeb4 g_main_context_iteration (libglib-2.0.so.0)
                #26 0x00000000f68bdb29 gtk_main_iteration (libgtk-x11-2.0.so.0)
                #27 0x00000000f70c3315 _ZN14wxGUIEventLoop8YieldForEl (libwx_gtk2u_core-3.0.so.0)
                #28 0x00000000f75828ec _ZN15wxEventLoopBase5YieldEb (libwx_baseu-3.0.so.0)
                #29 0x00000000f7544380 _ZN16wxAppConsoleBase5YieldEb (libwx_baseu-3.0.so.0)
                #30 0x0000000008380fe7 n/a (PCSX2)
                #31 0x0000000008370509 n/a (PCSX2)
                #32 0x000000000836fc15 n/a (PCSX2)
                #33 0x00000000f77c5d30 __kernel_rt_sigreturn (linux-gate.so.1)
                #34 0x000000000823fe23 n/a (PCSX2)
                #35 0x00000000081d0375 n/a (PCSX2)
                #36 0x00000000f753cfbf _ZNK16wxAppConsoleBase16CallEventHandlerEP12wxEvtHandlerR14wxEventFunctorR7wxEvent (libwx_baseu-3.0.so.0)
                #37 0x00000000f76d81f5 _ZN12wxEvtHandler23ProcessEventIfMatchesIdERK21wxEventTableEntryBasePS_R7wxEvent (libwx_baseu-3.0.so.0)
                #38 0x00000000f76d86b0 _ZN12wxEvtHandler23SearchDynamicEventTableER7wxEvent (libwx_baseu-3.0.so.0)
                #39 0x00000000f76d874e _ZN12wxEvtHandler11TryHereOnlyER7wxEvent (libwx_baseu-3.0.so.0)
                #40 0x00000000f76d881a _ZN12wxEvtHandler19ProcessEventLocallyER7wxEvent (libwx_baseu-3.0.so.0)
                #41 0x00000000f76d8883 _ZN12wxEvtHandler12ProcessEventER7wxEvent (libwx_baseu-3.0.so.0)
                #42 0x00000000f76d85af _ZN12wxEvtHandler18SafelyProcessEventER7wxEvent (libwx_baseu-3.0.so.0)
                #43 0x00000000f763600e _ZN11wxTimerImpl9SendEventEv (libwx_baseu-3.0.so.0)
                #44 0x00000000f7635abc _ZN7wxTimer6NotifyEv (libwx_baseu-3.0.so.0)
                #45 0x00000000f70e29ef n/a (libwx_gtk2u_core-3.0.so.0)
                #46 0x00000000f60eb5f1 n/a (libglib-2.0.so.0)
                #47 0x00000000f60ea9fb g_main_context_dispatch (libglib-2.0.so.0)
                #48 0x00000000f60eade9 n/a (libglib-2.0.so.0)
                #49 0x00000000f60eb199 g_main_loop_run (libglib-2.0.so.0)
                #50 0x00000000f68bd8b5 gtk_main (libgtk-x11-2.0.so.0)
                #51 0x00000000f70c3095 _ZN14wxGUIEventLoop5DoRunEv (libwx_gtk2u_core-3.0.so.0)
                #52 0x00000000f7582829 _ZN15wxEventLoopBase3RunEv (libwx_baseu-3.0.so.0)
                #53 0x00000000f75442bf _ZN16wxAppConsoleBase8MainLoopEv (libwx_baseu-3.0.so.0)
                #54 0x00000000f753ca00 _ZN16wxAppConsoleBase5OnRunEv (libwx_baseu-3.0.so.0)
                #55 0x00000000f71a12df _ZN9wxAppBase5OnRunEv (libwx_gtk2u_core-3.0.so.0)
                #56 0x00000000f75d84c8 _Z7wxEntryRiPPw (libwx_baseu-3.0.so.0)
                #57 0x00000000f75d8593 _Z7wxEntryRiPPc (libwx_baseu-3.0.so.0)
                #58 0x00000000081cdebf n/a (PCSX2)
                #59 0x00000000f63cc196 __libc_start_main (libc.so.6)
                #60 0x0000000008066921 n/a (PCSX2)

GNU gdb (GDB) 7.11.1
Copyright (C) 2016 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-pc-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from /usr/bin/PCSX2...(no debugging symbols found)...done.
[New LWP 12950]
[New LWP 12954]
[New LWP 12955]
[New LWP 12956]
[New LWP 12969]
[New LWP 12975]
[New LWP 12976]
[New LWP 12978]

warning: Could not load shared library symbols for linux-gate.so.1.
Do you need "set solib-search-path" or "set sysroot"?
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/usr/lib/libthread_db.so.1".
Core was generated by `PCSX2'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0  0x0823f12c in ?? ()
[Current thread is 1 (Thread 0xf56bf980 (LWP 12950))]

Offline

#4 2016-08-09 14:32:10

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,645

Re: PCSX2 terminates when loading the "ZZ OGL PG" plugin

Use [ code ] tags when pasting command output.

There's nothing immediately obvious, you could try rebuilding PCSX2 with debug symbols. I also remember zzogl being kind of unstable anyway and often dependant on having turned just the right knobs in the settings. I might do some tests later when I'm on my own machine, not on my arch currently

Offline

#5 2016-08-09 14:40:44

Gusar
Member
Registered: 2009-08-25
Posts: 3,605

Re: PCSX2 terminates when loading the "ZZ OGL PG" plugin

If you're using the Arch package for PCSX2, it compiles the ZZogl plugin in GLSL mode, which I don't think has ever worked. You need to compile the plugin in CG mode. To do that, remove the lines containing -DGLSL_API='TRUE' from the PKGBUILD and recompile the package.

Offline

#6 2016-08-09 22:11:57

Dummweilbaum
Member
Registered: 2016-08-08
Posts: 7

Re: PCSX2 terminates when loading the "ZZ OGL PG" plugin

Well I tryied to compile pcsx2, removing said flag, and this is what I got:

 [ 99%] Building CXX object plugins/zzogl-pg/opengl/ZeroGSShaders/CMakeFiles/zzogl-shader.dir/zpipe.cpp.o
[100%] Linking CXX executable zzogl-shader
/bin/sh: zzogl-shader: command not found
make[2]: *** [plugins/zzogl-pg/opengl/ZeroGSShaders/CMakeFiles/zzogl-shader.dir/build.make:127: plugins/zzogl-pg/opengl/ZeroGSShaders/zzogl-shader] Error 127
make[2]: *** Deleting file 'plugins/zzogl-pg/opengl/ZeroGSShaders/zzogl-shader'
make[1]: *** [CMakeFiles/Makefile2:1214: plugins/zzogl-pg/opengl/ZeroGSShaders/CMakeFiles/zzogl-shader.dir/all] Error 2
make: *** [Makefile:128: all] Error 2
==> ERROR: A failure occurred in build().
    Aborting... 

Any ideas on what I did wrong? I havn't much experience with manually compiling packages, so maybe I forgot adding an important flag to the PKGBUILD?

Offline

#7 2016-12-17 14:36:21

vietpham
Member
Registered: 2016-12-17
Posts: 3

Re: PCSX2 terminates when loading the "ZZ OGL PG" plugin

Hi Dummweilbaum,

I've got the same error.

The problem is in this file plugins/zzogl-pg/opengl/ZeroGSShaders/CMakeFiles/zzogl-shader.dir/build.make line 127:

cd /home/viet/abs/pcsx2/src/pcsx2-1.4.0/plugins/zzogl-pg/opengl && zzogl-shader ps2hw.fx /home/viet/abs/pcsx2/src/pcsx2-1.4.0/build/plugins/zzogl-pg/opengl/ZeroGSShaders/ps2hw_cmake.dat

You could try fixing it by creating a symlink for zzogl-shader, it's fine if zzogl-shader isn't actually exist yet:

ln -s ${HOME}/abs/pcsx2/src/pcsx2-1.4.0/build/plugins/zzogl-pg/opengl/ZeroGSShaders/zzogl-shader ${HOME}/bin/zzogl-shader

${HOME}/bin need to be in your ${PATH}, or you can use /usr/local/bin as well.

Good luck.

Offline

Board footer

Powered by FluxBB