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

AutoMap feature segfaults Tiled on Ubuntu 18.10 #2157

Closed
DaVince opened this issue Jul 14, 2019 · 3 comments
Labels
bug

Comments

@DaVince
Copy link

@DaVince DaVince commented Jul 14, 2019

For some reason, Tiled closes with a Segmentation fault every time I try to use the AutoMap feature. This seems to happen on all versions for me: the Ubuntu-provided package, the latest pre-compiled version and when I compile from latest Git.

Running Tiled with gdb nets me the following message:

Thread 1 "tiled" received signal SIGSEGV, Segmentation fault.
0x00005555557f69c1 in Tiled::TileLayerItem::syncWithTileLayer() ()

I'm running Ubuntu 18.10 on a Dell Latitude E6430.

I've attached the rule and automapping tmx as well as a test map:
automap-crash.zip

@JoaoBaptMG

This comment has been minimized.

Copy link
Contributor

@JoaoBaptMG JoaoBaptMG commented Jul 15, 2019

Were you using some of the features I introduced, like OverflowBorder and WrapBorder?

@bjorn bjorn added the bug label Jul 15, 2019
@bjorn

This comment has been minimized.

Copy link
Owner

@bjorn bjorn commented Jul 15, 2019

Hmm, this is due to the use of group layers, which are not currently supported by the AutoMapping feature. But apparently it can even crash the application, if you have a group layer with the same name as a tile layer.

@bjorn bjorn closed this in d8e3a07 Jul 15, 2019
@bjorn

This comment has been minimized.

Copy link
Owner

@bjorn bjorn commented Jul 15, 2019

I've pushed a fix for this crash, but it will not make the automapping rules work since nested layers are still unsupported. Maybe I can find some time to make it work in Tiled 1.3, but for now you'd have to take your input layers out of any group layers. Output layers will also be added at the top level.

To work around the problem in your local version, make sure you do not use the same name in the target map for layers that are tile layers in the rule map (the problem was caused by the group layer called "base").

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants
You can’t perform that action at this time.