Project

General

Profile

Actions

Emulator Issues #5078

closed

AR Codes Broken. Gives A Series of Errors in Properties Window

Added by dgarahana1 over 12 years ago.

Status:
Fixed
Priority:
Normal
Assignee:
-
% Done:

0%

Operating system:
Windows
Issue type:
Bug
Milestone:
Regression:
Yes
Relates to usability:
No
Relates to performance:
No
Easy:
No
Relates to maintainability:
No
Regression start:
Fixed in:

Description

1) Game Name and ID (as it appears in right click > properties: "GZ2P01",
"RSBE01", etc):

Any game with AR codes in its config.

2) What is the expected output? What do you see instead?
Expect to see the properties window. Instead I get a series of errors like this before reaching the properties window:

"invalid AR Code line: XXXXXXXX XXXXXXXX"
"The address is invalid"
"The value is invalid"

It also clears any previously existing AR codes after those series of errors. I can still add codes and save them, but once I view its properties again, the error messages above appear and deletes them.

4) What steps will reproduce the problem?

  1. Viewing the Properties of a game with AR codes.

5) What version of dolphin are you using (32bit/64bit along with the
version as it appears in the title bar, etc)?
On what operating system, drivers, and hardware? Be sure to list OS,
graphics driver information, and video card model if you are having
graphics problems, for example.

Windows 7 Professional 64-bit
Dolphin 3.0-235

Actions #1

Updated by dgarahana1 over 12 years ago

Forgot to add, it also gives these errors when trying to run a game with them on.

Actions #2

Updated by daco65 over 12 years ago

would be nice to know what the XXXXX is ?

also, see if it saved correctly by checking the ini

Actions #3

Updated by dgarahana1 over 12 years ago

The X's are in hexadecimal. Here is an INI file that can be examined. It looks like it's saved correctly.

Actions #4

Updated by delroth over 12 years ago

Maybe due to mth's recent changes?

Actions #5

Updated by delroth over 12 years ago

  • Status changed from New to Accepted

I saw some reports of that bug on the forum, marking it confirmed.

Actions #6

Updated by mingting1028 over 12 years ago

Comment 4 by project member delroth@gmail.com, Today (13 hours ago)

"Maybe due to mth's recent changes?"

YES...I think...
I have just test 3.0-229 & 3.0-228...
In 3.0-228,AR codes works fine...(test games:SB3J08 - BASARA[Sengoku Basara 3] & S5QJC8 - SengokuMusou 3 Moushouden)
In 3.0-229,AR codes does not work,and codes doesn't show in AR codes list...
Same in 232&235...

Actions #7

Updated by hatarumoroboshi over 12 years ago

r3.0-229 is Revision 27bda2c054f3

Actions #8

Updated by mthuurne over 12 years ago

Could you try reverting only the "value == ULONG_MAX &&" part of that commit?

Also, does this bug occur on all platforms or only on Windows? And on 64-bit only or 32-bit as well?

Actions #9

Updated by mthuurne over 12 years ago

I tried to reproduce the problem on 32-bit and 64-bit OS X, but the AR codes showed up fine there. So I think the issue is Windows specific.

Actions #10

Updated by delroth over 12 years ago

  • Regression set to Yes
  • Operating system Windows added
Actions #11

Updated by mthuurne over 12 years ago

This bit from MSDN's description of strtoul is a bit worrying: "The LC_NUMERIC category setting of the current locale determines recognition of the radix character in nptr; for more information, see setlocale." It means that the format of a hex number could differ depending on what locale settings you are using. Although it is unlikely to explain this issue, since the old code would have had the same problem.

Actions #12

Updated by mingting1028 over 12 years ago

forgot to say...my OS:win7-64
test both 64-bit and 32-bit (229 & 235)

Actions #13

Updated by mingting1028 over 12 years ago

I usually copy old config (Dolphin.ini...) to new ver.,in this way,it doesn't show the error like marioman...@gmail.com says...,can play the game,but AR codes just not work...

It shows error if not copying old config to new ver.
"invalid AR Code line: XXXXXXXX XXXXXXXX"
"The address is invalid"
"The value is invalid"

Actions #14

Updated by tommyhl2.SS over 12 years ago

myuhh: Just opening the properties gives the errors here with the latest builds, not even trying to use an AR code. Windows 7, x64. This should be reverted until it gets sorted out.

Actions #15

Updated by tommyhl2.SS over 12 years ago

Er, was supposed to say mthuu: :p

Actions #16

Updated by mthuurne over 12 years ago

I'm not in favor of reverting because then the whole issue is likely to be forgotten. I'd like to get this fixed soon, but I need help with that since I don't have a Windows system at my disposal.

Isn't there a Windows coder out there who could have a look at this? The messages are PanicAlerts from ActionReplay::LoadCodes(). Apparently both the address and the value are being rejected. There are 3 "return false" statements in TryParse(), so it would be very useful to know which one of them triggers and on what input(s).

Actually, anyone who is capable of building Dolphin on Windows could try out the suggestion from comment #8, which would narrow things down quite a bit already.

Actions #17

Updated by tommyhl2.SS over 12 years ago

mthuu: Master is not the place to try out code and hope that it works. It causes issues and should be reverted. Maybe next time you should commit to a branch and not subject everyone to code that causes issues.

For what it's worth, I'm on irc most days and can test your changes, it won't be forgotten if you fix it. I'll be the guy named [SS] and you can ask me to test your attempted fixes. Until then, please revert.

Actions #18

Updated by hatarumoroboshi over 12 years ago

It may seem somewhat like a PC developer publishing a game without testing it on Ati(Amd) and/or Nvidia video cards and then asking the users to fix the bugs:-)

Actions #19

Updated by mthuurne over 12 years ago

@#17: It wasn't a "let's hope it work" type commit: I checked the code, I wrote a unit test for it and cotton did the same on Windows. Somehow this issue slipped through, but it was not because of carelessness. I didn't revert it because I expected to be able to fix it very soon, but I need help for that from a Windows user and I've received no help yet. I hope we can sort it out on IRC today.

@#18: PC game devs have internal builds fail like that regularly, you just don't see those because they are tested and the issue is fixed before release. Devs and power users are our equivalent of a company's QA team, users who download only releases are the equivalent of users of PC games.

Actions #20

Updated by skidau over 12 years ago

  • Status changed from Accepted to Fixed

This issue was closed by revision 1df7af35e994.

Actions #21

Updated by mthuurne over 12 years ago

Thanks to skidau for testing and fixing this!

Actions #22

Updated by tommyhl2.SS over 12 years ago

Thanks indeed.

Actions

Also available in: Atom PDF