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

Armored Core Last Raven - Possibly others - Emulator Crash #5999

Closed
kingpinzero opened this issue May 1, 2014 · 36 comments
Closed

Armored Core Last Raven - Possibly others - Emulator Crash #5999

kingpinzero opened this issue May 1, 2014 · 36 comments

Comments

@kingpinzero
Copy link

Version: v0.9.8-561-g2b50fcb
Emulator settings as default, so without Fast Memory or Multi Threaded.
Tested on Galaxy S2 (4.1.2) and Nvidia Shield (4.4).
Rendering methods doesnt affect the bug.

AC:LR freezes the whole emulator, but doesnt crash it.
Its easily reproducible. First mission in the mission map, on the far right. Rotate the camera until you almost look at the sun, positioned at the player's back.

It doesnt happen on windows: on windows instead, the sun makes hud, lighting and part of the graphics disappear while a grey "filter" appears.

@unknownbrackets
Copy link
Collaborator

Does this still happen with the latest git build?

-[Unknown]

@kingpinzero
Copy link
Author

Yes it does. Althought the graphical issues of the boost are fixed. But as long as you move the camera toward the sun, it hard freezes the emu. On android. On windows, all good as ever.

@unknownbrackets
Copy link
Collaborator

Do you have a compiler? It sounds like this may be a bug in the armjit, I have instructions on how to find such a bug here:
#2278 (comment)

Or does this game have any demo version that reproduces the issue?

-[Unknown]

@kingpinzero
Copy link
Author

No i dont, the game was dumped by original version using my CFW'ed psp.
Dunno how i can help. Demo doesnt exist afaik.

@unknownbrackets
Copy link
Collaborator

If it was an armjit bug, it may have improved in the latest git build.

-[Unknown]

@kingpinzero
Copy link
Author

I dont know. I tested the game two days ago, and still same thing happens. What can i do to help identify the issue?

@unknownbrackets
Copy link
Collaborator

The very very latest build, from today, contains a fix for some bugs that only happened on ARM, not on Windows devices. Those fixes didn't exist two days ago.

-[Unknown]

@kingpinzero
Copy link
Author

Gonna test on my Shield and report back. thanks.

@kingpinzero
Copy link
Author

Ok tested again, and still same thing happen. In the exact moment you raise the camera to look at the sun behind you, first mission, it freezes the whole emulator.
Tell me if you need a video. Also for testing sake im not using any hack, that means no fast memory, multi threading and stuff. All "clean".

@xsacha xsacha added the armjit label Jul 1, 2014
@sum2012
Copy link
Collaborator

sum2012 commented Jul 1, 2014

I get freeze in windows
v0.9.8-1514-g602daf5-windows-amd64

look at the sky,then move the carmera
info log:
https://gist.github.com/sum2012/c2e482d7b268122f160f
debug log:
https://drive.google.com/file/d/0B3OaSdeV0L8kbkwwVEJ2RjVJSkU/edit?usp=sharing

@kingpinzero
Copy link
Author

Its easy to replicate.
From mission menu, select Destroy Military Base.

Heres the image of the mission:
Image: http://i.imgur.com/CFdDboq.jpg
Heres the exact moment of the Freeze. At the start of the mission, just turn around and raise the viewpoint.
This happens on windows as well.
Image2: http://i.imgur.com/fP9t92v.jpg

@kingpinzero
Copy link
Author

Choose the mission i snapped in the first picture. First mission on the right IIRC.

@kingpinzero
Copy link
Author

No man, i told you. Start a new game, go in missions and select the one i snapped above.

@xsacha
Copy link
Collaborator

xsacha commented Jul 1, 2014

Sorry, just realised I have wrong game :\ I have Silent Line, you have Last Raven.

Edit: Removed comments and moved to forum.

@kingpinzero
Copy link
Author

better you remove the posts then, theyre not related to this error. It doesnt help at all.

@unknownbrackets
Copy link
Collaborator

If this happens on Windows, not an armjit bug.

56:31:142 UNKNOWN GAME D[SCEGE]: HLE\sceGe.cpp:490 sceGeDrawSync(mode=0) (0=wait for completion, 1=peek)

It doesn't come back from this in the log by 56:35:038. If you pause it in the Disassembly, does it show "UNKNOWN GAME THREAD" as waiting for the draw sync? What if you right click and force resume it?

It seems like there's a list that is stalled, so it hangs waiting for drawsync...

-[Unknown]

@sum2012
Copy link
Collaborator

sum2012 commented Jul 1, 2014

freeze picture,Not sure related to sceGeContinue
1

@sum2012
Copy link
Collaborator

sum2012 commented Jul 1, 2014

"UNKNOWN GAME THREAD" as waiting for the GeDrawsync
force resume it no help
2

@unknownbrackets
Copy link
Collaborator

Does it just go back into waiting if you force resume it? Maybe try 5-10 times to force resume, unpause, pause, force resume.

-[Unknown]

@sum2012
Copy link
Collaborator

sum2012 commented Jul 1, 2014

No,it doesn't go back waiting status.Don't help do 5-10 times to force resume, unpause, pause, force resume.

@kingpinzero
Copy link
Author

So THERE is a problem afterall. I suspect that something similar can happen in other games that show a similar behavior.

@xsacha
Copy link
Collaborator

xsacha commented Jul 3, 2014

I get this freeze picture on both Armored Core: Last Raven and Armored Core: Silent Line. Looks like they are related.
It happens on Linux (x86) and Android (arm) so not JIT issue.

