Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: Windows Client Crash when Sync - Errorcode: 0xc0000409 #7258

Open
5 of 8 tasks
PaulEDV opened this issue Oct 2, 2024 · 18 comments
Open
5 of 8 tasks

[Bug]: Windows Client Crash when Sync - Errorcode: 0xc0000409 #7258

PaulEDV opened this issue Oct 2, 2024 · 18 comments

Comments

@PaulEDV
Copy link

PaulEDV commented Oct 2, 2024

⚠️ Before submitting, please verify the following: ⚠️

Bug description

The Windows client regularly crashes during the first synchronization and does not start automatically afterwards.

This affects several of our clients but not all, regardless of whether Windows 10 22h2 or Windows 11 23h2.
See forum post:
https://help.nextcloud.com/t/windows-desktop-version-crash-when-sync/205224/3

The following message is in the Windows event log:


Name der fehlerhaften Anwendung: nextcloud.exe, Version: 3.14.1.55839, Zeitstempel: 0x66f6776f
Name des fehlerhaften Moduls: ucrtbase.dll, Version: 10.0.19041.3636, Zeitstempel: 0x81cf5d89
Ausnahmecode: 0xc0000409
Fehleroffset: 0x000000000007286e
ID des fehlerhaften Prozesses: 0x6240
Startzeit der fehlerhaften Anwendung: 0x01db13e6640a5c1f
Pfad der fehlerhaften Anwendung: C:\Program Files\Nextcloud\nextcloud.exe

Here are the log files of the Nextcloud client and the event log:
nextcloud_log.zip

Steps to reproduce

  1. install Nextcloud Client
  2. connect Nextcloud Client with the Nextcloud
  3. set up Nextcloud Sync with virtual files
  4. wait until client crashes unnoticed

Expected behavior

The Nextcloud client should display an error message in the event of a crash or restart automatically after a crash during sync

Which files are affected by this bug

last Sync File in the log is: 20220314_Art der Vergabe - Verknüpfung.lnk

Operating system

Windows

Which version of the operating system you are running.

Windows 10 22H2 an Windows 11 23H2

Package

Official Windows MSI

Nextcloud Server version

29.0.5

Nextcloud Desktop Client version

3.14.1

Is this bug present after an update or on a fresh install?

Fresh desktop client install

Are you using the Nextcloud Server Encryption module?

Encryption is Disabled

Are you using an external user-backend?

  • Default internal user-backend
  • LDAP/ Active Directory
  • SSO - SAML
  • Other

Nextcloud Server logs

No response

Additional info

No response

@Killea
Copy link

Killea commented Oct 3, 2024

same issue.
down to 3.13.3 worked for me. (I also disabled auto upgrade)
could also try Nextcloud-3.13.4-x64.msi
3.14+ will not work.

@eckgit
Copy link

eckgit commented Oct 5, 2024

The same issue with Nextcloud-Client-version 3.14.1 in virtual folder mode occured for me in Windows 11 Pro, 10.0.22631, Build 22631.
Will give also version 3.13.3 a try.

@y0umu
Copy link

y0umu commented Oct 6, 2024

I encountered the same problem even without using the virtual folder mode. Versions are 3.14.0-x64, 3.13.4-x64 on windows.

@PaulEDV
Copy link
Author

PaulEDV commented Oct 7, 2024

Version 3.13.3 works for me. Synchronization is currently running there without crashes.

@mgallien
Copy link
Collaborator

mgallien commented Oct 9, 2024

@PaulEDV and others
I have a possible fox for this
already merged in stable branch
you can test this test build from the 3.14 stable branch
https://cloud.nextcloud.com/s/Pfw35DDoDWGnft2

@nkamkar
Copy link

nkamkar commented Oct 9, 2024

Hi mgallien

Thank you for the update. I have installed the build from the link you have provided on 2 problematic machines and both are now behaving well again. I will continue to monitor to ensure they remainwell-behaved, but for now, I would like to specially thank you for providing the fix.

Best wishes

Nima

@toxn
Copy link

