mapeditor/tiled

Do you want to work on this issue?

You can request for a bounty in order to promote it!

Tiled freezing when switching application on M2 Mac with macOS Version 13.2.1 #3650

dzoba posted onGitHub

Describe the bug The application freezes and the cursor "beach balls" when attempting to interact. Sometimes application will unfreeze, sometimes stays frozen for a very long time.

To Reproduce Steps to reproduce the behavior:

  1. Open Tiled
  2. Switch to a different application (eg Chrome)
  3. Attempt to switch to Tiled: Failure (tiled is frozen)
  4. Enable Mission Control
  5. Click Tiled
  6. Tiled is frozen / beach balling

Expected behavior Switching back to Tiled does not cause app to Freeze

Media If applicable, add screenshots or videos to help explain your problem.

Specifications:

  • OS: macOS Version 13.2.1
  • Processor: M2
  • Tiled Version: 1.10.2, 1.9.2

For other Mac users with this problem: I was able to get Tiled running on Mac with Crossover. Not a great solution, but it does work.

posted by dzoba about 2 years ago

I think it only occurd on M2 processor. I have a Mac Pro with Intel Xeon and it runs perfectly

I think it mustbe compiled in a specific way for M2?

posted by pixelartgirl almost 2 years ago

This issue has also been reported by several people on the Tiled forum.

As of Tiled 1.10.2, the macOS 10.14+ release is a Universal Binary built against Qt 6.5.2. Please let us know whether this problem still occurs in this version!

posted by bjorn over 1 year ago

I saw this issue twice last week on macOS (Intel!) so I do not think it is specific to Apple Silicon. I don't have a way to reproduce the hang consistently, but if it happens again, I will capture a spindump.

posted by parasyte over 1 year ago

Here it is. Not sure how useful this might be. The app didn't fully freeze or lock up, but it was taking 90% of my CPU for several minutes after waking the laptop that had been sleeping for several days with Tiled v1.10.2 running.

Shortly after the spindump completed, everything went back to normal, mostly. Tiled dropped to ~30% CPU (still seems high) but it remains mostly responsive. Restarting Tiled at this point brings it back down to not registering at all on the CPU percentage, and reponsiveness is much better.

Tiled-Spindump.txt

posted by parasyte over 1 year ago

@parasyte Hmm, the spindump appears to indicate a lot of rendering going on. It seems you have OpenGL acceleration turned on. Maybe try turning that off? Also, if rendering happens a lot even though you are not interacting with Tiled, could you check whether you have playing of tile animations turned on? Finally, do you remember if you were zoomed out a lot on a large map? Just wondering why the rendering would take so much CPU.

posted by bjorn over 1 year ago

I turned the OpenGL renderer on hoping it would be more CPU efficient. In both cases, scrolling around a small map at 200% scale maxes out a CPU core easily. With Tiled being CPU bound, it feels like it is constantly dropping frames. I'll leave it turned off, since it doesn't seem to help.

I have no animations in my map. It's pretty simple, with only half a dozen layers that are sparsely populated. Here's a copy of it with my IP removed. I usually keep it at 200% scale just for comfort.

(FWIW, I know that I'm kind of abusing the tilemap concept, it was just convenient to use tiles that are much larger than the map's tile size. I might break them up into normal sized tiles at some point. I would be a bit surprised to learn this is causing the issue, though...)

example-map.zip

posted by parasyte over 1 year ago

Could people affected by this issue please try whether it still occurs with Tiled 1.11, which was released against Qt 6.7.2?

posted by bjorn 10 months ago

Fund this Issue

$0.00
Funded
Only logged in users can fund an issue

Pull requests