Actually, on Windows, I don't get the freeze. I get the grey filter with missing HUD as described.
At this time, it spams me with:
20:18:257 UNKNOWN GAME E[G3D]: GPUCommon.cpp:820 Signal with Pause UNIMPLEMENTED! signal/end: 0000 0000

Afterwards, I think when the character died, I also noticed:
21:29:540 UNKNOWN GAME W[G3D]: GLES\Framebuffer.cpp:1719 Block transfer download (not supported) 04088000 -> 04154000
21:29:570 UNKNOWN GAME W[G3D]: GLES\Framebuffer.cpp:1715 Intra buffer block transfer (not supported) 04000000 -> 04154000

Edit: The Windows is on v0.9.8-0 which may be why it gets different result.
Although, it shows that the issue may be with a recently implemented GPU signal.

Edit#2: Reverting 4561440 and 702294f fixes the crash (but gives it the grey filter and missing HUD).

Reverting only 4561440 (GPUCommon.cpp component) fixes the crash and the grey filter/missing hud. That is, after reverting this commit this game runs perfectly!

Edit#3: Adding back lines 334-335 in that commit makes the game work without bugs.

@kingpinzero
Copy link
Author

So whats exactly the state of the game now? Is it playable or?

@Mars-178
Copy link

Added the lines 334-335 suggested by @xsacha. Game freezing's gone in windows if Multithreaded option is disabled. Tested only the 64-bit variant.

@kingpinzero
Copy link
Author

As today, with version v0.9.9-34-gb7ac539, the problem still persist without MT enabled. Tested 64 bit variant, the freeze still occur.

@4XPG
Copy link

4XPG commented Apr 3, 2015

On Armored Core: Silent Line: Using build v1.0.1-238-g6573bca, in the mission "Escort Transport" (one of the two second mission) hangs right after opening the first door.
http://i.imgur.com/yuUYqkP.png
On Armored Core 3: hangs while loading Prevent Capsule Theft (1st Layer: Nature Area) mid-game mission (map ambient sound effect still can be heard for some reason)
http://i.imgur.com/R75q1s6.png

update: can confirm, "Destroy Military Base" on ACLR: P still hangs. All tested with default settings and with both multithreading enabled and disabled
http://i.imgur.com/dC19w1d.png

@4XPG
Copy link

4XPG commented Apr 6, 2015

Here's an example of the sunlight effect that cause the hang.
http://i.imgur.com/34RDlF2.jpg

On the older build (I used 0.9.1) it completely removes the HUD and fills the screen with transparent grey filter instead of hang as mentioned before. I think the change that supposed to "fix" this issue on the Android build made the hanging issue persists on the Windows version too.

@Krylia
Copy link

Krylia commented Jun 1, 2015

EDIT: Compiling latest git build as 64bit for windows along with using the line re-additions in GPU/GPUcommon.cpp (Line 334 and line 335) suggested by xsacha fixed the hang/freeze in both AC:3P and AC:SL, it's either due to the line re-additions or due to the revert to default emulator settings. Not sure. I do not have last raven, unfortunately, however clearly these freezes are common among this series of game.

@LionMagnus
Copy link

I found a old hack version of the emulator that works with Last Raven, only problem is the blackbox when boosting. Hopefully they will release a new version that fix this.

@LunaMoo LunaMoo changed the title Armored Core Last Raven - Possibly others - Emulator Crash on Android Armored Core Last Raven - Possibly others - Emulator Crash Mar 17, 2018
@dulsan
Copy link

dulsan commented Mar 18, 2019

I still have the same issue, In Armored core Silent line the game freezes at certain missions. Specially the space satellite mission with another raven. I tried everything and i have no progress. Any ideas of how this could have happened? My guess would be a memory cashing problem, something to do with the loading of assets. As in my game the vertexes don't load neither does the textures, but the Kernel is processing the same data over and over again in a loop:
image

It stops exactly at Pitch 5. And does not call any other things in the class.

Here are the specs i am currently running:
image
image

I am using the latest version of the software: v1.8.0 (18/03/2019)

@unknownbrackets
Copy link
Collaborator

That it's spending all its time in delay thread seems to mean that it has hung...

I think we'll need to do more hardware tests on the GE signals to figure out what about the pause signal we still have wrong. Maybe it's a firmware version difference...

-[Unknown]

@unknownbrackets unknownbrackets added the Needs hardware testing Testing on a real device needed to determine correct behavior. label Jun 24, 2019
@unknownbrackets
Copy link
Collaborator

It would be useful to know what code this game has in its signal handler - specifically, what HLE functions it calls from it. I'll try to do some more tests soon.

-[Unknown]

@stonelike
Copy link

Thank you for your efforts. If I can provide any useful logs or such, please let me know.

@hrydgard
Copy link
Owner

hrydgard commented Jul 7, 2019

Please try again with a fresh build - unknown's latest finding has good chances of helping this.

@unknownbrackets unknownbrackets added this to the v1.9.0 milestone Jul 7, 2019
@unknownbrackets unknownbrackets removed the Needs hardware testing Testing on a real device needed to determine correct behavior. label Jul 7, 2019
@hrydgard
Copy link
Owner

hrydgard commented Aug 6, 2019

No feedback? moving to v1.10.0 for now.

@unknownbrackets
Copy link
Collaborator

I think given that it fixed Bleach and the lines of code xsacha pointed at would've caused similar behavior in the buggy case (and wrong behavior in other cases), we should just mark it v1.9.0 and close it.

If this is still an issue in the latest git builds or in versions newer than v1.9.0, please comment with more information and we'll reopen.

-[Unknown]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests