vrchat-community / creator-companion

The Entry Point for Making Things in VRChat
https://vrchat.com/home/download
54 stars 372 forks source link

[BUG] Unable to open VCC with error on the event viewer #391

Open anatawa12 opened 7 months ago

anatawa12 commented 7 months ago

Describe the bug

Failed to open project with the following error

Application: CreatorCompanion.exe
CoreCLR Version: 6.0.2523.51912
.NET Version: 6.0.25
Description: The process was terminated due to an unhandled exception.
Exception Info: System.ArgumentException: An item with the same key has already been added. Key: lyuma.av3emulator
   at System.Collections.Generic.Dictionary`2.TryInsert(TKey key, TValue value, InsertionBehavior behavior)
   at VRC.PackageManagement.Core.Types.Providers.UnityProjectVPMProvider.Refresh()
   at VRC.PackageManagement.Core.Types.Providers.UnityProjectVPMProvider..ctor(String projectPath)
   at VRC.PackageManagement.Core.Types.UnityProject.RefreshProviders()
   at VRC.PackageManagement.Core.Types.UnityProject..ctor(String path)
   at VRC.CreatorCompanion.Core.Projects.SyncWithSettings()
   at VRC.CreatorCompanion.Core.VCCDatabase.Initialize()
   at VCCApp.Program.Setup()
   at VCCApp.Program.Main(String[] args)

To Reproduce

  1. double-click VCC
  2. open Event Viewer
  3. the error is shown

Expected behavior

Launch VCC successfully OR open error dialog when startup failed

Screenshots

No response

Related Product

VCC (VRChat Creator Companion)

Product Version

2.2.x (unable to check actual version)

OS

Windows 11

Additional context

No response