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

Reproduce crash using rules #2766

Closed
MadeBySaints opened this issue Mar 8, 2020 · 1 comment
Closed

Reproduce crash using rules #2766

MadeBySaints opened this issue Mar 8, 2020 · 1 comment
Assignees
Labels
bug Broken behavior.

Comments

@MadeBySaints
Copy link

(Working with a project that has multiple maps)

Steps to reproduce:

  1. Open a map, and place tiles with rules, press ctrl+m to autotile. save or don't, up to you. - works just fine
  2. Open another map, place more tiles with rules, press ctrl+m to autotile, editor crash.

Notes
If more than one map is opened in the same session, and both have ruled tiles, trying to apply rules to either map will crash the editor

Sometimes even on a fresh map, when there are more than 5-10 tiles with rules, you have to press ctrl+m multiple times to apply the rules to every tile that uses the rules. Fresh maps have not crashed the editor for me, but I thought these 2 issues may be related.

Added a few photos to show that I have everything set up correctly.

If they are not related, I'll be happy to create a separate issue.

image
image
image
image

@bjorn bjorn added the bug Broken behavior. label Mar 17, 2020
@bjorn bjorn self-assigned this Jun 10, 2020
@bjorn
Copy link
Member

bjorn commented Jun 10, 2020

I could reproduce this crash. The AutoMapper instance is re-used for the other map while it still has a mMapWork pointer pointing at the first map it was instantiated for. This member will either need to be removed or updated before applying the automapping rules to the other map.

@bjorn bjorn closed this as completed in 5d03ea8 Jun 12, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Broken behavior.
Projects
None yet
Development

No branches or pull requests

2 participants