Coder Social home page Coder Social logo

libretro-mirrors / ppsspp Goto Github PK

View Code? Open in Web Editor NEW

This project forked from hrydgard/ppsspp

11.0 11.0 3.0 101.06 MB

A PSP emulator for Android, Windows, Mac and Linux, written in C++. Want to contribute? Join us in #ppsspp on freenode (IRC) or just send pull requests / issues. For discussion use the forums on ppsspp.org.

Home Page: https://www.ppsspp.org

License: Other

Shell 0.06% Python 0.18% CMake 0.42% C++ 67.52% C 30.41% Objective-C 0.12% Objective-C++ 0.19% Makefile 0.21% Assembly 0.06% Batchfile 0.04% Java 0.38% GLSL 0.17% Lua 0.11% DIGITAL Command Language 0.09% Inno Setup 0.02% Perl 0.01%

ppsspp's People

Contributors

aquanull avatar bigpet avatar bollu avatar ced2911 avatar daniel-dressler avatar daniel229 avatar danyalzia avatar hrydgard avatar inactive123 avatar kaienfr avatar kentuckycompass avatar kingcom avatar lioncash avatar lunamoo avatar makotech222 avatar mgaver avatar neobrain avatar oioitff avatar orphis avatar peterth avatar raven02 avatar shenweip avatar sum2012 avatar thedax avatar tmaul avatar unknownbrackets avatar vnctdj avatar xebra avatar xele02 avatar xsacha avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

ppsspp's Issues

windows buildbot build failure.

The libretro windows buildbot fails during the linking stage.

Can someone with windows take a look at this?

LINK : warning LNK4044: unrecognized option '/L../ffmpeg/Windows/x86_64/lib'; ignored
LINK : warning LNK4044: unrecognized option '/lpthread'; ignored
   Creating library ppsspp_libretro.lib and object ppsspp_libretro.exp
ShaderTranslation.o : error LNK2001: unresolved external symbol "public: virtual class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > __cdecl spirv_cross::CompilerHLSL::compile(void)" (?compile@CompilerHLSL@spirv_cross@@UEAA?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@XZ)
ShaderTranslation.o : error LNK2001: unresolved external symbol "private: virtual class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > __cdecl spirv_cross::CompilerHLSL::type_to_glsl(struct spirv_cross::SPIRType const &)" (?type_to_glsl@CompilerHLSL@spirv_cross@@EEAA?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@AEBUSPIRType@2@@Z)
ShaderTranslation.o : error LNK2001: unresolved external symbol "private: virtual void __cdecl spirv_cross::CompilerHLSL::emit_function_prototype(struct spirv_cross::SPIRFunction &,unsigned __int64)" (?emit_function_prototype@CompilerHLSL@spirv_cross@@EEAAXAEAUSPIRFunction@2@_K@Z)
ShaderTranslation.o : error LNK2001: unresolved external symbol "private: virtual void __cdecl spirv_cross::CompilerHLSL::emit_header(void)" (?emit_header@CompilerHLSL@spirv_cross@@EEAAXXZ)
ShaderTranslation.o : error LNK2001: unresolved external symbol "private: virtual void __cdecl spirv_cross::CompilerHLSL::emit_texture_op(struct spirv_cross::Instruction const &)" (?emit_texture_op@CompilerHLSL@spirv_cross@@EEAAXAEBUInstruction@2@@Z)
ShaderTranslation.o : error LNK2001: unresolved external symbol "private: virtual void __cdecl spirv_cross::CompilerHLSL::emit_instruction(struct spirv_cross::Instruction const &)" (?emit_instruction@CompilerHLSL@spirv_cross@@EEAAXAEBUInstruction@2@@Z)
ShaderTranslation.o : error LNK2001: unresolved external symbol "private: virtual void __cdecl spirv_cross::CompilerHLSL::emit_glsl_op(unsigned int,unsigned int,unsigned int,unsigned int const *,unsigned int)" (?emit_glsl_op@CompilerHLSL@spirv_cross@@EEAAXIIIPEBII@Z)
ShaderTranslation.o : error LNK2001: unresolved external symbol "private: virtual void __cdecl spirv_cross::CompilerHLSL::emit_buffer_block(struct spirv_cross::SPIRVariable const &)" (?emit_buffer_block@CompilerHLSL@spirv_cross@@EEAAXAEBUSPIRVariable@2@@Z)
ShaderTranslation.o : error LNK2001: unresolved external symbol "private: virtual void __cdecl spirv_cross::CompilerHLSL::emit_push_constant_block(struct spirv_cross::SPIRVariable const &)" (?emit_push_constant_block@CompilerHLSL@spirv_cross@@EEAAXAEBUSPIRVariable@2@@Z)
ShaderTranslation.o : error LNK2001: unresolved external symbol "private: virtual void __cdecl spirv_cross::CompilerHLSL::emit_uniform(struct spirv_cross::SPIRVariable const &)" (?emit_uniform@CompilerHLSL@spirv_cross@@EEAAXAEBUSPIRVariable@2@@Z)
ShaderTranslation.o : error LNK2001: unresolved external symbol "private: virtual class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > __cdecl spirv_cross::CompilerHLSL::layout_for_member(struct spirv_cross::SPIRType const &,unsigned int)" (?layout_for_member@CompilerHLSL@spirv_cross@@EEAA?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@AEBUSPIRType@2@I@Z)
ShaderTranslation.o : error LNK2001: unresolved external symbol "private: virtual class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > __cdecl spirv_cross::CompilerHLSL::to_interpolation_qualifiers(unsigned __int64)" (?to_interpolation_qualifiers@CompilerHLSL@spirv_cross@@EEAA?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@_K@Z)
ShaderTranslation.o : error LNK2001: unresolved external symbol "private: virtual class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > __cdecl spirv_cross::CompilerHLSL::bitcast_glsl_op(struct spirv_cross::SPIRType const &,struct spirv_cross::SPIRType const &)" (?bitcast_glsl_op@CompilerHLSL@spirv_cross@@EEAA?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@AEBUSPIRType@2@0@Z)
ShaderTranslation.o : error LNK2001: unresolved external symbol "private: virtual class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > __cdecl spirv_cross::CompilerHLSL::to_func_call_arg(unsigned int)" (?to_func_call_arg@CompilerHLSL@spirv_cross@@EEAA?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@I@Z)
ShaderTranslation.o : error LNK2001: unresolved external symbol "private: virtual void __cdecl spirv_cross::CompilerHLSL::emit_sampled_image_op(unsigned int,unsigned int,unsigned int,unsigned int)" (?emit_sampled_image_op@CompilerHLSL@spirv_cross@@EEAAXIIII@Z)
ShaderTranslation.o : error LNK2001: unresolved external symbol "private: virtual char const * __cdecl spirv_cross::CompilerHLSL::to_storage_qualifiers_glsl(struct spirv_cross::SPIRVariable const &)" (?to_storage_qualifiers_glsl@CompilerHLSL@spirv_cross@@EEAAPEBDAEBUSPIRVariable@2@@Z)
Config.o : error LNK2001: unresolved external symbol "bool __cdecl DoesVersionMatchWindows(unsigned int,unsigned int,unsigned int,unsigned int,bool)" (?DoesVersionMatchWindows@@YA_NIIII_N@Z)
Config.o : error LNK2001: unresolved external symbol "bool __cdecl VulkanMayBeAvailable(void)" (?VulkanMayBeAvailable@@YA_NXZ)
ppsspp_libretro.dll : fatal error LNK1120: 18 unresolved externals
make: *** [Makefile:450: ppsspp_libretro.dll] Error 96
COPY CMD: cp -v ./ppsspp_libretro.dll /home/buildbot/buildbot/windows_x64/dist/win_x64//ppsspp_libretro.dll
cp: cannot stat './ppsspp_libretro.dll': No such file or directory

