Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Android/Windows][OpenGL&Vulkan][Crash]SOCOM:U.S.Navy SEALs Portable (NPJG00035) [eng title: Socom:U.S. Navy SEALs Fireteam Bravo 3] #12730

Open
nassau-tk opened this issue Mar 19, 2020 · 26 comments
Labels
PSMF / MPEG Issue involves scePsmf or sceMpeg video playback.
Milestone

Comments

@nassau-tk
Copy link
Contributor

nassau-tk commented Mar 19, 2020

What happens?

Start a game and crash after movie starting.
It has some pattern of crash like a below.
Example1) Skip a movie => Crash
Example2) Finish a movie(Don't skip) => Select the game => Crash

What should happen?

Don't crash.
Working on stable.

What hardware, operating system, and PPSSPP version? On desktop, GPU matters for graphical issues.

PPSSPP Ver. : 1.9.3-519
OS: Android 9.0
DeviceName: SONY SO-02K / Xperia XZ1 Compact (Japan)
CPU: Snapdragon835 (Octa-core)
GPU: Adreno 540
Resolution: 720×1280
RAM: 4GB
ROM:32GB
ExternalStrage: microSDXC 512GB

[2020/11/29 add]
PPSSPP Ver.:1.10.3-1267
OS:Windows10(64-bit)Japanese
CPU:Ryzen7 3800X(8-core)
GPU:RADEON RX5700XT
Resolution:2560×1440
RAM:32GB

I attached the log.
Please check it.

ppsspp_(NPJG00035).zip

@ghost
Copy link

ghost commented Mar 19, 2020

Duplicate #10461

@nassau-tk
Copy link
Contributor Author

Oh Sorry.
Should I close?

@nassau-tk
Copy link
Contributor Author

nassau-tk commented Sep 18, 2020

This issue like a #10461.
But, I think different issue this and that.
So,Reopen the issue.

[Now Invalid Access Error]
It's happen Android9.0/Windows10(34/64-bit).
PPSSPP v1.10.3-709

image

@nassau-tk
Copy link
Contributor Author

And,I find a strange point.
Just before an any movie begins, the part of the subtitles is indicated.
I'm thinking way of reading of data may not be right.
So,Data of subtitle appear the screen.
But,I can't find any more.
I don't also know whether this phenomenon is related to a issue.
It's very Sorry.

01
20
21
22
23
24
25
26
27
28
29

@nassau-tk
Copy link
Contributor Author

This issue happen when select first mission "Tutorial".
Of course real PSP is not happen the issue.

@nassau-tk nassau-tk changed the title [Android][OpenGL&Vulkan][Crash]SOCOM:U.S.Navy SEALs Portable (NPJG00035) [eng title: Socom:U.S. Navy SEALs Fireteam Bravo 3] [Android/Windows][OpenGL&Vulkan][Crash]SOCOM:U.S.Navy SEALs Portable (NPJG00035) [eng title: Socom:U.S. Navy SEALs Fireteam Bravo 3] Nov 29, 2020
@nassau-tk
Copy link
Contributor Author

I got a playing movie.

https://drive.google.com/drive/folders/1imyPOUomnqjq2rzMZzZgVV2HVMEN2LbO?usp=sharing

3 Kind of movie is there.

  1. Skip the movie.
    (Skip is OK and appear the menu.Crash coming when selected the menu.)
  2. Use Fast fowarding the movie.
    (Crash coming when movie finished before appear the menu.)
  3. No touch any button.
    (Crash coming when movie finished before appear the menu.)

But,The movement is not fixed movement.

  • Movie Skip ==> Crash!
  • Fast Fowarding ==> Appear the menu ==> Crash!!
    These will happen too.

@nassau-tk
Copy link
Contributor Author

@hrydgard
@Gamemulatorer

I find a surprised things....😱

This game title inclueds "2-language".( Japanese & English )
And,English & Japanese happened different result.

English is very smooth working.
The beginning part is all right at least.
So,My talk didn't match the issue of #10461.

But,Japanese is too bad result.
See Below.

Note of a tested results.
( Tested CRC : 26F9213E )
( Tested Language is Japanese. )

TEST 1 : Allways "Skip" the first mission's movie.

[Setting below.]
Backend : OpenGL
Mode : Non-buffered rendering
Simulate block transfer effects : ON
Maybe,This setting will best I think.

"Result"
If don't touch fast fowarding switch then the movie skiped and appear the next screen by a high probability.
Conversely,If I touched the switch then it will be a bad result by a high probability.
And,I can select the 2missions on next screen.
It's "TUTORIAL" & "GRAY DAWN".
If select the "TUTORIAL" then it 100% appears "Invalid Memory Access" error.
If select the "GRAY DAWN" then it appears mission's movie and it will can skip and appear the team members screen and sometimes start the mission.

I was surprised taht the error was happening by selected Language.

@sum2012
Copy link
Collaborator

sum2012 commented Dec 24, 2020

v1.10.3-1382-gb40385396
bad japan log:
https://gist.github.com/sum2012/da0eeeafa47bec7556bc59ba81e053d8
good -english log:
https://gist.github.com/sum2012/bc98c0222aa43d02c716b1ea3f87831d

I get idea from JPCSP

@HLEFunction(nid = 0x36AA6E91, version = 150)
public int sceImposeSetLanguageMode(int lang, int button) {
    if (log.isDebugEnabled()) {
        String langStr;
        switch (lang) {
            case PSP_LANGUAGE_JAPANESE: langStr = "JAP"; break;
            case PSP_LANGUAGE_ENGLISH: langStr = "ENG"; break;
            case PSP_LANGUAGE_FRENCH: langStr = "FR"; break;
            case PSP_LANGUAGE_KOREAN: langStr = "KOR"; break;
            default: langStr = "PSP_LANGUAGE_UNKNOWN" + lang; break;
        }

Our ppsspp's code is not same

void __ImposeInit()
{
language = g_Config.iLanguage;
buttonValue = g_Config.iButtonPreference;
umdPopup = PSP_UMD_POPUP_DISABLE;
backlightOffTime = 0;
}

static u32 sceImposeSetLanguageMode(u32 languageVal, u32 buttonVal)
{
DEBUG_LOG(SCEUTILITY, "sceImposeSetLanguageMode(%08x, %08x)", languageVal, buttonVal);
language = languageVal;
buttonValue = buttonVal;
return 0;
}

I will test asap

@nassau-tk
Copy link
Contributor Author

nassau-tk commented Dec 24, 2020

@sum2012

What a fast you!!

@sum2012
Copy link
Collaborator

sum2012 commented Dec 24, 2020

Unlucky still fail

@nassau-tk
Copy link
Contributor Author

l respect your speed of respons.:smile:

@sum2012
Copy link
Collaborator

sum2012 commented Dec 25, 2020

@nassau-tk Can you help me test ?
I am not sure my change is really work :P
https://drive.google.com/file/d/1YSR1PFxBG1TWNCJFUOSWSSohtJrPp1YQ/view?usp=sharing

@nassau-tk
Copy link
Contributor Author

@sum2012

Oh!! Sorry!!
I misstake the extract target folder.
So,I couldn't check right on your custom PPSSPP.

And, I re-tested the it.

"Result"

@sum2012
Copy link
Collaborator

sum2012 commented Dec 25, 2020

Yes,this time I test fail
3

@sum2012
Copy link
Collaborator

sum2012 commented Dec 25, 2020

@sum2012 sum2012 added the PSMF / MPEG Issue involves scePsmf or sceMpeg video playback. label Dec 25, 2020
@sum2012 sum2012 added this to the v1.12.0 milestone Dec 25, 2020
@sum2012
Copy link
Collaborator

sum2012 commented Dec 28, 2020

@shenweip do you interest to help to debug the game (japan lang crash) ?

@shenweip
Copy link
Contributor

What happen if change sceAtrac.cpp line 1310
from
Memory::Write_U32(finish, finishFlagAddr);
to
Memory::Write_U32(1, finishFlagAddr);
?

@sum2012
Copy link
Collaborator

sum2012 commented Dec 28, 2020

No change

@nassau-tk
Copy link
Contributor Author

@unknownbrackets
@hrydgard
@sum2012
@shenweip

#12730 (comment)

I said that "strange list of subtitles appear" issue above.
This subtitles list appear a moment. (less than 1sec.)

But, Subtitle appear continuous After v1.11.2-146-gd8e3bae2d.
See video below.
https://user-images.githubusercontent.com/48179091/118356378-fc326f00-b5af-11eb-9ad5-2990e3a495fd.mp4
It seems "Strange subtitle is pushing up by correct subtitle".
Of course, If the movie finish then Invalid Memory Access comming.

It's not same work before v1.11.2-146-g74a2fecf6.
NOTICE: v1.11.2-146-g74a2fecf6 is not working correctly too.

@hrydgard hrydgard modified the milestones: v1.12.0, Future-Prio Sep 11, 2021
@ghost
Copy link

ghost commented Oct 2, 2021

@nassau-tk try to add this game ID to compat.ini and see if it still crashing 😉
[MpegAvcWarmUp]
NPJG00035 = true

@nassau-tk
Copy link
Contributor Author

@ nassau-tkこのゲームIDをcompat.iniに追加して、まだクラッシュするかどうかを確認してください😉 [MpegAvcWarmUp] NPJG00035 = true

@Gamemulatorer
Thanks for your advide!!
But, Not change any more.... 😭

image

@sum2012
Copy link
Collaborator

sum2012 commented Sep 26, 2022

Update the bad log to v1.13.2-1209-ga26a353c2
https://gist.github.com/sum2012/71b9e80e8a824e2f119af2522668aba6

@sum2012
Copy link
Collaborator

sum2012 commented Oct 4, 2022

@hrydgard @unknownbrackets
New finding from real psp log: https://gist.github.com/sum2012/46c42eccb00c2348c0ff5c2b1cc842c7
0:06.580 user_main - sceKernelLoadModule 0x08E114E0('disc0:/PSP_GAME/USRDIR/module/psmf.prx'), 0x0, 0x00000000 = 0x4094845
Starting module 'scePsmf_library' at 0x9DCBD00
TotalFreeMem=0x202C00, MaxFreeMem=0x202800
TotalFreeMem=0x1F0E00, MaxFreeMem=0x1F0A00
00:06.652 user_main - sceKernelLoadModule 0x08E114E0('disc0:/PSP_GAME/USRDIR/module/libpsmfplayer.prx'), 0x0, 0x00000000 = 0x409277D
Starting module 'scePsmfP_library' at 0x9DCE700
TotalFreeMem=0x1F0E00, MaxFreeMem=0x1F0A00
Starting module 'sceATRAC3plus_Library' at 0x9DE0500
TotalFreeMem=0x1E8A00, MaxFreeMem=0x1E8A00
TotalFreeMem=0x1E8E00, MaxFreeMem=0x1E8A00
00:06.749 user_main - sceUtilityLoadModule 0x302 = 0x0
00:06.759 user_main - sceKernelCreateThread 0x08C7A590('Streamer Thread'), 0x8ACCD94, 16, 0x8000, 0x0, 0x0 = 0x4089475
TotalFreeMem=0x1E0E00, MaxFreeMem=0x1E0A00
00:07.071 user_main - sceUtilityLoadModule 0x500 = 0x80020139

Our ppsspp doesn't return this error code.

@nassau-tk
Copy link
Contributor Author

This issue still happen on v1.16.4-gd4365c6ae.

@hrydgard hrydgard modified the milestones: Future-Prio, v1.17.0 Sep 13, 2023
@sum2012
Copy link
Collaborator

sum2012 commented Nov 23, 2023

Update log to ppsspp-v1.16.6-333-gecab50346-windows-amd64
Simulate UMD delay/ slow reading speed not work
ppsspplog.zip
edit:jpcsp run the game no problem in japanese

@hrydgard hrydgard modified the milestones: v1.17.0, Future-Prio Jan 20, 2024
@nassau-tk
Copy link
Contributor Author

This issue still happen on 1.17.1-730.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
PSMF / MPEG Issue involves scePsmf or sceMpeg video playback.
Projects
None yet
Development

No branches or pull requests

4 participants