Crash during Android Phone sync

Get help for specific problems
thbenner
Posts: 19
Joined: 17 Jul 2019

Post by thbenner

Hello,

FFS 11.28 (64 bit) crashes during the sync phase. The app simply closes without any message There is no log file from today.

Windows 10
Phone: Xiaomi poco m4 pro (Android 11,MIUI 13.0.10) connected via MTP



How to fix that?

Thomas
User avatar
Zenju
Site Admin
Posts: 6500
Joined: 9 Dec 2007

Post by Zenju

Just in case you're using the portable FFS version: Try the local installation instead, which will add registry keys to have a crashing application actually crash with a crash dump. Rather than this new Windows anti-feature of "silently discarding the evidence", and pretending the app "just closed".
User avatar
Plerry
Posts: 1708
Joined: 22 Aug 2012

Post by Plerry

If that does not do the job, try creating a trace.
https://freefilesync.org/faq.php#trace
thbenner
Posts: 19
Joined: 17 Jul 2019

Post by thbenner

Although the local version is installed, there seems to be no dump. I have sent the trace file to zenju.
User avatar
Zenju
Site Admin
Posts: 6500
Joined: 9 Dec 2007

Post by Zenju

According to the trace file, there should be multiple dmp files on your desktop:

C:\Users\benne\Desktop

FreeFileSync_x64.exe.11400.dmp
FreeFileSync_x64.exe.15256.dmp
FreeFileSync_x64.exe.17060.dmp
FreeFileSync_x64.exe.21484.dmp
FreeFileSync_x64.exe.22916.dmp
FreeFileSync_x64.exe.26724.dmp
FreeFileSync_x64.exe.9352.dmp

And there's also the following dump file. Looks like some service is crashing, probably related to the other crashes:

C:\ProgramData\Microsoft\Windows\WER\Temp\WER8811.tmp.dmp
thbenner
Posts: 19
Joined: 17 Jul 2019

Post by thbenner

Thank you very much. Have sent a link to the dmp files by mail.
User avatar
Zenju
Site Admin
Posts: 6500
Joined: 9 Dec 2007

Post by Zenju

I messed up: I don't have the appropriate debugging symbols anymore. Can you install the latest 11.28 and see if you can still reproduce the crash?
thbenner
Posts: 19
Joined: 17 Jul 2019

Post by thbenner

Done, the file FreeFileSync_x64.exe.17420.dmp is in the same directory.
User avatar
Zenju
Site Admin
Posts: 6500
Joined: 9 Dec 2007

Post by Zenju

Fixed! Turns out the MTP device proposes a buffer size of only 1 byte, which is unexpected for FFS and it deliberately crashes. The reason for this size is that the file in question also has only 1 byte as content, and the "optimal buffer size" is trimmed to the file size for whatever reason.

https://www.mediafire.com/file/2ok67v8p9cl54zw/FreeFileSync_11.29_%255BBeta%255D_Windows_Setup.exe/file
thbenner
Posts: 19
Joined: 17 Jul 2019

Post by thbenner

Thank you for the fast fix!!! How to get back to the donation version? Can I put the key file somewhere or should I wait till 11.29 is appearing on the donation page?
azure55
Posts: 2
Joined: 27 Nov 2022

Post by azure55

Fixed! Turns out the MTP device proposes a buffer size of only 1 byte, which is unexpected for FFS and it deliberately crashes. The reason for this size is that the file in question also has only 1 byte as content, and the "optimal buffer size" is trimmed to the file size for whatever reason.

https://www.mediafire.com/file/2ok67v8p9cl54zw/FreeFileSync_11.29_%255BBeta%255D_Windows_Setup.exe/file Zenju, 24 Nov 2022, 19:17
This also resolved the issue on mine, thanks!