http://p.0bl.net/148993

Shaders causing issues

What happens?
Use any kind of shader (opengl) in PPSSPP.
The screen becomes black and the menu becomes completely white.

What should happen?
Shader shall be applied. menu should be visible.

What hardware and operating system are you running PPSSPP on? GPU might matter if it's a graphical issue.
WIN10, GTX760

ffmpeg and -fPIC

I'm getting this kind of errors when linking (cross compiling for ARM):

/media/lakkadisk/kivutar/Lakka-LibreELEC/build.Lakka-RPi2.arm-2.1-rc5/toolchain/bin/../lib/gcc/armv7ve-libreelec-linux-gnueabi/6.2.0/../../../../armv7ve-libreelec-linux-gnueabi/bin/ld.gold: error: ../ffmpeg/linux/armv7/lib/libavformat.a(allformats.o): requires unsupported dynamic reloc R_ARM_MOVW_ABS_NC; recompile with -fPIC

For the ffmpeg .a in ffmpeg/linux/armv7/lib/

Segfault on startup

Using commit 37689d4 on latest RetroArch, arch linux x64 with ASAN/UBSAN enabled, trying to load Katamari from an ISO.

$ ./retroarch -L ../ppsspp/libretro/ppsspp_libretro.so ~/roms/psp/a-katama.iso
[INFO] Loading dynamic libretro core from: "/home/bp/RetroArch-bp/ppsspp/libretro/ppsspp_libretro.so"
[INFO] [overrides] no core-specific overrides found at /home/bp/.config/retroarch/config/PPSSPP/PPSSPP.cfg.
[INFO] [overrides] no game-specific overrides found at /home/bp/.config/retroarch/config/PPSSPP/a-katama.cfg.
[INFO] Shaders: preset directory: /home/bp/.config/retroarch/shaders/presets
[INFO] Shaders: no game-specific preset found at /home/bp/.config/retroarch/shaders/presets/PPSSPP/a-katama.cgp.
[INFO] Shaders: no game-specific preset found at /home/bp/.config/retroarch/shaders/presets/PPSSPP/a-katama.glslp.
[INFO] Shaders: no core-specific preset found at /home/bp/.config/retroarch/shaders/presets/PPSSPP/PPSSPP.cgp.
[INFO] Shaders: no core-specific preset found at /home/bp/.config/retroarch/shaders/presets/PPSSPP/PPSSPP.glslp.
[INFO] Environ SET_VARIABLES.
[INFO] Remaps: remap directory: /home/bp/.config/retroarch/config/remaps
[INFO] Remaps: no game-specific remap found at /home/bp/.config/retroarch/config/remaps/PPSSPP/a-katama.rmp.
[INFO] Remaps: no core-specific remap found at /home/bp/.config/retroarch/config/remaps/PPSSPP/PPSSPP.rmp.
[INFO] Redirecting save file to "/home/bp/saves/saves/PPSSPP/a-katama.srm".
[INFO] Redirecting savestate to "/home/bp/saves/states/a-katama.state".
[INFO] Environ GET_LOG_INTERFACE.
[WARN] SYSTEM DIR is empty, assume CONTENT DIR /home/bp/roms/psp/a-katama.iso
[INFO] Environ SYSTEM_DIRECTORY: "/home/bp/roms/psp/".
[INFO] Content loading skipped. Implementation will load it on its own.
[INFO] Environ SET_INPUT_DESCRIPTORS:
[INFO] 	RetroPad, User 1, Button "B (bottom)" => "Cross"
[INFO] 	RetroPad, User 1, Button "Y (left)" => "Square"
[INFO] 	RetroPad, User 1, Button "Select" => "Select"
[INFO] 	RetroPad, User 1, Button "Start" => "Start"
[INFO] 	RetroPad, User 1, Button "D-Pad Up" => "D-Pad Up"
[INFO] 	RetroPad, User 1, Button "D-Pad Down" => "D-Pad Down"
[INFO] 	RetroPad, User 1, Button "D-Pad Left" => "D-Pad Left"
[INFO] 	RetroPad, User 1, Button "D-Pad Right" => "D-Pad Right"
[INFO] 	RetroPad, User 1, Button "A (right)" => "Circle"
[INFO] 	RetroPad, User 1, Button "X (up)" => "Triangle"
[INFO] 	RetroPad, User 1, Button "L" => "L"
[INFO] 	RetroPad, User 1, Button "R" => "R"
[INFO] Environ SET_PIXEL_FORMAT: XRGB8888.
[INFO] Environ SET_HW_RENDER.
[INFO] Requesting OpenGL context.
[INFO] Environ GET_USERNAME: "bp".
[INFO] Environ GET_VARIABLE ppsspp_internal_resolution:
[INFO] 	480x272
[INFO] Environ GET_VARIABLE ppsspp_output_resolution:
[INFO] 	480x272
[INFO] Environ GET_VARIABLE ppsspp_button_preference:
[INFO] 	cross
[INFO] Environ GET_VARIABLE ppsspp_fast_memory:
[INFO] 	enabled
[INFO] Environ GET_VARIABLE ppsspp_vertex_cache:
[INFO] 	enabled
[INFO] Environ GET_VARIABLE ppsspp_gpu_hardware_transform:
[INFO] 	enabled
[INFO] Environ GET_VARIABLE ppsspp_frameskip:
[INFO] 	0
[INFO] Environ GET_VARIABLE ppsspp_audio_latency:
[INFO] 	0
[INFO] Environ GET_VARIABLE ppsspp_framerate_limit:
[INFO] 	0
[INFO] Environ GET_VARIABLE ppsspp_language:
[INFO] 	automatic
[INFO] Environ GET_LANGUAGE: "0".
[INFO] Environ GET_VARIABLE ppsspp_auto_frameskip:
[INFO] 	disabled
[INFO] Environ GET_VARIABLE ppsspp_block_transfer_gpu:
[INFO] 	enabled
[INFO] Environ GET_VARIABLE ppsspp_texture_scaling_type:
[INFO] 	xbrz
[INFO] Environ GET_VARIABLE ppsspp_texture_scaling_level:
[INFO] 	1
[INFO] Environ GET_VARIABLE ppsspp_internal_shader:
[INFO] 	off
[INFO] Environ GET_VARIABLE ppsspp_texture_anisotropic_filtering:
[INFO] 	off
[INFO] Environ GET_VARIABLE ppsspp_texture_deposterize:
[INFO] 	disabled
[INFO] Environ GET_VARIABLE ppsspp_separate_io_thread:
[INFO] 	disabled
[INFO] Environ GET_VARIABLE ppsspp_unsafe_func_replacements:
[INFO] 	enabled
[INFO] Environ GET_VARIABLE ppsspp_sound_speedhack:
[INFO] 	disabled
[INFO] Environ GET_VARIABLE ppsspp_cpu_core:
[INFO] 	jit
[INFO] Environ GET_VARIABLE ppsspp_locked_cpu_speed:
[INFO] 	off
[INFO] Environ GET_VARIABLE ppsspp_rendering_mode:
[INFO] 	buffered
[INFO] Environ GET_VARIABLE ppsspp_force_max_fps:
[INFO] 	disabled
[INFO] Environ GET_VARIABLE ppsspp_threaded_input:
[INFO] 	disabled
[INFO] CHEEVOS system RAM: (nil) 0
[INFO] CHEEVOS save RAM:   (nil) 0
[INFO] CHEEVOS video RAM:  (nil) 0
[INFO] [INFO] Skipping SRAM load..
CHEEVOS RTC:        (nil) 0
[INFO] Version of libretro API: 1
[INFO] Compiled against API: 1
[INFO] [Audio]: Set audio input rate to: 44100.00 Hz.
[INFO] Found shader "/home/bp/.config/retroarch/shaders/retroarch.glslp"
[INFO] [Video]: Video @ fullscreen
[INFO] [Video]: Using HW render, OpenGL driver forced.
[ERROR] [Wayland]: Failed to connect to Wayland server.
[INFO] [GLX]: GLX_OML_sync_control and GLX_MESA_swap_control supported, using better swap control method...
[INFO] [GL]: Found GL context: x
[INFO] [GL]: Detecting screen resolution 2160x3840.
[INFO] [XINERAMA]: Xinerama version: 1.1.
[INFO] [XINERAMA]: Xinerama screens: 1.
[INFO] [GLX]: Using Xinerama on screen #0.
[INFO] [GLX]: X = 0, Y = 0, W = 2160, H = 3840.
[INFO] [GLX]: Using windowed fullscreen.
[INFO] [GLX]: Found swap function: glXSwapIntervalEXT.
[INFO] [GLX]: glXSwapIntervalEXT(1)
[INFO] [GL]: Vendor: Intel Open Source Technology Center, Renderer: Mesa DRI Intel(R) HD Graphics 530 (Skylake GT2) .
[INFO] [GL]: Version: 3.0 Mesa 17.1.8.
[INFO] [GL]: Using resolution 2160x3840
[INFO] [GL]: Default shader backend found: glsl.
[INFO] [Shader driver]: Using GLSL shader backend.
[INFO] [GLSL]: Checking GLSL shader support ...
[INFO] Found #pragma parameter CRTCaligari Spot Width (SPOT_WIDTH) 0.900000 0.100000 1.500000 0.050000
[INFO] Found #pragma parameter CRTCaligari Spot Height (SPOT_HEIGHT) 0.650000 0.100000 1.500000 0.050000
[INFO] Found #pragma parameter CRTCaligari Color Boost (COLOR_BOOST) 1.450000 1.000000 2.000000 0.050000
[INFO] Found #pragma parameter CRTCaligari Input Gamma (InputGamma) 2.400000 0.000000 5.000000 0.100000
[INFO] Found #pragma parameter CRTCaligari Output Gamma (OutputGamma) 2.200000 0.000000 5.000000 0.100000
[INFO] [GLSL]: Found GLSL vertex shader.
[INFO] [GLSL]: Found GLSL fragment shader.
[INFO] [GLSL]: Linking GLSL program.
[INFO] [GLSL]: Found GLSL vertex shader.
[INFO] [GLSL]: Found GLSL fragment shader.
[INFO] [GLSL]: Linking GLSL program.
[INFO] [GLSL]: Found GLSL vertex shader.
[INFO] [GLSL]: Found GLSL fragment shader.
[INFO] [GLSL]: Linking GLSL program.
[INFO] [GLSL]: Found GLSL vertex shader.
[INFO] [GLSL]: Found GLSL fragment shader.
[INFO] [GLSL]: Linking GLSL program.
[INFO] [GLSL]: Found GLSL vertex shader.
[INFO] [GLSL]: Found GLSL fragment shader.
[INFO] [GLSL]: Linking GLSL program.
[INFO] [GLSL]: Found GLSL vertex shader.
[INFO] [GLSL]: Found GLSL fragment shader.
[INFO] [GLSL]: Linking GLSL program.
[INFO] [GLSL]: Found GLSL vertex shader.
[INFO] [GLSL]: Found GLSL fragment shader.
[INFO] [GLSL]: Linking GLSL program.
[INFO] [GLSL]: Found GLSL vertex shader.
[INFO] [GLSL]: Found GLSL fragment shader.
[INFO] [GLSL]: Linking GLSL program.
[INFO] [GL]: Using 1 textures.
[INFO] [GL]: Loaded 1 program(s).
[INFO] [GL]: Initializing HW render (512 x 512).
[INFO] [GL]: Max texture size: 16384 px, renderbuffer size: 16384 px.
[INFO] [GL]: Supports FBO (render-to-texture).
[INFO] [udev]: Plugged pad: Microsoft X-Box One S pad (1118:746) on port #0.
[INFO] [udev]: Pad #0 (/dev/input/event20) supports force feedback.
[INFO] [udev]: Pad #0 (/dev/input/event20) supports 16 force feedback effects.
[INFO] [Autoconf]: 229 profiles found.
[INFO] [Autoconf]: selected configuration: /home/bp/.config/retroarch/autoconfig/udev/Microsoft_X-Box_One_S_pad.cfg
[INFO] [Joypad]: Found joypad driver: "udev".
[INFO] [Font]: Using font rendering backend: freetype.
[ERROR] [DBus]: Failed to suspend screensaver via DBus.
[INFO] [X11]: Suspending screensaver (X11, xdg-screensaver).
[INFO] [PulseAudio]: Requested 24576 bytes buffer, got 18432.
[INFO] [Menu]: Found menu display driver: "menu_display_gl".
[INFO] Found #pragma parameter CRTCaligari Spot Width (SPOT_WIDTH) 0.900000 0.100000 1.500000 0.050000
[INFO] Found #pragma parameter CRTCaligari Spot Height (SPOT_HEIGHT) 0.650000 0.100000 1.500000 0.050000
[INFO] Found #pragma parameter CRTCaligari Color Boost (COLOR_BOOST) 1.450000 1.000000 2.000000 0.050000
[INFO] Found #pragma parameter CRTCaligari Input Gamma (InputGamma) 2.400000 0.000000 5.000000 0.100000
[INFO] Found #pragma parameter CRTCaligari Output Gamma (OutputGamma) 2.200000 0.000000 5.000000 0.100000
[INFO] [Font]: Using font rendering backend: freetype.
[INFO] [Font]: Using font rendering backend: freetype.
[WARN] Input device ID 257 is unknown to this libretro implementation. Using RETRO_DEVICE_JOYPAD.
[INFO] Disconnecting device from port 3.
[INFO] Found #pragma parameter CRTCaligari Spot Width (SPOT_WIDTH) 0.900000 0.100000 1.500000 0.050000
[INFO] Found #pragma parameter CRTCaligari Spot Height (SPOT_HEIGHT) 0.650000 0.100000 1.500000 0.050000
[INFO] Found #pragma parameter CRTCaligari Color Boost (COLOR_BOOST) 1.450000 1.000000 2.000000 0.050000
[INFO] Found #pragma parameter CRTCaligari Input Gamma (InputGamma) 2.400000 0.000000 5.000000 0.100000
[INFO] Found #pragma parameter CRTCaligari Output Gamma (OutputGamma) 2.200000 0.000000 5.000000 0.100000
[INFO] Loading history file: [/home/bp/.config/retroarch/content_history.lpl].
[INFO] Loading history file: [/home/bp/.config/retroarch/content_favorites.lpl].
[INFO] Loading history file: [/home/bp/.config/retroarch/content_music_history.lpl].
[INFO] Loading history file: [/home/bp/.config/retroarch/content_image_history.lpl].
[INFO] [GL]: VSync => on
[INFO] [GLX]: glXSwapIntervalEXT(1)
[INFO] Trying to write to playlist file: /home/bp/.config/retroarch/content_history.lpl
I: gpu_features.cpp:136: GPU Vendor : Intel Open Source Technology Center ; renderer: Mesa DRI Intel(R) HD Graphics 530 (Skylake GT2)  version str: 3.0 Mesa 17.1.8 ; GLSL version str: 1.30
I: thin3d_gl.cpp:282: Shader module created (0x607000486e40)
I: thin3d_gl.cpp:282: Shader module created (0x607000489060)
I: thin3d_gl.cpp:282: Shader module created (0x60700048b0c0)
I: thin3d_gl.cpp:282: Shader module created (0x60700048cbe0)
16:53:666 Core/System.cpp:407 I[BOOT]: PPSSPP v1.4.2-git
[libretro INFO] I PPSSPP v1.4.2-git
.
../Core/FileSystems/ISOFileSystem.cpp:65:8: runtime error: constructor call on misaligned address 0x7ffea08e1e72 for type 'struct u32_be', which requires 4 byte alignment
0x7ffea08e1e72: note: pointer points here
 00 00  15 00 00 00 00 00 00 00  50 1f 8e a0 fe 7f 00 00  00 00 00 00 00 00 00 00  00 00 00 00 00 00
              ^ 