toxn commented Oct 10, 2024

Just had the same bug with a 256-chars path with the latest stable (3.14.1).

Last log line:

2024-10-10 13:47:37:597 [ warning nextcloud.sync.filesystem C:\Users\User\AppData\Local\Temp\windows-26085\client-building\desktop\src\libsync\filesystem.cpp:204 ]:    Error setting mtime for "C:/Users/redact/Documents/redac/redactedredactedreda/redactedredacted/redactedredactedredactedredactedredactedredactedr/redactedreda/redacte/.redactedredactedredactedredactedredactedredactedredactedredactedredactedredactedredactedredactedredactedreda.pptx.~559c" failed: rc -1 , errno: 20 

@madtownchris
Copy link

The updated installer linked by @mgallien appears to solve the issue I encountered (app event pasted below) which I believe is the core issue here:

Faulting application name: nextcloud.exe, version: 3.14.1.55839, time stamp: 0x66f6776f
Faulting module name: ucrtbase.dll, version: 10.0.22621.3593, time stamp: 0x10c46e71
Exception code: 0xc0000409
Fault offset: 0x000000000007f6fe
Faulting process id: 0x0x34B4
Faulting application start time: 0x0x1DB1C01AB284F7E
Faulting application path: C:\Program Files (x86)\Nextcloud\nextcloud.exe
Faulting module path: C:\WINDOWS\System32\ucrtbase.dll
Report Id: 1bf3b91c-69e2-4388-9f13-220df256c405
Faulting package full name:
Faulting package-relative application ID:

@ziyiat
Copy link

ziyiat commented Oct 12, 2024

-
nextcloud.exe
3.14.1.55839
66f6776f
ucrtbase.dll
10.0.19041.3636
81cf5d89
c0000409
000000000007286e
274
01db1cc92afb0abf
D:\Program Files\Nextcloud\nextcloud.exe
C:\WINDOWS\System32\ucrtbase.dll
f4123dcc-4b31-40c4-a28f-044ea406f59b



@radiskis
Copy link

@mgallien installer solved the problem, previously Nextcloud 3.14.1 x64 on Windows 11 in folder without virtual files logged such an error (file name redacted with character "1") and quit silently:

2024-10-17 11:05:37:336 [ warning nextcloud.sync.filesystem C:\Users\User\AppData\Local\Temp\windows-26085\client-building\desktop\src\libsync\filesystem.cpp:204 ]: Error setting mtime for "C:/Users/User/Nextcloud/1111111111111/111111111111111111111111/111111111/.1111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111.docx.~745f" failed: rc -1 , errno: 20

@airbenich
Copy link

Same behaviour on our clients. Thanks @mgallien for the installer. This fixed it for us.

@airbenich
Copy link

Will this fix be in Release 3.14.2? I couldn't find #7258 in the changelog.

@dd6464
Copy link

dd6464 commented Oct 21, 2024

I'm still having an issue with Nextcloud version 3.14.1.55839.

Level Date and Time Source Event ID Task Category
Error 21/10/2024 09:56:45 Application Error 1000 Application Crashing Events "Faulting application name: nextcloud.exe, version: 3.14.1.55839, time stamp: 0x66f6776f
Faulting module name: ucrtbase.dll, version: 10.0.22621.3593, time stamp: 0x10c46e71
Exception code: 0xc0000409
Fault offset: 0x000000000007f6fe
Faulting process id: 0x0x2168
Faulting application start time: 0x0x1DB2397158F56D9
Faulting application path: C:\Program Files\Nextcloud\nextcloud.exe
Faulting module path: C:\WINDOWS\System32\ucrtbase.dll
Report Id: 23e533f5-dad3-4b7c-9f11-9b8b6d8a7fa8
Faulting package full name:
Faulting package-relative application ID: "

System Information

Device Spec

Device name EK1
Processor AMD Ryzen 5 PRO 3350G with Radeon Vega Graphics 3.60 GHz
Installed RAM 16.0 GB (13.9 GB usable)
Device ID 20226564-211C-4ACB-B90F-E5DBE411588E
Product ID 00330-53698-70641-AAOEM
System type 64-bit operating system, x64-based processor
Pen and touch No pen or touch input is available for this display

