Repository navigation
Description
Is there an existing issue for this problem?
- I have searched the existing issues
CrealityPrint Version
7.2.2.5483
Operating System (OS)
Windows
OS Version
Windows 11 (build 26300), 64-bit
Additional system information
Printer
Creality K2 Pro
How to reproduce
Observed on one account; I have not tested this on a clean account.
- Sign in with an account that has many user presets (mine: 73 filament, 13 process, 1 printer).
- Start Creality Print and leave it open.
- Check the debug log for "preUpdateProfile_update".
In my case 46 of the 87 presets are sent to editProfile again, including presets whose
.json has not changed for months (for example, a .json last written on 2026-08-02 has
updated_time 2026-11-08). The same thing repeats on later launches and retry rounds.
Actual results
-
Unchanged presets are re-uploaded, and the requests are rejected by the server.
In one launch (2026-11-08) there were 38 filament and 8 process update attempts rejected with
HTTP 429, about 0.35 s apart, plus code=1088 ("Please do not repeat the same operation many
times"). The loop continues after a 429, so the remaining presets are still sent. Similar
rounds appear on most days in my logs, which go back to 2026-10-08. -
A rejected upload is recorded as handled.
After a 429, preUpdateProfile_update returns 1 and sets updatedInfo to "hold". The caller
treats ret == 1 like success and saves the preset. "hold" is written to the .info file as an
empty sync_info, so a local edit can stop being marked as pending without reaching the cloud. -
code=1088 is handled differently.
It returns -1, so sync_info stays "update". One preset stays in that state on disk and the
preset retried at the start of each round gets 1088 again. -
Separate error: the sync_data upload always fails.
editProfile returns code=1 "Invalid Parameter" for the sync_data record. The id sent matches
the sync_data id returned by getUserProfileList. The record has not changed since 2026-04-17.
I cannot determine the server-side reason.
Expected results
- A preset whose content has not changed is not uploaded again.
- HTTP 429 and code 1088 stop the current sync round and use backoff.
- A preset stays pending until its upload has actually succeeded.
- The sync_data upload succeeds, or the app reports why it cannot.
Project file & Debug log uploads
No project file is involved. I am not attaching the full log because it contains my account
token and user ID. Sanitized excerpt (request IDs removed, available privately on request):
[warning] 2026-11-08 18:13:47 SyncUserPresets getUserProfileList count=89 ret=0
[error] 2026-11-08 18:13:50 SyncUserPresets CommunicateWithCXCloud preUpdateProfile_update fail.code=1;body={"code":1,"msg":"Invalid Parameter"}
[warning] 2026-11-08 18:13:50 SyncUserPresets doCheckNeedSyncConfigToCXCloud updateConfigFile fail
[warning] 2026-11-08 18:13:50 SyncUserPresets doCheckNeedSyncFilamentToCXCloud start...
[error] 2026-11-08 18:13:51 SyncUserPresets CommunicateWithCXCloud preUpdateProfile_update fail.code=1088;body={"code":1088,"msg":"Please do not repeat the same operation many times. Take a rest and try it later."}
[warning] 2026-11-08 18:13:51 SyncUserPresets doCheckNeedSyncFilamentToCXCloud preUpdateProfile_update ret=-1
[error] 2026-11-08 18:13:51 CommunicateWithCXCloud preUpdateProfile_update fail.err=,status=429
[warning] 2026-11-08 18:13:51 SyncUserPresets doCheckNeedSyncFilamentToCXCloud preUpdateProfile_update ret=1
[error] 2026-11-08 18:13:51 CommunicateWithCXCloud preUpdateProfile_update fail.err=,status=429
[warning] 2026-11-08 18:13:51 SyncUserPresets doCheckNeedSyncFilamentToCXCloud preUpdateProfile_update ret=1
(the same pair repeats until 18:14:07)
Checklist of files to include
- Log file
- Project file
Anything else?
Code references are to tag v7.2.1, the closest public source to my build. The logged behavior
matches this code. The same update handling was still present on master at commit 254250c.
- src/slic3r/GUI/SyncUserPresets.cpp L539-L551: ret == 1 is handled like success; a successful
update stores the client clock as updated_time. - src/slic3r/GUI/CommunicateWithCXCloud.cpp L741-L747: HTTP error sets nRet = 1 and "hold".
- src/libslic3r/Preset.cpp L1842-L1844: cloud time older than local time sets sync_info = "update".
- src/libslic3r/Preset.cpp L508-L510: "hold" is saved as an empty sync_info.
Possible cause of the repeated uploads (inferred; cloud timestamps are not logged): after a
successful upload, local updated_time comes from the client clock rather than the server's
lastModifyTime, so local can stay newer than cloud and be flagged again on the next load.
CommunicateWithCXCloud.cpp L711 already reads lastModifyTime from the editProfile response.
Possible fixes:
- Store the server's lastModifyTime after a successful upload.
- Compare the md5 of the content before uploading.
- Break out of the per-preset loop on 429/1088 and retry with backoff.
- Do not save "hold" as an empty sync_info.
Context that may affect the reproduction:
- Two Creality Print instances were running at the same time during this log, which increases traffic.
- In July 2026 about 40 preset files were added to my local user folder by script. The app
removed them and code=1088 began around then. My logs do not go back that far, so I cannot
say whether this started the problem, but the repeated uploads continue months later. - The cloud list returns 89 records for 87 local presets plus sync_data; the extra record is a
duplicate of one filament preset under a different ID.
Activity