../Common/Swap.h:121:2: runtime error: reference binding to misaligned address 0x7ffea08e1e72 for type 'struct <unknown>', which requires 4 byte alignment
0x7ffea08e1e72: note: pointer points here
 00 00  15 00 00 00 00 00 00 00  50 1f 8e a0 fe 7f 00 00  00 00 00 00 00 00 00 00  00 00 00 00 00 00
              ^ 
../Common/Swap.h:121:30: runtime error: member access within misaligned address 0x7ffea08e1e72 for type 'struct swap_struct_t', which requires 4 byte alignment
0x7ffea08e1e72: note: pointer points here
 00 00  15 00 00 00 00 00 00 00  50 1f 8e a0 fe 7f 00 00  00 00 00 00 00 00 00 00  00 00 00 00 00 00
              ^ 
../Core/FileSystems/ISOFileSystem.cpp:65:8: runtime error: constructor call on misaligned address 0x7ffea08e1e7a for type 'struct u32_be', which requires 4 byte alignment
0x7ffea08e1e7a: note: pointer points here
 00 00  50 1f 8e a0 fe 7f 00 00  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  0d 36 a7 b5 d1 7f
              ^ 
16:53:668 Core/MemMap.cpp:291 I[MEMMAP]: Memory system initialized. Base at 0x2300000000 (RAM at @ 0x2308000000, uncached @ 0x2348000000)
[libretro INFO] I Memory system initialized. Base at 0x2300000000 (RAM at @ 0x2308000000, uncached @ 0x2348000000)
.
../Common/x64Emitter.h:364:46: runtime error: store to misaligned address 0x00004132b02f for type 'u32', which requires 4 byte alignment
0x00004132b02f: note: pointer points here
 0f 29 94 24 00  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  00 00 00
             ^ 