Windows Spec

Edition Windows 11 Pro
Version 23H2
Installed on ‎20/‎08/‎2024
OS build 22631.4317
Experience Windows Feature Experience Pack 1000.22700.1041.0

@steven0081
Copy link

I encountered the same problem even without using the virtual folder mode. Versions are 3.14.0-x64, 3.13.4-x64 on windows.

yes ,me too,i try every edtion from 3.14.0-x64, 3.13.4-x64 on windows.

@zhiiwg
Copy link

zhiiwg commented Nov 5, 2024

Try versions from v3.13.4 — v3.14.2, crashed after start sync.

  1. Uninstall Nextcloud
  2. Delete config and cache files in %appdata% (local & roaming /nextcloud)
  3. Install Nextcloud v3.13.3 then setup account
  4. Upgrade to Nextcloud v3.14.3 from settings (most recent version)

This solves my crash problem, hope this can be helpful :)

Update: sadly, this workaround only works for one time, after a reboot at a day after, nextcloud v3.14.3 start crash at sync too.

QQ2024116-19512.mp4

And sync log for captured video like this:

#=#=#=# Syncrun started 2024-11-06T10:34:09Z
#=#=#=#=# Propagation starts 2024-11-06T10:34:10Z (last step: 791 msec, total: 791 msec)
#=#=#=# Syncrun started 2024-11-06T11:49:35Z
#=#=#=#=# Propagation starts 2024-11-06T11:49:35Z (last step: 788 msec, total: 788 msec)
#=#=#=# Syncrun started 2024-11-06T11:51:06Z
#=#=#=#=# Propagation starts 2024-11-06T11:51:07Z (last step: 849 msec, total: 849 msec)

@hokascha
Copy link

hokascha commented Nov 5, 2024

@mgallien is this merged now in 3.14.3?

@zhiiwg
Copy link

zhiiwg commented Nov 6, 2024

App crash in windows event viewer with nextcloud v3.14.3:

- EventData 
  AppName nextcloud.exe 
  AppVersion 3.14.3.55943 
  AppTimeStamp 67238c6c 
  ModuleName ucrtbase.dll 
  ModuleVersion 10.0.26100.1882 
  ModuleTimeStamp 52db7a2d 
  ExceptionCode c0000409 
  FaultingOffset 00000000000a502e 
  ProcessId 0x2904 
  ProcessCreationTime 0x1db3046f4db82c5 
  AppPath C:\Program Files\Nextcloud\nextcloud.exe 
  ModulePath C:\WINDOWS\System32\ucrtbase.dll 
  IntegratorReportId 791e60e4-7d94-47d8-adc2-b5e9c895b4b5 
  PackageFullName  
  PackageRelativeAppId  

@fuchse-ohren
Copy link

If you experience crashes in a non-English environment, please try the following mitigations.
However, this operation may cause garbled characters in some software.

  1. Open the Settings application.
  2. Click on “Time and Language” > “Language and Region
  3. Click on “Administrative language settings” in the relevant settings at the bottom of the screen.
  4. A new window will open. Click on “Change system locale”.
  5. Check “Beta: Use Unicode UTF-8 for worldwide language support (U)”
  6. Click “OK” and restart

Translated with DeepL.com (free version)

Image

--- original language below ---

非英語環境でクラッシュが発生する場合は次の緩和策をお試しください.
ただし,この操作を行うと一部のソフトは文字化けする可能性があります.

  1. 設定アプリを開く
  2. 「時刻と言語」 > 「言語と地域」 の順にクリック
  3. 画面最下部の関連設定に表示される「管理用の言語の設定」をクリック
  4. 新しくウィンドウが開くので「システムロケールの変更」をクリック
  5. 「ベータ:ワールドワイド言語サポートでUnicode UTF-8を使用(U)」にチェックを入れる
  6. 「OK」をクリックして再起動

Image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests