HeidiSQL loses window focus after importing file on Wine

devta posted 8 months ago in Import/Export

Hi guys,

First time poster here.

I have been using HeidiSQL on Windows for few years now and this is the best mySQL client I have ever used. Recently I have installed HeidiSQL with Wine on my Mac. Everything seems to be OK but whenever I import an SQL file, after import HeidiSQL window loses focus and I cant get the focus back until I quit Wine and reopen HeidiSQL.

It appears some sort of hidden window gets the focus after import and has taken over the main application which blocks getting focus back. I did notice I do not get any sort of confirmation alert after the import but import runs successfully. Attached is the screenshot after the import has run. This is very frustrating.

Are there some recommended Wine configuration settings that needs to be adjusted to run this properly. Your help will be highly appreciated guys. Thank you for your time.

Cheers

1 attachment(s):
  • foundu__local__information_schema__-_HeidiSQL_9_5_0_5196
ansgar posted 8 months ago

Never heard that before. I have no clue how that can happen. At least the "Run SQL file" is using a Windows-specific IProgressDialog, which is probably not fully supported on Wine:

tuxdalinuxpenguin posted 2 weeks ago

I have the same thing I have a bit of a strace from running. It seems to happen with any of the files I run. I do notice that if I open and then run it will work fine. Only the run file part fails like this. I am using mint 19, this has been like this since 18.1, I have tried other debian variants and same thing. Have not tried on any rpm based machines. Heidi is version 9.5.0.5280. Not sure what other info you will need.

STRACE::