../Common/x64Emitter.h:365:46: runtime error: store to misaligned address 0x000041e9508f for type 'u64', which requires 8 byte alignment
0x000041e9508f: note: pointer points here
 74 00 48 b8 00  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  00 00 00
             ^ 
../Common/x64Emitter.cpp:511:26: runtime error: store to misaligned address 0x000041e950f5 for type 's32', which requires 4 byte alignment
0x000041e950f5: note: pointer points here
 eb 06 0f 88 00 00 00  00 41 8b 86 44 03 00 00  8b 44 03 00 8b d0 c1 ea  18 83 fa 68 75 0d 25 ff  ff
             ^ 
16:53:671 Core/PSPLoaders.cpp:193 I[LOADER]: ULUS10094 : Me & My Katamari
[libretro INFO] I ULUS10094 : Me & My Katamari
.
16:53:671 Core/Config.cpp:1350 I[LOADER]: Failed to read ULUS10094_ppsspp.ini. No game-specific settings found, using global defaults.
[libretro INFO] I Failed to read ULUS10094_ppsspp.ini. No game-specific settings found, using global defaults.
.
16:53:671 Core/PSPLoaders.cpp:251 I[LOADER]: Loading disc0:/PSP_GAME/SYSDIR/EBOOT.BIN...
[libretro INFO] I Loading disc0:/PSP_GAME/SYSDIR/EBOOT.BIN...
.
16:53:671 HLE/sceKernelMemory.cpp:434 I[SCEKERNEL]: Kernel and user memory pools initialized
[libretro INFO] I Kernel and user memory pools initialized
.
ASAN:DEADLYSIGNAL
=================================================================
==3230==ERROR: AddressSanitizer: SEGV on unknown address 0x0004e0ff8000 (pc 0x7fd1c8e5556c bp 0x7ffea08e1150 sp 0x7ffea08e08c0 T0)
==3230==The signal is caused by a READ memory access.
    #0 0x7fd1c8e5556b in AddressIsPoisoned /build/gcc/src/gcc/libsanitizer/asan/asan_mapping.h:320
    #1 0x7fd1c8e5556b in QuickCheckForUnpoisonedRegion /build/gcc/src/gcc/libsanitizer/asan/asan_interceptors.cc:41
    #2 0x7fd1c8e5556b in __interceptor_memcpy /build/gcc/src/gcc/libsanitizer/asan/asan_interceptors.cc:456
    #3 0x7fd1b529035c in Memory::Memcpy(unsigned int, void const*, unsigned int) ../Core/MemMapHelpers.h:35
    #4 0x7fd1b568c8d1 in __KernelThreadingInit() ../Core/HLE/sceKernelThread.cpp:928
    #5 0x7fd1b5530252 in __KernelInit() ../Core/HLE/sceKernel.cpp:110
    #6 0x7fd1b560888f in __KernelLoadReset() ../Core/HLE/sceKernelModule.cpp:1554
    #7 0x7fd1b5608c70 in __KernelLoadExec(char const*, unsigned int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >*) ../Core/HLE/sceKernelModule.cpp:1579
    #8 0x7fd1b5a32826 in Load_PSP_ISO(FileLoader*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >*) ../Core/PSPLoaders.cpp:252
    #9 0x7fd1b5880096 in LoadFile(FileLoader**, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >*) ../Core/Loaders.cpp:287
    #10 0x7fd1b5a7143b in CPU_Init() ../Core/System.cpp:265
    #11 0x7fd1b5a73277 in PSP_InitStart(CoreParameter const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >*) ../Core/System.cpp:425
    #12 0x7fd1b5a7360c in PSP_Init(CoreParameter const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >*) ../Core/System.cpp:460
    #13 0x7fd1b5aaf5a3 in retro_run ../libretro/libretro.cpp:1195
    #14 0x5573c9415d31 in core_run /home/bp/RetroArch-bp/RetroArch/core_impl.c:415
    #15 0x5573c94224eb in runloop_iterate /home/bp/RetroArch-bp/RetroArch/retroarch.c:3093
    #16 0x5573c9411be6 in rarch_main frontend/frontend.c:131
    #17 0x5573c9411d3c in main frontend/frontend.c:151
    #18 0x7fd1c21734c9 in __libc_start_main (/usr/lib/libc.so.6+0x204c9)
    #19 0x5573c9406029 in _start (/home/bp/RetroArch-bp/RetroArch/retroarch+0x7b9029)

