Go Back   Project64 Forums > General Discussion > Open Discussion

Reply
 
Thread Tools Display Modes
  #1  
Old 8th April 2013, 03:54 AM
oddMLan's Avatar
oddMLan oddMLan is offline
Alpha Tester
Project Supporter
Senior Member
 
Join Date: Jan 2009
Location: Parappa Town
Posts: 210
Exclamation [PJ64 2.0.0.14] CBFD crashes in Recompiler

Steps to reproduce:
1. Start the game, get to the Barn Boys chapter; select the Mad Pitchfork one.
2. Get to the cutscene after Frank the pitchfork says is going to "kick your ass".

Then, I get this error:

Quote:
Unhandled R4300i OpCode at: 150AE1D8
dsrlv v0, t2, t3

Stopping Emulation!
It should worth mentioning that this error does not happen if I select Interpreter instead of the default Recompiler. Although, on my computer Interpreter works really slow.


PC Specs:
Windows 7 SP1 x64, AMD E-450 APU with Radeon(tm) HD Graphics 1.65 GHz, 4GB RAM.

If I remember correctly, I read some user in this forum (Squall, I think) said that the recompiler in this version is really broken, so it's better to choose Interpreter instead. But now that PJ64 is open source...

EDIT: Btw, sorry if I didn't post this in the correct section, I tried to post this in the "Project 64 - v2.x - Issues" subforum, but I doesn't let me to create a new topic.

Last edited by oddMLan; 8th April 2013 at 03:57 AM.
Reply With Quote
  #2  
Old 8th April 2013, 04:22 AM
HatCat's Avatar
HatCat HatCat is offline
Alpha Tester
Project Supporter
Senior Member
 
Join Date: Feb 2007
Location: In my hat.
Posts: 16,236
Default

I don't know enough about the game to understand your reproduction instructions, sorry (never played it, seems too light and goofy to me but I don't play many games).

But yes, the recompiler is severed from the natural flow of an interpreter sometimes.
The RDB was optimized for speed, not stability.
So it was written to encourage error messages like what you got.

So you should go to the "Recompiler" game settings and modify settings there for stability and not speed to see where the presumption was.

It most likely will be because of "Fast SP", "Advanced Block Linking", or "Virtual Lookup Table".
Reply With Quote
  #3  
Old 8th April 2013, 04:40 AM
oddMLan's Avatar
oddMLan oddMLan is offline
Alpha Tester
Project Supporter
Senior Member
 
Join Date: Jan 2009
Location: Parappa Town
Posts: 210
Default

I tested with different combinations, and disabling Register caching did the trick, but the game speed dropped almost around as the interpreter was.
Reply With Quote
  #4  
Old 8th April 2013, 04:51 AM
HatCat's Avatar
HatCat HatCat is offline
Alpha Tester
Project Supporter
Senior Member
 
Join Date: Feb 2007
Location: In my hat.
Posts: 16,236
Default

That's unfortunate, because register caching is one of the biggest optimizations of a dynamic recompiler. Without it, I have never noticed so much of a discernable difference in speed between the re-compiler and an interpreter.

Your best hope would be for an alternative recompiler configuration without having to disable that.

Caching CPU registers was modified since 1.6 to fix Indiana Jones, but, it looks like other games were broken in the process.

Recompilers...so hard to maintain
Reply With Quote
  #5  
Old 9th April 2013, 04:47 AM
oddMLan's Avatar
oddMLan oddMLan is offline
Alpha Tester
Project Supporter
Senior Member
 
Join Date: Jan 2009
Location: Parappa Town
Posts: 210
Default

Enabling the debugger brought me another message:

Quote:
Break point found at
.\N64 System\Interpreter\Interpreter Ops.cpp
2420
Reply With Quote
  #6  
Old 18th January 2014, 06:32 AM
Rjfire Rjfire is offline
Junior Member
 
Join Date: Jan 2014
Posts: 1
Default I'm having the EXACT same issue

Excuse me guys but i'm having the exact same issue. It's unfortunate because I'm trying to record this for a let's play and I've already started it but now I'm stuck due to this error. Did you end up fixing it?


Also you mentioned changing to interpreter and recompiler modes. How exactly do i do that? i'm terrible at using this program since I'm very new to it.

Thanks for reading!
Reply With Quote
  #7  
Old 23rd January 2015, 05:01 PM
oddMLan's Avatar
oddMLan oddMLan is offline
Alpha Tester
Project Supporter
Senior Member
 
Join Date: Jan 2009
Location: Parappa Town
Posts: 210
Default

The bug is now fixed in the latest PJ64 git builds.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT. The time now is 11:54 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2023, Jelsoft Enterprises Ltd.