rt_sigprocmask(SIG_BLOCK, [HUP INT USR1 USR2 ALRM CHLD IO], [], 8) = 0 write(3, "\213\0\0\0\0\0\0\0\0\1\0\0\1\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\0\0\0\0"..., 64) = 64 read(4, "\0\0\0\0\0\0\0\0b\2\2\0\23\1\0\0\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 64) = 64 rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0 clock_gettime(CLOCK_MONOTONIC_RAW, {tv_sec=498681, tv_nsec=821409393}) = 0 recvmsg(15, {msg_namelen=0}, 0) = -1 EAGAIN (Resource temporarily unavailable) recvmsg(15, {msg_namelen=0}, 0) = -1 EAGAIN (Resource temporarily unavailable) recvmsg(15, {msg_namelen=0}, 0) = -1 EAGAIN (Resource temporarily unavailable) recvmsg(15, {msg_namelen=0}, 0) = -1 EAGAIN (Resource temporarily unavailable) recvmsg(8, {msg_namelen=0}, 0) = -1 EAGAIN (Resource temporarily unavailable) recvmsg(8, {msg_namelen=0}, 0) = -1 EAGAIN (Resource temporarily unavailable) rt_sigprocmask(SIG_BLOCK, [HUP INT USR1 USR2 ALRM CHLD IO], [], 8) = 0 write(3, "\312\0\0\0\0\0\0\0\0\0\0\0?\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 64) = 64 read(4, "\0\0\0\0\0\0\0\0\306\1)\0\0\0\0\0\306\1)\0\306\1)\0\0\0\0\0\0\0\0\0"..., 64) = 64 rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0 rt_sigprocmask(SIG_BLOCK, [HUP INT USR1 USR2 ALRM CHLD IO], [], 8) = 0 writev(3, [{iov_base="~\0\0\0004\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., iov_len=64}, {iov_base="C\0o\0n\0t\0r\0o\0l\0O\0f\0s\0000\0000\0004\0000\0000\0000\0"..., iov_len=52}], 2) = 116 read(4, "\0\0\0\0\0\0\0\0\232\300\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 64) = 64 rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0 rt_sigprocmask(SIG_BLOCK, [HUP INT USR1 USR2 ALRM CHLD IO], [], 8) = 0 write(3, "\267\0\0\0\0\0\0\0\0\0\0\0b\2\2\0\232\300\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 64) = 64 read(4, "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 64) = 64 rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0 clock_gettime(CLOCK_MONOTONIC_RAW, {tv_sec=498681, tv_nsec=822899709}) = 0 clock_gettime(CLOCK_MONOTONIC_RAW, {tv_sec=498681, tv_nsec=823006881}) = 0 recvmsg(15, {msg_namelen=0}, 0) = -1 EAGAIN (Resource temporarily unavailable) recvmsg(15, {msg_namelen=0}, 0) = -1 EAGAIN (Resource temporarily unavailable) recvmsg(15, {msg_namelen=0}, 0) = -1 EAGAIN (Resource temporarily unavailable) recvmsg(15, {msg_namelen=0}, 0) = -1 EAGAIN (Resource temporarily unavailable) recvmsg(8, {msg_namelen=0}, 0) = -1 EAGAIN (Resource temporarily unavailable) recvmsg(8, {msg_namelen=0}, 0) = -1 EAGAIN (Resource temporarily unavailable) rt_sigprocmask(SIG_BLOCK, [HUP INT USR1 USR2 ALRM CHLD IO], [], 8) = 0 write(3, "\213\0\0\0\0\0\0\0\0\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\0\0\0\0"..., 64) = 64 read(4, "\3\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 64) = 64 rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0 clock_gettime(CLOCK_MONOTONIC_RAW, {tv_sec=498681, tv_nsec=823834931}) = 0 recvmsg(15, {msg_namelen=0}, 0) = -1 EAGAIN (Resource temporarily unavailable) recvmsg(15, {msg_namelen=0}, 0) = -1 EAGAIN (Resource temporarily unavailable) recvmsg(15, {msg_namelen=0}, 0) = -1 EAGAIN (Resource temporarily unavailable) recvmsg(15, {msg_namelen=0}, 0) = -1 EAGAIN (Resource temporarily unavailable) recvmsg(8, {msg_namelen=0}, 0) = -1 EAGAIN (Resource temporarily unavailable) recvmsg(8, {msg_namelen=0}, 0) = -1 EAGAIN (Resource temporarily unavailable) sched_yield() = 0 rt_sigprocmask(SIG_BLOCK, [HUP INT USR1 USR2 ALRM CHLD IO], [], 8) = 0 write(3, "\26\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 64) = 64 read(4, "\0\0\0\0\0\0\0\0r\2\3\0\0\0\0\0\234\5\0\0\33\4\0\0\234\5\0\0\33\4\0\0"..., 64) = 64 rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0 clock_gettime(CLOCK_MONOTONIC_RAW, {tv_sec=498681, tv_nsec=824812079}) = 0 poll([{fd=15, events=POLLIN|POLLOUT}], 1, -1) = 1 ([{fd=15, revents=POLLOUT}]) writev(15, [{iov_base="&\1\2\0A\2\0\0", iov_len=8}, {iov_base=NULL, iov_len=0}, {iov_base="", iov_len=0}], 3) = 8 poll([{fd=15, events=POLLIN}], 1, -1) = 1 ([{fd=15, revents=POLLIN}]) recvmsg(15, {msg_name=NULL, msg_namelen=0, msg_iov=[{iov_base="\1\1\274\f\0\0\0\0A\2\0\0\212\t\241\3A\3\353\3A\3\353\3\20\0\0\0\0\0\0\0", iov_len=4096}], msg_iovlen=1, msg_controllen=0, msg_flags=0}, 0) = 32 recvmsg(15, {msg_namelen=0}, 0) = -1 EAGAIN (Resource temporarily unavailable) recvmsg(15, {msg_namelen=0}, 0) = -1 EAGAIN (Resource temporarily unavailable) rt_sigprocmask(SIG_BLOCK, [HUP INT USR1 USR2 ALRM CHLD IO], [], 8) = 0 write(3, "\247\0\0\0\0\0\0\0\374\1\0\0 \0\1\0A\3\0\0\353\3\0\0\0\0\0\0\0\0\0\0"..., 64) = 64 read(4, "\0\0\0\0\4\0\0\0\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 64) = 64 read(4, " \0\1\0", 4) = 4 rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0 rt_sigprocmask(SIG_BLOCK, [HUP INT USR1 USR2 ALRM CHLD IO], [], 8) = 0 write(3, "\242\0\0\0\0\0\0\0\0\0\0\0 \0\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 64) = 64 read(4, "\0\0\0\0\0\0\0\0 \0\1\0 \0\1\0\30\0\0\0\31\0\0\0\1\200\0\0\1\0\0\0"..., 64) = 64 rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0 rt_sigprocmask(SIG_BLOCK, [HUP INT USR1 USR2 ALRM CHLD IO], [], 8) = 0 write(3, "\34\0\0\0\0\0\0\0\0\0\0\0\250\0\0\0\2\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 64) = 64 read(4, "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 64) = 64 rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0 clock_gettime(CLOCK_MONOTONIC_RAW, {tv_sec=498681, tv_nsec=827019098}) = 0 rt_sigprocmask(SIG_BLOCK, [HUP INT USR1 USR2 ALRM CHLD IO], [], 8) = 0 write(3, "\205\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\4\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 64) = 64 read(4, "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 64) = 64 rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0 recvmsg(15, {msg_namelen=0}, 0) = -1 EAGAIN (Resource temporarily unavailable) recvmsg(15, {msg_namelen=0}, 0) = -1 EAGAIN (Resource temporarily unavailable) recvmsg(15, {msg_namelen=0}, 0) = -1 EAGAIN (Resource temporarily unavailable) recvmsg(15, {msg_namelen=0}, 0) = -1 EAGAIN (Resource temporarily unavailable) recvmsg(8, {msg_namelen=0}, 0) = -1 EAGAIN (Resource temporarily unavailable) recvmsg(8, {msg_namelen=0}, 0) = -1 EAGAIN (Resource temporarily unavailable) rt_sigprocmask(SIG_BLOCK, [HUP INT USR1 USR2 ALRM CHLD IO], [], 8) = 0 writev(3, [{iov_base="\32\0\0\0000\0\0\0\0\0\0\0\2\0\0\0\234\357#\0\0\0\0\0\377\377\377\377\377\377\377\177"..., iov_len=64}, {iov_base="\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., iov_len=40}, {iov_base="\1\0\0\0 \1\0\0", iov_len=8}], 3) = 112 read(4, "\3\1\0\0\0\0\0\0\377\377\377\377\377\377\377\177\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 64) = 64 rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0 read(6, ^Cstrace: Process 32374 detached <detached ...>

Please login to leave a reply, or register at first.