AddressSanitizer can not provide additional info.
SUMMARY: AddressSanitizer: SEGV /build/gcc/src/gcc/libsanitizer/asan/asan_mapping.h:320 in AddressIsPoisoned
==3230==ABORTING

Core crashes when opening a directory.

Description

The ppsspp core crashes if trying to open a directory from the command-line. This can happen from something as simple as a typo.

Expected behavior

It should not crash.

Actual behavior

53:14:682 Core/Loaders.cpp:327 E[LOADER]: Just a directory.
53:14:682 HLE/sceKernel.cpp:161 E[SCEKERNEL]: Can't shut down kernel - not running
 
Thread 1 "retroarch" received signal SIGSEGV, Segmentation fault.
0x00007fffe8423be6 in MIPSState::RunLoopUntil (this=0x7fffe8e9e060 <mipsr4k>,
    globalTicks=22200000) at ../Core/MIPS/MIPS.cpp:309
309         MIPSComp::jit->RunLoopUntil(globalTicks);
(gdb) bt
#0  0x00007fffe8423be6 in MIPSState::RunLoopUntil (
    this=0x7fffe8e9e060 <mipsr4k>, globalTicks=22200000)
    at ../Core/MIPS/MIPS.cpp:309
#1  0x00007fffe84658ca in PSP_RunLoopUntil (globalticks=22200000)
    at ../Core/System.cpp:562
