Editor Freezing

Hi,
I’ve noticed that the editor seems to freeze up after a certain amount of time. Is there a log file or something I can look at to see what is going on? I am using Linux Mint 18.3.

Tiled Version 1.1.6

Thanks. Love using Tiled!

Unfortunately Tiled does not keep a log file.

I have not heard before about this problem. Did you encounter it with older versions as well, or is this something new?

What kind of freeze is it? If it’s not crashing and starts to consume 100% CPU, you could try to attach a debugger to the process to see where it is getting stuck.

Hi,
It happened again a few days ago and I attached a debugger to see what was going on. Unfortunately since I am using the released version the output isn’t super readable given that there probably aren’t debug symbols in the executable. If you can give me an idea of how I might provide more useful information about this, I am happy to go collect it.

Freeze Information Collected

The app does not crash, it just freezes. It does not consume 100% CPU (actually it consumes 0% while frozen). That is super weird because I would expect 100% CPU usage too when an application freezes.

I followed some instructions online about attaching a debugger to the process. If you have some better steps, I am happy to use them.

Here’s the information I got:

$ sudo strace -s 99 -ffp 29629
strace: Process 29629 attached with 5 threads
[pid 29639] futex(0xdf63ec, FUTEX_WAIT_PRIVATE, 3, NULL <unfinished ...>
[pid 29640] futex(0xd009dc, FUTEX_WAIT_PRIVATE, 3, NULL <unfinished ...>
[pid 29638] restart_syscall(<... resuming interrupted poll ...> <unfinished ...>
[pid 29637] restart_syscall(<... resuming interrupted poll ...> <unfinished ...>
[pid 29629] futex(0xc07f20, FUTEX_WAIT_PRIVATE, 2, NULL
$ sudo gdb
GNU gdb (Ubuntu 7.11.1-0ubuntu1~16.5) 7.11.1
Copyright (C) 2016 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word".
(gdb) attach 29629
Attaching to process 29629
[New LWP 29637]
[New LWP 29638]
[New LWP 29639]
[New LWP 29640]
/tmp/.mount_Tiled-gM9TzX/usr/bin/tiled: Permission denied.
(gdb) 0xd058226d in ?? ()

(gdb) bt
#0  0xd058226d in ?? ()
Backtrace stopped: Cannot access memory at address 0x30091f48
$ sudo cat /proc/29629/stack
[<ffffffffa1e97037>] do_signal_stop+0xd7/0x230
[<ffffffffa1e98565>] get_signal+0x1a5/0x620
[<ffffffffa1e2d367>] do_signal+0x37/0x750
[<ffffffffa1e03286>] exit_to_usermode_loop+0x76/0xb0
[<ffffffffa1e03b29>] syscall_return_slowpath+0x59/0x60
[<ffffffffa26d6748>] entry_SYSCALL_64_fastpath+0xab/0xad
[<ffffffffffffffff>] 0xffffffffffffffff

I am not super experienced with debugging problems like this. It looks like I may have to do more than what I did so far because I am probably missing other processes/threads being spawned by Tiled.