FileZilla Server GUI error message at Shutdown

Need help with FileZilla Server? Something does not work as expected? In this forum you may find an answer.

Moderator: Project members

Message
Author
User avatar
boco
Contributor
Posts: 26899
Joined: 2006-05-01 03:28
Location: Germany

FileZilla Server GUI error message at Shutdown

#1 Post by boco » 2022-06-30 14:12

No idea if this error is relevant or fixable (as I'm on 7 fully updated), but this is what I (often but not always) receive when shutting down:
filezilla-server-gui.exe - Application Error
The instruction at 0x70cc1bd0 referenced memory at 0x05eb01a0. The memory could not be read. Click on OK to terminate the program
filezilla-server-gui.exe - Application Error
The instruction at 0x70f669c0 referenced memory at 0x70f669c0. The memory could not be written. Click on OK to terminate the program
filezilla-server-gui.exe - Application Error
The instruction at 0x0048e0a0 referenced memory at 0x0048e0a0. The memory could not be written. Click on OK to terminate the program
The addresses seem random and there are no further Event Viewer entries nor logs (because it happens on Shutdown).
### BEGIN SIGNATURE BLOCK ###
No support requests per PM! You will NOT get any reply!!!
FTP connection problems? Please do yourself a favor and read Network Configuration.
FileZilla connection test: https://filezilla-project.org/conntest.php
### END SIGNATURE BLOCK ###

User avatar
oibaf
Contributor
Posts: 396
Joined: 2021-07-16 21:02
First name: Fabio
Last name: Alemagna

Re: FileZilla Server GUI error message at Shutdown

#2 Post by oibaf » 2022-06-30 15:33

It's a known issue on windows, that has to do with the de-initialization of thread local storage variables, which the gcc/mingw guys are working on.

One instance of that problem is illustrated here: https://github.com/msys2/MINGW-packages/issues/2519

In the FileZilla Server we've implemented a brute workaround, which is available in the current nightlies and and will be available in the next release. The nightlies still lack this workaround for the gui application, though, whilst it's provided for all the other applications we ship.

User avatar
oibaf
Contributor
Posts: 396
Joined: 2021-07-16 21:02
First name: Fabio
Last name: Alemagna

Re: FileZilla Server GUI error message at Shutdown

#3 Post by oibaf » 2022-07-01 08:01

The issue should be fixed starting from the next nightly build.

User avatar
boco
Contributor
Posts: 26899
Joined: 2006-05-01 03:28
Location: Germany

Re: FileZilla Server GUI error message at Shutdown

#4 Post by boco » 2022-07-13 16:45

Yesterday at shutdow, the first crash with 1.5.1-rc1

Code: Select all

Application popup: filezilla-server-gui.exe - Application Error : The instruction at 0x1f1c00d4 referenced memory at 0x1f1c00d4. The memory could not be written.

Click on OK to terminate the program
fzs1.5.1-rc1_crash.png
fzs1.5.1-rc1_crash.png (41.25 KiB) Viewed 3377 times
### BEGIN SIGNATURE BLOCK ###
No support requests per PM! You will NOT get any reply!!!
FTP connection problems? Please do yourself a favor and read Network Configuration.
FileZilla connection test: https://filezilla-project.org/conntest.php
### END SIGNATURE BLOCK ###

User avatar
oibaf
Contributor
Posts: 396
Joined: 2021-07-16 21:02
First name: Fabio
Last name: Alemagna

Re: FileZilla Server GUI error message at Shutdown

#5 Post by oibaf » 2022-07-13 17:18

Would you please provide us with a minidump and send it to tim.kosse@filezilla-project.org?

Thanks.

User avatar
boco
Contributor
Posts: 26899
Joined: 2006-05-01 03:28
Location: Germany

Re: FileZilla Server GUI error message at Shutdown

#6 Post by boco » 2022-07-13 22:30

Do you mean a Crashdump? None is ever created, it happens at shutdown and I guess the infrastructure for that is already gone.
Killing it over the task manager does never provoke a crash.

Another thing: Shouldn't the icon in the Systray have a context/right-click menu? Right now, there is none, nothing happens on right clicking.
### BEGIN SIGNATURE BLOCK ###
No support requests per PM! You will NOT get any reply!!!
FTP connection problems? Please do yourself a favor and read Network Configuration.
FileZilla connection test: https://filezilla-project.org/conntest.php
### END SIGNATURE BLOCK ###

User avatar
oibaf
Contributor
Posts: 396
Joined: 2021-07-16 21:02
First name: Fabio
Last name: Alemagna

Re: FileZilla Server GUI error message at Shutdown

#7 Post by oibaf » 2022-07-14 07:10

Yes, the crashdumps, which are produced in the "minidump" format, according to how things are configured at installation time.

You've looked into %LOCALAPPDATA%\CrashDumps and found nothing of interest?

Which OS are you running the UI on? Just in case, would you be able to run the UI through gdb and provide us with a backtrace?

As for the tray icon: there's no context menu at the moment, you can just click on it and make the UI window pop up; hover the mouse on it and have some info be displayed; gather some info by the icon changing colors.

What items would you prefer to have in a tray icon context menu?

User avatar
botg
Site Admin
Posts: 35492
Joined: 2004-02-23 20:49
First name: Tim
Last name: Kosse

Re: FileZilla Server GUI error message at Shutdown

#8 Post by botg » 2022-07-14 07:44

Please clarify: Program shutdown, or system shutdown?

User avatar
boco
Contributor
Posts: 26899
Joined: 2006-05-01 03:28
Location: Germany

Re: FileZilla Server GUI error message at Shutdown

#9 Post by boco » 2022-07-14 15:19

Please clarify: Program shutdown, or system shutdown?
System shutdown. Program shutdown doesn't cause it. Yesternight's message:

Code: Select all

Application popup: filezilla-server-gui.exe - Application Error : The instruction at 0x56e31be3 referenced memory at 0xffffffff. The memory could not be read.

Click on OK to terminate the program
Yes, the crashdumps, which are produced in the "minidump" format, according to how things are configured at installation time.

You've looked into %LOCALAPPDATA%\CrashDumps and found nothing of interest?
It's empty. %Windir%\Minidump had only an old, unrelated one from April. There is not even a true Event Viewer error entry, just an info for the "Application Popup". The system doesn't see this as being an error.

Which OS are you running the UI on? Just in case, would you be able to run the UI through gdb and provide us with a backtrace?
Windows 7 fully updated to July 2022. It's not officially supported, so, I'll first try to reproduce it under other OS. Being no developer, gdb might be beyond me, however, maybe there is a debug build of the GUI providing full info in case of the crash?

As for the tray icon: there's no context menu at the moment, you can just click on it and make the UI window pop up; hover the mouse on it and have some info be displayed; gather some info by the icon changing colors.

What items would you prefer to have in a tray icon context menu?
The Systray icon should have a context menu with at least one item: Exit. Sometimes I have multiple Admin GUIs open by accident.



There's also a very long-standing Windows bug I'm fighting against (concerning Systray /Notification area icons). To my knowledge, it's not really fixed to this day. If the system is very busy at start, several of my programs (including FileZilla Server GUI) will start, but won't get an icon in the Systray area (async loading of icons failing due to a race condition).
FileZilla Server will recover its icon upon the first state change, so, could you implement an icon refresh one or two minutes after start? It would spare me the need to restart the process or arbitrarily connecting to it, for making the icon visible.
### BEGIN SIGNATURE BLOCK ###
No support requests per PM! You will NOT get any reply!!!
FTP connection problems? Please do yourself a favor and read Network Configuration.
FileZilla connection test: https://filezilla-project.org/conntest.php
### END SIGNATURE BLOCK ###

User avatar
boco
Contributor
Posts: 26899
Joined: 2006-05-01 03:28
Location: Germany

Re: FileZilla Server GUI error message at Shutdown

#10 Post by boco » 2022-12-11 06:44

After a long time, I've now experienced the error at shutdown on Windows 10 (with 1.6.1). So, that's proof it is not only occurring on legacy OS.

As usual, there is no Crashdump generated in %LOCALAPPDATA%\CrashDumps.
fzs_error_1.6.1.png
fzs_error_1.6.1.png (7.04 KiB) Viewed 1666 times
### BEGIN SIGNATURE BLOCK ###
No support requests per PM! You will NOT get any reply!!!
FTP connection problems? Please do yourself a favor and read Network Configuration.
FileZilla connection test: https://filezilla-project.org/conntest.php
### END SIGNATURE BLOCK ###

User avatar
botg
Site Admin
Posts: 35492
Joined: 2004-02-23 20:49
First name: Tim
Last name: Kosse

Re: FileZilla Server GUI error message at Shutdown

#11 Post by botg » 2022-12-14 10:17

Strange, why is it you don't get crash dumps.

User avatar
boco
Contributor
Posts: 26899
Joined: 2006-05-01 03:28
Location: Germany

Re: FileZilla Server GUI error message at Shutdown

#12 Post by boco » 2022-12-14 11:35

Could it be because it's at shutdown? Although I'd expect the debugging subsystem to de-initialize later.
### BEGIN SIGNATURE BLOCK ###
No support requests per PM! You will NOT get any reply!!!
FTP connection problems? Please do yourself a favor and read Network Configuration.
FileZilla connection test: https://filezilla-project.org/conntest.php
### END SIGNATURE BLOCK ###

User avatar
oibaf
Contributor
Posts: 396
Joined: 2021-07-16 21:02
First name: Fabio
Last name: Alemagna

Re: FileZilla Server GUI error message at Shutdown

#13 Post by oibaf » 2022-12-14 11:40

It doesn't crash if you close the application manually?

User avatar
boco
Contributor
Posts: 26899
Joined: 2006-05-01 03:28
Location: Germany

Re: FileZilla Server GUI error message at Shutdown

#14 Post by boco » 2022-12-14 11:46

It has never crashed when closing manually. I can see it first closing the connection to the server engine before destroying the GUI and process.

Could it be the GUI is closed too rapidly by Windows? Possibly it doesn't get enough time to disconnect before being closed?

Another note: It doesn't occur every time, hinting to a race condition of some sort.
### BEGIN SIGNATURE BLOCK ###
No support requests per PM! You will NOT get any reply!!!
FTP connection problems? Please do yourself a favor and read Network Configuration.
FileZilla connection test: https://filezilla-project.org/conntest.php
### END SIGNATURE BLOCK ###

User avatar
oibaf
Contributor
Posts: 396
Joined: 2021-07-16 21:02
First name: Fabio
Last name: Alemagna

Re: FileZilla Server GUI error message at Shutdown

#15 Post by oibaf » 2022-12-14 12:24

I assume it doesn't crash if you kill it using the Task Manager either?

Here I found somebody having the same issue with their own program: https://stackoverflow.com/questions/309 ... e-computer

That gave me some guidance as of how to possibly debug this.

Post Reply