#2  0x00007fffe8465934 in PSP_RunLoopFor (cycles=22200000)
    at ../Core/System.cpp:569
#3  0x00007fffe8476d73 in retro_run () at ../libretro/libretro.cpp:1244
#4  0x0000000000416ca6 in core_run () at core_impl.c:415
#5  0x000000000041c225 in runloop_iterate (sleep_ms=0x7fffffffe100)
    at retroarch.c:3120
#6  0x00000000004156ae in rarch_main (argc=4, argv=0x7fffffffe218, data=0x0)
    at frontend/frontend.c:131
#7  0x000000000041570b in main (argc=4, argv=0x7fffffffe218)
    at frontend/frontend.c:151

Full GDB log - https://pastebin.com/qHikwqyV

Steps to reproduce the bug

  1. retroarch -L /path/to/ppsspp_libretro.so /tmp/
  2. It crashes immediately.

Bisect Results

This crash started with the new core and did not occur with the old one. It also does not occur upstream.

Version/Commit

You can find this information under Information/System Information

  • RetroArch: 1.6.9
  • libretro-ppsspp: abee4eb

Environment information

  • OS: Slackware64-current
  • Compiler: gcc-7.2.0

Toggling fullscreen breaks core

Description

When toggling fullscreen with fppsspp renders a broken image.

Apitrace: http://ks392457.kimsufi.com/orbea/stuff/trace/retroarch_ppsspp.trace.xz
Log : https://pastebin.com/ZpihsHQb
Example errors.

32742: message: major api error 2: GL_INVALID_VALUE in glDeleteProgram
32742 @0 glDeleteProgram(program = 75)
34966: message: api issue 3: FBO incomplete: no attachments and default width or height is 0 [-1]
34966 @0 glClear(mask = GL_DEPTH_BUFFER_BIT | GL_STENCIL_BUFFER_BIT | GL_COLOR_BUFFER_BIT)

Expected behavior

Toggling fullscreen should work.

Actual behavior

Toggling fullscreen breaks gameplay.

Steps to reproduce the bug

  1. Start a game.
  2. Toggle fullscreen with f.
  3. The core renders a broken image of the background.

Bisect Results

Seems to have started with the new core.

Version/Commit

You can find this information under Information/System Information

ppsspp-libretro commit: 8672e0c

  • RetroArch: RetroArch-2017.11.18_c89ed11_master-x86_64-1_git

Environment information

  • OS: Slackware64-current
  • Compiler: gcc-7.2.0

Problem with folders and special-characters

RetroArch: RetroArch 1.6.7
Core: PPSSPP 1.4.2-git

The new PPSSPP core has problems reading from folders with special characters.

RetroArch can read and write OK from folder with specials chars, for example:
C:\Emulación\RetroArch\saves

Cores can perform in-game saves, RetroArch can do saves-states and can detect required files (bios, etc.) and show "OK" in core information.

But PPSSPP, in this path, has problems.
It can't load the assets (stored in C:\Emulación\RetroArch/system/PPSSPP). If you move the folder to C:\RetroArch then it works and can be loaded.
It can't load/save the memory cards. It creates a parallel C:\Emulaci�n\RetroArch\save structure (note the difference C:\Emulación vs C:\Emulaci�n).

glu.h

glu.h is missing on some ARM plaforms like RPi and imx6 that doesn't use mesa.

We need to add PLATCFLAGS += -DGLEW_NO_GLU in the Makefile for these platforms.

armhf linux build failure.

Build failure for the cores-linux-armhf-generic buildbot recipe. I think the bug is here, but I can't test it locally due to a lack of hardware.
https://github.com/libretro/ppsspp/blob/master/libretro/Makefile#L210

