hrydgard / ppsspp

A PSP emulator for Android, Windows, Mac and Linux, written in C++. Want to contribute? Join us on Discord at https://discord.gg/5NJB6dD or just send pull requests / issues. For discussion use the forums at forums.ppsspp.org.
https://www.ppsspp.org
Other
11.23k stars 2.17k forks source link

Cloning of branch v1.16.6: git fails (Retropie setup) #18615

Open yPhil-gh opened 10 months ago

yPhil-gh commented 10 months ago

Game or games this happens in

None

What area of the game / PPSSPP

When trying to clone as per the Retropie install (lr-ppsspp) script :

# git clone --recursive --depth 1 --shallow-submodules --branch v1.16.6 https://github.com/hrydgard/ppsspp.git
Cloning into 'ppsspp'...
remote: Enumerating objects: 2458, done.
remote: Counting objects: 100% (2458/2458), done.
remote: Compressing objects: 100% (2149/2149), done.
error: 7056 bytes of body are still expectediB | 238.00 KiB/s
fetch-pack: unexpected disconnect while reading sideband packet
fatal: early EOF
fatal: fetch-pack: invalid index-pack output

Tested on two different machines ; other git repos clone fine.

What should happen

It should clone OK w/ errors.

Logs

Log started at: Wed 27 Dec 22:39:34 +01 2023

RetroPie-Setup version: 4.8.6 (c10045cf)
System: x86_64 (x86_64) - Ubuntu 22.04.3 LTS - Linux moe 6.2.0-39-generic #40~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Nov 16 10:53:04 UTC 2 x86_64 x86_64 x86_64 GNU/Linux

= = = = = = = = = = = = = = = = = = = = =
Installing dependencies for 'lr-ppsspp' : PlayStation Portable emu - PPSSPP port for libretro
= = = = = = = = = = = = = = = = = = = = =

/home/px/src/RetroPie-Setup/tmp/build/lr-ppsspp /home/px

= = = = = = = = = = = = = = = = = = = = =
Getting sources for 'lr-ppsspp' : PlayStation Portable emu - PPSSPP port for libretro
= = = = = = = = = = = = = = = = = = = = =

git clone --recursive --depth 1 --shallow-submodules --branch v1.16.6 "https://github.com/hrydgard/ppsspp.git" "/home/px/src/RetroPie-Setup/tmp/build/lr-ppsspp/ppsspp"
Cloning into '/home/px/src/RetroPie-Setup/tmp/build/lr-ppsspp/ppsspp'...
error: 5675 bytes of body are still expected
fetch-pack: unexpected disconnect while reading sideband packet
fatal: early EOF
fatal: fetch-pack: invalid index-pack output
fatal: cannot change to '/home/px/src/RetroPie-Setup/tmp/build/lr-ppsspp/ppsspp': No such file or directory
fatal: cannot change to '/home/px/src/RetroPie-Setup/tmp/build/lr-ppsspp/ppsspp': No such file or directory
HEAD is now in branch '' at commit ''
/home/px/src/RetroPie-Setup/scriptmodules/emulators/ppsspp.sh: line 39: cd: ppsspp: No such file or directory
sed: can't read ffmpeg/linux_arm.sh: No such file or directory
sed: can't read cmake/Toolchains/raspberry.armv7.cmake: No such file or directory
sed: can't read cmake/Toolchains/raspberry.armv7.cmake: No such file or directory
sed: can't read cmake/Toolchains/raspberry.armv7.cmake: No such file or directory
sed: can't read cmake/Toolchains/raspberry.armv?.cmake: No such file or directory
can't find file to patch at input line 5
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff --git a/Common/GPU/OpenGL/DataFormatGL.cpp b/Common/GPU/OpenGL/DataFormatGL.cpp
|index 425f247..ea690d8 100644
|--- a/Common/GPU/OpenGL/DataFormatGL.cpp
|+++ b/Common/GPU/OpenGL/DataFormatGL.cpp
--------------------------
No file to patch.  Skipping patch.
1 out of 1 hunk ignored
can't find file to patch at input line 24
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff --git a/Common/GPU/OpenGL/GLFeatures.cpp b/Common/GPU/OpenGL/GLFeatures.cpp
|index c17f1d1..fa3463e 100644
|--- a/Common/GPU/OpenGL/GLFeatures.cpp
|+++ b/Common/GPU/OpenGL/GLFeatures.cpp
--------------------------
No file to patch.  Skipping patch.
1 out of 1 hunk ignored
Error running 'git clone --recursive --depth 1 --shallow-submodules --branch v1.16.6 https://github.com/hrydgard/ppsspp.git /home/px/src/RetroPie-Setup/tmp/build/lr-ppsspp/ppsspp' - returned 128
lr-ppsspp patch /home/px/src/RetroPie-Setup/scriptmodules/emulators/ppsspp/gles2_fix.diff failed to apply
/home/px

Log ended at: Wed 27 Dec 22:41:05 +01 2023
Total running time: 0 hours, 1 mins, 31 secs

Platform

libretro / Retroarch

Mobile device model or graphics card (GPU)

n/a

PPSSPP version affected

n/a

Last working version

n/a

Graphics backend (3D API)

Vulkan

Checklist

anr2me commented 10 months ago

I tried running git clone --recursive --depth 1 --shallow-submodules --branch v1.16.6 "https://github.com/hrydgard/ppsspp.git" ppsspp on Windows but didn't find any issue. image

If it was an issue that only occurred on linux, the CI on Github's Actions should have failed too during the checkout step, but didn't.

Btw, does cloning an older version or the master branch also have the same problem?

LunaMoo commented 10 months ago

Try some solutions from here: https://github.com/orgs/community/discussions/48568

Since it works for others, it's not about PPSSPP, but probably the fact it's a big project bloated by some third party dependencies and something in your setup not working well with such bigger projects, you might need to change some git settings or try with different network.

anr2me commented 10 months ago

Nice info there LunaMoo :)

I would suggest using VPN first before changing any settings, in case his ISP have censorship (they can accidentally blocks or throttle the speed of some websites by accident, like my ISP did in the past >.<)

unknownbrackets commented 10 months ago

Maybe doesn't help with the script, but the best way to reduce the network traffic spike is likely to clone subrepositories separately (i.e. not use --recursive but instead use git submodule update --init afterward.)

-[Unknown]