Search Unity

Question Is there a way to pause plastic scm until I want to push changes?

Discussion in 'Unity Version Control' started by fredholmsimon, Dec 2, 2022.

  1. fredholmsimon

    fredholmsimon

    Joined:
    Sep 5, 2020
    Posts:
    99
    When I do profiler on the editor I see that the plastic SCM window is eating my performance, can I pause or disable plastic SCM?

    I've been trying to close the window, but the window keeps opening by itself on some changes (like saving a scene/prefab).

    (I'm not working with any other people on the same project, so I do not need the window to constantly update.)
     
  2. carlosalba1985

    carlosalba1985

    Unity Technologies

    Joined:
    Jul 19, 2021
    Posts:
    1,080
    Hi,

    If you are using the latest version of the Version Control package, you could use the plugin "Offline mode".

    By the way, regarding the performance issue, is it refreshing the pending changes? or what view you have opened then the performance issue happens?

    Regards,
    Carlos.
     
  3. fredholmsimon

    fredholmsimon

    Joined:
    Sep 5, 2020
    Posts:
    99
    Omg. Thank you, that's perfect!

    I've got auto-refresh off, but yes, it seems to be working/refreshing something, PlasticWindow.Paint -> PlasticWindow.OnGui.Layout 50%, PlasticWindow.OnGui.repaint 50%.
     
  4. carlosalba1985

    carlosalba1985

    Unity Technologies

    Joined:
    Jul 19, 2021
    Posts:
    1,080
    Ok, please let us know if we can still help.
     
  5. fredholmsimon

    fredholmsimon

    Joined:
    Sep 5, 2020
    Posts:
    99
    The new version is giving me errors.. :(


    2022-12-07 15:03:37,875 DESKTOP-2KIP269\fredh INFO GetStatus - Time to retrieve the pending changes: 344641 ms (searching: 734 ms, processingmoved: 343907 (downloading: 281672 ms, matching: 62235 ms), splitting: 0 ms)


    2022-12-07 15:04:51,791 DESKTOP-2KIP269\fredh ERROR PlasticThread - Error when performing background operation: Object reference not set to an instance of an object


    2022-12-07 15:04:54,296 DESKTOP-2KIP269\fredh INFO FileDownloader - DownloaderThreadPool initialized with 6 max threads
    2022-12-07 15:04:54,958 DESKTOP-2KIP269\fredh INFO FileDownloader - DownloaderThreadPool initialized with 6 max threads
    2022-12-07 15:04:58,830 DESKTOP-2KIP269\fredh INFO FileDownloader - DownloaderThreadPool initialized with 6 max threads
    2022-12-07 15:05:07,601 DESKTOP-2KIP269\fredh INFO FileDownloader - DownloaderThreadPool initialized with 6 max threads
     
  6. fredholmsimon

    fredholmsimon

    Joined:
    Sep 5, 2020
    Posts:
    99
    I toggled plastic into offline mode, removed like a bunch of files/folders, >5gb. Then I enabled plastic and now i cannot push my changes
     
  7. fredholmsimon

    fredholmsimon

    Joined:
    Sep 5, 2020
    Posts:
    99
    My plan was to delete a bunch of things without the contact refreshing, and then let plastic refresh everything at once, while I go make food
     
  8. fredholmsimon

    fredholmsimon

    Joined:
    Sep 5, 2020
    Posts:
    99
    Keeps happening;


    2022-12-07 15:09:26,071 DESKTOP-2KIP269\fredh INFO FileDownloader - DownloaderThreadPool initialized with 6 max threads
    2022-12-07 15:09:31,592 DESKTOP-2KIP269\fredh INFO FileDownloader - DownloaderThreadPool initialized with 6 max threads
    2022-12-07 15:09:36,508 DESKTOP-2KIP269\fredh INFO FileDownloader - DownloaderThreadPool initialized with 6 max threads
    2022-12-07 15:10:34,386 DESKTOP-2KIP269\fredh INFO GetStatus - Time to retrieve the pending changes: 340828 ms (searching: 718 ms, processingmoved: 340110 (downloading: 282703 ms, matching: 57407 ms), splitting: 0 ms)
    2022-12-07 15:11:19,863 DESKTOP-2KIP269\fredh ERROR PlasticThread - Error when performing background operation: Object reference not set to an instance of an object
    2022-12-07 15:11:22,404 DESKTOP-2KIP269\fredh INFO FileDownloader - DownloaderThreadPool initialized with 6 max threads
    2022-12-07 15:11:23,065 DESKTOP-2KIP269\fredh INFO FileDownloader - DownloaderThreadPool initialized with 6 max threads
    2022-12-07 15:11:26,945 DESKTOP-2KIP269\fredh INFO FileDownloader - DownloaderThreadPool initialized with 6 max threads

     
  9. carlosalba1985

    carlosalba1985

    Unity Technologies

    Joined:
    Jul 19, 2021
    Posts:
    1,080
    Please attach the full Plastic client logs to review them.

    Could you try to checkin the changes via the Plastic GUI (standalone client)?
     
  10. fredholmsimon

    fredholmsimon

    Joined:
    Sep 5, 2020
    Posts:
    99
    I tried in the plastic GUI but it just keeps loading pending changes (+1 hour) so I stopped.

    i downgraded one version of the version-control now to see if it would work, but same issue;
    here are I think the correct log,
    it's failing on deleting some of the files
     

    Attached Files:

  11. fredholmsimon

    fredholmsimon

    Joined:
    Sep 5, 2020
    Posts:
    99
    i'm gonna check off the "Check the content to determine files as changed, not just timestamp" to see if that works

    EDIT: It didn't.
     
    Last edited: Dec 7, 2022
  12. carlosalba1985

    carlosalba1985

    Unity Technologies

    Joined:
    Jul 19, 2021
    Posts:
    1,080
    Hi,

    if you are using the Plastic GUI and the calculation of the pending changes is taking forever, can you attach the debug logs (not just the .relevant) log?

    Regards,
    Carlos.
     
  13. fredholmsimon

    fredholmsimon

    Joined:
    Sep 5, 2020
    Posts:
    99
    this is the latest
     

    Attached Files:

  14. fredholmsimon

    fredholmsimon

    Joined:
    Sep 5, 2020
    Posts:
    99
    ..
     

    Attached Files:

  15. fredholmsimon

    fredholmsimon

    Joined:
    Sep 5, 2020
    Posts:
    99
  16. fredholmsimon

    fredholmsimon

    Joined:
    Sep 5, 2020
    Posts:
    99
    it seems to be confusing files with each other;

    upload_2022-12-7_17-50-21.png

    these two are NOT the same .png, and it says it got "moved"
     
  17. fredholmsimon

    fredholmsimon

    Joined:
    Sep 5, 2020
    Posts:
    99
    i cannot work please what should i do, how do I fix this asap, should i just go back a couple of versions or will that break stuff even more?
     
  18. fredholmsimon

    fredholmsimon

    Joined:
    Sep 5, 2020
    Posts:
    99
    or can i change something herE?
    upload_2022-12-7_17-51-40.png
     
  19. fredholmsimon

    fredholmsimon

    Joined:
    Sep 5, 2020
    Posts:
    99
    Disabling this worked, and I undo'd some stuff and I can work again
    upload_2022-12-7_18-33-16.png
     
  20. fredholmsimon

    fredholmsimon

    Joined:
    Sep 5, 2020
    Posts:
    99
    Managed to get the same problem, but the changeset is smaller so the GUI spit out an error-code

    upload_2022-12-7_22-50-10.png
     

    Attached Files:

  21. fredholmsimon

    fredholmsimon

    Joined:
    Sep 5, 2020
    Posts:
    99
    from unityplastic.relevant.log.txt


    2022-12-07 23:09:31,940 DESKTOP-2KIP269\fredh ERROR Performance - There has been an unexpected error "Checkin cannot be done because some local changes cannot be processed. Please try the operation again and if the problem persists contact support@plasticscm.com.". For more information check the server log. at Codice.Client.BaseCommands.CheckIn.CheckinOperation.ConfirmCheckin (Codice.Client.BaseCommands.CheckIn.CheckinData ciData) [0x0006b] in <1e51439243a4446392211eb63cd2b663>:0
    at Codice.Client.BaseCommands.CheckIn.CheckinOperation.ConfirmCheckinStep (Codice.Client.BaseCommands.CheckIn.CheckinData ciData) [0x0002c] in <1e51439243a4446392211eb63cd2b663>:0
    at Codice.Client.BaseCommands.CheckIn.CheckinGenericOperation.ExecuteTreeConfirmCheckinStep (Codice.Client.BaseCommands.CheckIn.CheckinData ciData) [0x000be] in <1e51439243a4446392211eb63cd2b663>:0
    at Codice.Client.BaseCommands.CheckIn.CheckinOperation.CheckinTree (Codice.Client.BaseCommands.CheckIn.CheckinData ciData) [0x000e5] in <1e51439243a4446392211eb63cd2b663>:0
    2022-12-07 23:09:31,941 DESKTOP-2KIP269\fredh INFO Performance - Checkin - TOTAL: 672ms
    2022-12-07 23:09:31,941 DESKTOP-2KIP269\fredh ERROR PlasticThread - Error when performing background operation: There has been an unexpected error "Checkin cannot be done because some local changes cannot be processed. Please try the operation again and if the problem persists contact support@plasticscm.com.". For more information check the server log.
    2022-12-07 23:09:32,178 DESKTOP-2KIP269\fredh INFO PlasticPipe - CmCallContext CurrentTransaction changed and will be sent to server 00000000-0000-0000-0000-000000000000
    2022-12-07 23:09:32,663 DESKTOP-2KIP269\fredh INFO GetStatus - Time to retrieve the pending changes: 484 ms (searching: 484 ms, processingmoved: 0 (downloading: 0 ms, matching: 0 ms), splitting: 0 ms)
     
  22. fredholmsimon

    fredholmsimon

    Joined:
    Sep 5, 2020
    Posts:
    99
    i have no other users except me, i have no brances, it shouldn't be so hard just to upload my changes..
     
  23. fredholmsimon

    fredholmsimon

    Joined:
    Sep 5, 2020
    Posts:
    99
    I got help from support.

    Error 1:
    -> Error when performing background operation: Object reference not set to an instance of an object
    ; The changeset is not possible to undo or to push.

    It seems to have been solved by disabling the move detection.

    Error 2:
    -> Checkin cannot be done because some local changes cannot be processed
    ; The changeset is not possible to undo or to push.

    There was simultaneously a move-change of content below a folder and a deletion of that folder.

    solution: Removing the plastic.changes in .plastic folder worked.
    upload_2022-12-8_10-55-19.png

    Also making a new workspace would've fixed the issue.