g++: error: unrecognized command line option '-marm'
g++: error: unrecognized command line option '-mfpu=neon'
g++: error: unrecognized command line option '-mfloat-abi=hard'
Makefile:444: recipe for target '../ext/native/ext/rg_etc1/rg_etc1.o' failed
make: *** [../ext/native/ext/rg_etc1/rg_etc1.o] Error 1
make: *** Waiting for unfinished jobs....
g++: error: unrecognized command line option '-marm'
g++: error: unrecognized command line option '-mfpu=neon'
g++: error: unrecognized command line option '-marm'
g++: error: unrecognized command line option '-mfloat-abi=hard'
g++: error: unrecognized command line option '-mfpu=neon'
g++: error: unrecognized command line option '-mfloat-abi=hard'
Makefile:444: recipe for target '../ext/native/ext/vjson/json.o' failed
make: *** [../ext/native/ext/vjson/json.o] Error 1
Makefile:444: recipe for target '../ext/native/ext/vjson/block_allocator.o' failed
make: *** [../ext/native/ext/vjson/block_allocator.o] Error 1
g++: error: unrecognized command line option '-marm'
g++: error: unrecognized command line option '-mfpu=neon'
g++: error: unrecognized command line option '-mfloat-abi=hard'
Makefile:444: recipe for target '../ext/native/ext/cityhash/city.o' failed
make: *** [../ext/native/ext/cityhash/city.o] Error 1
g++: error: unrecognized command line option '-marm'
g++: error: unrecognized command line option '-mfpu=neon'
g++: error: unrecognized command line option '-mfloat-abi=hard'
Makefile:444: recipe for target '../ext/snappy/snappy-c.o' failed
make: *** [../ext/snappy/snappy-c.o] Error 1
g++: error: unrecognized command line option '-marm'
g++: error: unrecognized command line option '-mfpu=neon'
g++: error: unrecognized command line option '-mfloat-abi=hard'
Makefile:444: recipe for target '../ext/snappy/snappy.o' failed
make: *** [../ext/snappy/snappy.o] Error 1
COPY CMD: cp -v ppsspp_libretro.so /home/buildbot/buildbot/linux_armhf/dist/unix/ppsspp_libretro.so
cp: cannot stat 'ppsspp_libretro.so': No such file or directory
21:56 <@retrobot> ppsspp: [status: fail] [recipes/linux/cores-linux-armhf-generic] LOG: http://p.0bl.net/103589

Booting Game Fails

I followed the instructions on the Wiki and when I drag an iso into the RA window, the window goes white like it is about to load, and then the entire window reloads and the blue RA screen is back with no message.

Game video intros are always broken

What happens?

You can barely see whats the intro video
What should happen?
Enjoy the show

What hardware and operating system are you running PPSSPP on? GPU might matter if it's a graphical issue.
All ARM Mali GPU's didnt test x86/64

QuickSave(without call psp save/load menu screen) Broken

(Android in vanilla RA with PPSSP core, none additional other settings)
without proper savescreen output, i can't see anything but data save & load are just well worked like real PSP or PPSSPP doing.
but when PPSSPP core load save state screen, it happen somekind of 'memory leak' kind of happend, and few time after leaked, old limited mem android phone like me is make RA crashed.
i guessing leak but quite in case by case so could be not a leak things.

Anyway even in risk of lossing save datas, seems no other issues in both 'save from psp gamesave XMB screen state' and 'in-game save without system XMB screen call'
(test title is Super Robot Taisen A Portable quite many titles can quick save data without call XMB menu)
but after few times crash during saving state, save datas are broken and not works properly.

so i've wipe out RetroArch and all data, reset all saves, also dump in all missing fonts and ppsspp asset files now and show savedata screen properly.
(of cource fonts are broken but at least i can see the save menu)

now interesting strangly happen in here, usual save and load are works done well now,
but quick save mid in games thing are not works properly.
(keep show message 'please insert Memory Stick™'
after searching memstick status as lightning speed)

seems it's still possible to save data and no other android write attribute issues, but PPSSPP core not properly recorgnize emulated memory stick it self or callback 'emulated memstick state' to title. i've tested same thing in PPSSPP android svn but there no issue on that.

it's was worked before but now broken.
i've highly guessing recent changes during this 1~2 weeks, 100% sure change after 3 or 4 September i guess.
cause of i've been not update core since that days and update core today.

What Expected (and proper works on ppsspp standalone)
screenshot_2017-09-19-21-43-58
screenshot_2017-09-19-21-44-02

[Okay to Overwrite your save data?]
[Save done, wanna continue the game?]

What Happend
screenshot_2017-09-19-21-43-30

[Please Insert MemoryStick™]

Frame Pacing Problems

With all frame skipping and hacks off i get improper frame pacing that causes noticeable stutter even when games run full speed. Seems 60 fps games are fine but 30 fps games and games that naturally can't maintain full 60 stutter. Standalone PPSSPP emulator also has this issue. Does anyone have any idea how to fix this? hrydgard#9736

No stutter and smooth consistent frame pacing.

7700K, GTX 1080ti

Switching to fullscreen turn screen to black

What happens?
When switching to fullscreen, screen will just turn black but background sound still working. also, log window is spamming this:

[libretro ERROR] Trying to DrawActiveTexture() without a program
[libretro ERROR] Trying to DrawActiveTexture() without a program
[libretro ERROR] Trying to DrawActiveTexture() without a program
[libretro ERROR] Trying to DrawActiveTexture() without a program
[libretro ERROR] Trying to DrawActiveTexture() without a program
[libretro ERROR] Trying to DrawActiveTexture() without a program
[libretro ERROR] Trying to DrawActiveTexture() without a program
[libretro ERROR] Trying to DrawActiveTexture() without a program
[libretro ERROR] Trying to DrawActiveTexture() without a program
[libretro ERROR] Trying to DrawActiveTexture() without a program
[libretro ERROR] Trying to DrawActiveTexture() without a program
[libretro ERROR] Trying to DrawActiveTexture() without a program
[libretro ERROR] Trying to DrawActiveTexture() without a program
[libretro WARN] Got an error BEFORE texture upload: 00000506 ((unk:0506))
[libretro ERROR] Trying to DrawActiveTexture() without a program
[libretro WARN] Got an error BEFORE texture upload: 00000506 ((unk:0506))
[libretro ERROR] Trying to DrawActiveTexture() without a program
[libretro WARN] Got an error BEFORE texture upload: 00000506 ((unk:0506))
[libretro ERROR] Trying to DrawActiveTexture() without a program
[libretro WARN] Got an error BEFORE texture upload: 00000506 ((unk:0506))
[libretro ERROR] Trying to DrawActiveTexture() without a program

