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

Access violation when trying to load any scenario #143

Closed
kevinburke opened this issue May 26, 2014 · 9 comments
Closed

Access violation when trying to load any scenario #143

kevinburke opened this issue May 26, 2014 · 9 comments
Labels
bug Something went wrong.

Comments

@kevinburke
Copy link
Contributor

When I try to load a scenario, I get "Access violation" and a message that the game is attempting to read memory location 0x00000 or 0x000007 or some such.

Stack trace goes from line 303 of RCT2_CALLPROC_EBPSAFE to line 229 of scenario_load_and_play (0x00684AC3) to window_title_scenarioselect.c.

@kevinburke kevinburke changed the title Current master is broken Access violation when trying to load any scenario May 26, 2014
@kevinburke
Copy link
Contributor Author

commit 13d6fa5 lets me load scenarios; more recent commits do not.

@atmaxinger
Copy link
Contributor

Strange, it works for me. Is there any way to reproduce this bug?

@anyc
Copy link
Contributor

anyc commented May 26, 2014

Hm, starting a new game and loading another from within a game works for me, too.

@kevinburke
Copy link
Contributor Author

I just checked out the latest commit from master, ran "Rebuild solution", then "Local Windows Debugger" and I run into an access violation in scenario_load_and_play line 229.

Here are the contents of memory when the exception is triggered http://monosnap.com/image/08BvdJwSwVFAfYcf3nfmVoNMG2mhrB

@kevinburke
Copy link
Contributor Author

Using binary search, the first non-working commit is this one: IntelOrca@27a5761

@atmaxinger
Copy link
Contributor

Does this happen with every scenario? Africa - Victoria Falls is part of an expansion pack (which I don't have)

@kevinburke
Copy link
Contributor Author

No, actually, it doesn't. The RCT2 game info I imported included several levels which I had already beaten (all the levels before Crazy Castle).

It's possible that something in the "completed by" dialog is causing the failure.

@kevinburke
Copy link
Contributor Author

I've added an exception dump here: https://gist.github.com/kevinburke/b0184a79e8c30fb49f00

@duncanspumpkin
Copy link
Contributor

I was also getting this bug. It was crashing on every scenario apart from the 6 flags ones. When i did my initial search i thought it was caused by this 27a5761 commit. Just having a quick look at that commit object_list.c Line 53 onwards shouldn't those address not overlap? (252_4 + 128_4) not (252*4).

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

No branches or pull requests

5 participants