What should happen?
Core should respect switching to fullscreen and/or switching back to windowed-mode.

What hardware and operating system are you running PPSSPP on? GPU might matter if it's a graphical issue.

retroarch is ran under linux, RA manually compiled using latest commit, core is latest from Online Updater. GPU is intel hd graphics.

RA: 6fc6bfb
ppsspp: 1.4.2-git

Core crashes with fast memory disabled.

Description

The ppsspp core crashes if fast memory is disabled in the core options.

ppsspp_fast_memory = "disabled"

Expected behavior

It should not crash.

Actual behavior

Thread 1 "retroarch" received signal SIGINT, Interrupt.
0x00007ffff0603f37 in kill () from /lib64/libc.so.6
(gdb) bt
#0  0x00007ffff0603f37 in kill () from /lib64/libc.so.6
#1  0x00007fffe847f058 in Gen::OpArg::WriteRest (this=0x7fffffffd590,
    emit=0x2516fd8, extraBytes=1, _operandReg=Gen::EDI, warn_64bit_offset=true)
    at ../Common/x64Emitter.cpp:242
#2  0x00007fffe8482b2c in Gen::OpArg::WriteNormalOp (this=0x7fffffffd590,
    emit=0x2516fd8, toRM=true, op=Gen::nrmCMP, operand=..., bits=32)
    at ../Common/x64Emitter.cpp:1241
#3  0x00007fffe8482c75 in Gen::XEmitter::WriteNormalOp (this=0x2516fd8,
    emit=0x2516fd8, bits=32, op=Gen::nrmCMP, a1=..., a2=...)
    at ../Common/x64Emitter.cpp:1270
#4  0x00007fffe84830bb in Gen::XEmitter::CMP (this=0x2516fd8, bits=32, a1=...,
    a2=...) at ../Common/x64Emitter.cpp:1300
#5  0x00007fffe84b63ab in MIPSComp::Jit::WriteExitDestInReg (this=0x2516fc0,
    reg=Gen::EAX) at ../Core/MIPS/x86/Jit.cpp:715
#6  0x00007fffe84915a6 in MIPSComp::Jit::Comp_JumpReg (this=0x2516fc0, op=...)
    at ../Core/MIPS/x86/CompBranch.cpp:750
#7  0x00007fffe843e8a6 in MIPSCompileOp (op=..., jit=0x2517000)
    at ../Core/MIPS/MIPSTables.cpp:922
#8  0x00007fffe84b489c in MIPSComp::Jit::DoJit (this=0x2516fc0,
    em_address=144061904, b=0x7fffd5417d10) at ../Core/MIPS/x86/Jit.cpp:368
#9  0x00007fffe84b4305 in MIPSComp::Jit::Compile (this=0x2516fc0,
    em_address=144061904) at ../Core/MIPS/x86/Jit.cpp:288
#10 0x00007fffe8400634 in MIPSComp::JitAt ()
    at ../Core/MIPS/JitCommon/JitCommon.cpp:46
#11 0x000000004010012c in ?? ()
#12 0x0000000000000000 in ?? ()

Full GDB log - https://pastebin.com/rrjqY7Hn

Steps to reproduce the bug

  1. Disable ppsspp_fast_memory.
  2. Start the ppsspp core in RetroArch.
  3. It crashes immediately.

Bisect Results

This crash started with the new core and did not occur with the old one. It also does not occur upstream.

Version/Commit

You can find this information under Information/System Information

  • RetroArch: 1.6.9
  • libretro-ppsspp: abee4eb

Environment information

  • OS: Slackware64-current
  • Compiler: gcc-7.2.0

ppsspp-libretro doesn't show the initial warning message on tekken 6.

What should happen?

ppsspp shows the warning message screen

2018-03-20_tue_01 15 07

What happens?

But, ppsspp-libretro doesn't. I just see a black screen in place of the warning message.
At first, I thought ppsspp-libretro couldn't run tekken 6 because the black screen didn't respond at all until I accidentally pressed X button on my DualShock 4 controller.

tekken 6 u m5 ind -180320-101257

What hardware and operating system are you running PPSSPP on? GPU might matter if it's a graphical issue.

OS : Gentoo
CPU : AMD FX-8300
GPU : AMD HD6450
ppsspp-1.5.4
ppsspp-libretro-1.0_pre20180317 based on git commit dbbe316
RetroArch 1.7.1

Build error if no .git folder (tarball)

Launchpad uses tarball, so no .git folder

g++ -g -fstack-protector-strong -Wformat -Werror=format-security -std=c++11 -O2 -DNDEBUG  -D__LIBRETRO__ -DPPSSPP -DUSE_FFMPEG -DGLEW_STATIC -DGLEW_NO_GLU -DNO_VULKAN  -I../ffmpeg/linux/x86_64/include -I. -I.. -I../Common -I../libretro -I../ext/native -I../ext/zlib -I../ext/snappy -I../ffmpeg  -I../ffmpeg/linux/x86_64/include -I../ext/cityhash -I../ext/armips -I../ext/native/ext -I../ext/native -I../ext/libkirk -I../ext/xbrz -I../ext/xxhash -I../ext/glew   -fPIC   -msse -msse2 -D_M_X64 -D_ARCH_64 -DHAVE_OPENGL  -DDYNAREC -ffunction-sections -fdata-sections -c -o../git-version.o ../git-version.cpp
../git-version.cpp:1:1: error: expected unqualified-id before ‘-’ token
 -e // This is a generated file. 
 ^

git-version.cpp:

-e // This is a generated file. 

const char *PPSSPP_GIT_VERSION = "v1.4.2-git"; 

// If you don`t want this file to update/recompile, change to 1. 
#define PPSSPP_GIT_VERSION_NO_UPDATE 0

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.