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

Unity: Import Error Code:(4) #3376

Closed
moritz-mg opened this issue Jul 10, 2023 · 3 comments
Closed

Unity: Import Error Code:(4) #3376

moritz-mg opened this issue Jul 10, 2023 · 3 comments
Assignees

Comments

@moritz-mg
Copy link

What happened?

While the project is recompiling, especially after updating the Realm package (which usually causes multiple of our assemblies to get recompiled on domain reload), sometimes the following error is given; logged as a warning.

Import Error Code:(4)
Message: Build asset version error: packages/io.realm.unity/editor/realm.unityweaver.dll in SourceAssetDB has modification time of '2023-07-08T01:31:54.27Z' while content on disk has modification time of '2023-07-10T09:30:49.8051328Z'

It may be that the Weaver is doing stuff at a time during the compilation/import/domain reload when it shouldn't.

Repro steps

Have multiple assemblies with RealmObjects and one depending on another; then update the realm SDK in the Unity Package manager.

Occasionally, the import error occurs, also on our automated build machines, which hold a cached version of the Library folder (including PackageCache). We suspect there are some issues with these failed, "non-error" condition Weaves that happen before the actual dll import is scheduled.

Version

11.2.0

What Atlas Services are you using?

Atlas Device Sync

What type of application is this?

Unity

Client OS and version

Windows 11 x64, Unity 2022.3.4f1 LTS

Code snippets

No response

Stacktrace of the exception/crash you're getting

[Core] Weaving completed in 241 ms.
0 classes were woven:

UnityEngine.Debug:Log (object)
RealmWeaver.UnityWeaver/UnityLogger:Info (string)
RealmWeaver.UnityWeaver:WeaveAssemblyCore (string,System.Collections.Generic.IEnumerable`1<string>,string,string)
RealmWeaver.UnityWeaver/<>c:<Initialize>b__15_1 (string,UnityEditor.Compilation.CompilerMessage[])
UnityEditor.Scripting.ScriptCompilation.EditorCompilationInterface:TickCompilationPipeline (UnityEditor.Scripting.ScriptCompilation.EditorScriptCompilationOptions,UnityEditor.BuildTargetGroup,UnityEditor.BuildTarget,int,string[],bool)

[Province] Weaving completed in 109 ms.
0 classes were woven:

UnityEngine.Debug:Log (object)
RealmWeaver.UnityWeaver/UnityLogger:Info (string)
RealmWeaver.UnityWeaver:WeaveAssemblyCore (string,System.Collections.Generic.IEnumerable`1<string>,string,string)
RealmWeaver.UnityWeaver/<>c:<Initialize>b__15_1 (string,UnityEditor.Compilation.CompilerMessage[])
UnityEditor.Scripting.ScriptCompilation.EditorCompilationInterface:TickCompilationPipeline (UnityEditor.Scripting.ScriptCompilation.EditorScriptCompilationOptions,UnityEditor.BuildTargetGroup,UnityEditor.BuildTarget,int,string[],bool)

[RealmModels] Weaving completed in 253 ms.
35 classes were woven:
<b>CountyModel (Generated)</b>
      <i>Id</i>: ObjectId
      <i>TokenId</i>: String
      <i>Theater</i>: String
      <i>ParentProvince</i>: ProvinceModel
      <i>Name</i>: String
      <i>OwnerWallet</i>: String
      <i>OwnerId</i>: Nullable`1<MongoDB.Bson.ObjectId>
      <i>OwnerChanged</i>: Nullable`1<.DateTimeOffset>
      <i>PrevOwnerId</i>: Nullable`1<MongoDB.Bson.ObjectId>
      <i>OwnerName</i>: String
      <i>PrevOwnerName</i>: String
      <i>Tier</i>: Int32
      <i>Slots</i>: Int32
      <i>UsedSlots</i>: Int32
      <i>Price</i>: Int32
      <i>Size</i>: Int32
      <i>discounted</i>: Nullable`1<.Boolean>
      <i>statusInt</i>: Int32
      <i>typeInt</i>: Int32
      <i>Market</i>: MarketplaceModel
      <i>DecorUnlocks</i>: IList`1<MoonGaming.Models.CountyDecorUnlock>
      <i>UnitUnlocks</i>: IList`1<MoonGaming.Models.CountyUnitUnlock>
      <i>ProductionBoosts</i>: IList`1<MoonGaming.Models.CountyProductionBoost>
      <i>TimeBoosts</i>: IList`1<MoonGaming.Models.CountyTimerBoost>
      <i>SpecialPlaceName</i>: String
      <i>SpecialPlaceDescription</i>: String

<b>CountyProductionBoost (Generated)</b>
      <i>Type</i>: Int32
      <i>Percent</i>: Int32

<b>CountyTimerBoost (Generated)</b>
      <i>Type</i>: Int32
      <i>Percent</i>: Int32

<b>CountyUnitUnlock (Generated)</b>
      <i>Type</i>: Int32

<b>CountyDecorUnlock (Generated)</b>
      <i>Type</i>: Int32

<b>DailyMissionModel (Generated)</b>
      <i>Id</i>: ObjectId
      <i>Created</i>: DateTimeOffset
      <i>OwnerId</i>: ObjectId
      <i>StateInt</i>: Int32
      <i>TypeInt</i>: Int32
      <i>DifficultyInt</i>: Int32
      <i>AmountToComplete</i>: Int32
      <i>CurrentAmount</i>: Int32
      <i>AdditionalCondition</i>: Int32
      <i>Reward</i>: ResourcePackModel

<b>LeaderboardHeroModel (Generated)</b>
      <i>Id</i>: String
      <i>Category</i>: String
      <i>PlayerId</i>: ObjectId
      <i>PlayerName</i>: String
      <i>Faction</i>: String
      <i>FactionSymbol</i>: String
      <i>HeroId</i>: ObjectId
      <i>HeroName</i>: String
      <i>SubTypeInt</i>: Int32
      <i>HeroIconIndex</i>: Int32
      <i>Gender</i>: Int32
      <i>Durability</i>: Int32
      <i>CurrentHeroSnapshot</i>: LeaderboardHeroSnapshot
      <i>RecentHeroSnapshotsSummary</i>: LeaderboardHeroSnapshot
      <i>RecentHeroSnapshots</i>: IList`1<MoonGaming.Models.LeaderboardHeroSnapshot>

<b>LeaderboardHeroSnapshot (Generated)</b>
      <i>Timestamp</i>: DateTimeOffset
      <i>Level</i>: Int32
      <i>Attack</i>: Int32
      <i>Health</i>: Int32
      <i>Range</i>: Int32
      <i>Speed</i>: Int32
      <i>DamageDealt</i>: Int32
      <i>Kills</i>: Int32

<b>LeaderboardPlayerModel (Generated)</b>
      <i>Id</i>: String
      <i>Category</i>: String
      <i>PlayerId</i>: ObjectId
      <i>PlayerName</i>: String
      <i>PlayerAvatar</i>: String
      <i>Faction</i>: String
      <i>FactionSymbol</i>: String
      <i>CurrentPlayerSnapshot</i>: LeaderboardPlayerSnapshot
      <i>RecentPlayerSnapshotsSummary</i>: LeaderboardPlayerSnapshot
      <i>RecentPlayerSnapshots</i>: IList`1<MoonGaming.Models.LeaderboardPlayerSnapshot>

<b>LeaderboardPlayerSnapshot (Generated)</b>
      <i>Timestamp</i>: DateTimeOffset
      <i>Level</i>: Int32
      <i>Power</i>: Int32
      <i>Progress</i>: Int32
      <i>TopTenHeroes</i>: Int32
      <i>Army</i>: Int32
      <i>Kills</i>: Int32

<b>MarketplaceModel (Generated)</b>
      <i>Identifier</i>: String
      <i>Partition</i>: String
      <i>Template</i>: String

<b>ProvinceModel (Generated)</b>
      <i>Id</i>: String
      <i>Theater</i>: String
      <i>DisplayName</i>: String
      <i>FactionId</i>: String
      <i>typeInt</i>: Int32
      <i>statusInt</i>: Int32
      <i>Counties</i>: IQueryable`1<MoonGaming.Models.CountyModel>

<b>TownSlotModel (Generated)</b>
      <i>Id</i>: ObjectId
      <i>CountyId</i>: ObjectId
      <i>SlotIndex</i>: Int32
      <i>SettlePermits</i>: IList`1<MoonGaming.Models.TownSlotSettlePermitRule>

<b>TownSlotSettlePermitRule (Generated)</b>
      <i>TargetTypeInt</i>: Int32
      <i>PublicEmail</i>: String
      <i>EmailHash</i>: String
      <i>Wallet</i>: String
      <i>UserId</i>: Nullable`1<MongoDB.Bson.ObjectId>
      <i>GroupId</i>: String
      <i>ExpirationTime</i>: DateTimeOffset
      <i>CreatedByUserId</i>: Nullable`1<MongoDB.Bson.ObjectId>
      <i>Created</i>: DateTimeOffset
      <i>Notified</i>: Nullable`1<.Boolean>

<b>UserProfile (Generated)</b>
      <i>documentId</i>: ObjectId
      <i>userId</i>: ObjectId
      <i>name</i>: String
      <i>avatar</i>: String
      <i>email</i>: String
      <i>created</i>: DateTimeOffset
      <i>updated</i>: DateTimeOffset
      <i>wallets</i>: IList`1<System.String>
      <i>accountRecreationReward</i>: Nullable`1<.Int32>

<b>CommandModel (Generated)</b>
      <i>Id</i>: ObjectId
      <i>UserId</i>: ObjectId
      <i>TypeInt</i>: Int32
      <i>Args</i>: String
      <i>StatusInt</i>: Int32
      <i>ResultInt</i>: Nullable`1<.Int32>
      <i>Error</i>: String
      <i>Run</i>: DateTimeOffset
      <i>TargetProvince</i>: String
      <i>TargetCounty</i>: Nullable`1<MongoDB.Bson.ObjectId>
      <i>TargetTown</i>: Nullable`1<MongoDB.Bson.ObjectId>

<b>CountyGameModel (Generated)</b>
      <i>Id</i>: ObjectId
      <i>Faction</i>: String
      <i>InvadersFaction</i>: String
      <i>Slots</i>: Int32
      <i>UsedSlots</i>: Int32
      <i>Invaders</i>: IList`1<MoonGaming.Models.Town.InvaderGameModel>

<b>PlayerGameModel (Generated)</b>
      <i>Id</i>: ObjectId
      <i>TownLocationCounty</i>: ObjectId
      <i>TownId</i>: ObjectId
      <i>OwnedCounties</i>: IList`1<MongoDB.Bson.ObjectId>
      <i>Name</i>: String
      <i>AvatarIcon</i>: String
      <i>Silver</i>: Int64
      <i>Gold</i>: Int64
      <i>Created</i>: DateTimeOffset
      <i>LastSeenTime</i>: DateTimeOffset
      <i>LastDailyRewardTime</i>: DateTimeOffset
      <i>LastSeenMessageTime</i>: Nullable`1<.DateTimeOffset>
      <i>Faction</i>: String
      <i>ActivityPoints</i>: Int32
      <i>DailyMissionSwaps</i>: Int32
      <i>ClaimedMilestoneRewards</i>: Int32

<b>ServerStatusModel (Generated)</b>
      <i>Id</i>: ObjectId
      <i>InstanceId</i>: String
      <i>UpdateTime</i>: DateTimeOffset
      <i>HardwareId</i>: String

<b>TownGameModel (Generated)</b>
      <i>Id</i>: ObjectId
      <i>CountyId</i>: ObjectId
      <i>Faction</i>: String
      <i>OwnerId</i>: ObjectId
      <i>OwnerName</i>: String
      <i>OwnerAvatar</i>: String
      <i>SlotIndex</i>: Int32
      <i>Created</i>: DateTimeOffset
      <i>Settled</i>: DateTimeOffset
      <i>TownHallLevel</i>: Int32
      <i>HQLevel</i>: Int32
      <i>Buildings</i>: IList`1<MoonGaming.Models.Town.TownBuildingModel>
      <i>Areas</i>: IList`1<MoonGaming.Models.Town.TownAreaModel>
      <i>Units</i>: IList`1<MoonGaming.Models.Town.UnitModel>
      <i>Heroes</i>: IList`1<MoonGaming.Models.Town.HeroModel>
      <i>PlayerArmyModels</i>: IList`1<MoonGaming.Models.Town.PlayerArmyGameModel>
      <i>PlayerArmyPresets</i>: IList`1<MoonGaming.Models.Town.ArmyPresetGameModel>
      <i>Ore</i>: Int64
      <i>Wood</i>: Int64
      <i>Food</i>: Int64
      <i>OrePerHour</i>: Int32
      <i>WoodPerHour</i>: Int32
      <i>FoodPerHour</i>: Int32
      <i>X</i>: Int32
      <i>Y</i>: Int32

<b>TownBuildingModel (Generated)</b>
      <i>Uid</i>: ObjectId
      <i>TypeInt</i>: Int32
      <i>X</i>: Int32
      <i>Y</i>: Int32
      <i>Rotation</i>: Int32
      <i>Level</i>: Int32
      <i>ConsturctionStateStarted</i>: DateTimeOffset
      <i>ConstructionStateInt</i>: Int32
      <i>ResourceProductionStarted</i>: DateTimeOffset
      <i>UnitTrainingStateInt</i>: Int32
      <i>UnitTrainingStarted</i>: DateTimeOffset
      <i>CurrentUnitTrainingUid</i>: ObjectId
      <i>HeroTrainingStateInt</i>: Int32
      <i>HeroTrainingStarted</i>: DateTimeOffset
      <i>CurrentHeroTrainingUid</i>: ObjectId
      <i>HealingHeroUnitsQueue</i>: IList`1<MongoDB.Bson.ObjectId>
      <i>HealedHeroUnitsCount</i>: Int32
      <i>Created</i>: DateTimeOffset

<b>TownAreaModel (Generated)</b>
      <i>Uid</i>: String
      <i>StateStarted</i>: DateTimeOffset
      <i>StateInt</i>: Int32
      <i>Created</i>: DateTimeOffset

<b>UnitModel (Generated)</b>
      <i>Uid</i>: ObjectId
      <i>Faction</i>: String
      <i>TypeInt</i>: Int32
      <i>SubType</i>: String
      <i>DisplayName</i>: String
      <i>Level</i>: Int32
      <i>PrevLevel</i>: Int32
      <i>CurrentDurability</i>: Int32
      <i>CurrentHP</i>: Single
      <i>StartHealingHP</i>: Single
      <i>SpecialAbility</i>: SpecialAbilityModel
      <i>Stats</i>: UnitStatsModel
      <i>BuildingId</i>: ObjectId
      <i>Created</i>: DateTimeOffset

<b>HeroModel (Generated)</b>
      <i>Uid</i>: ObjectId
      <i>Faction</i>: String
      <i>DisplayName</i>: String
      <i>Level</i>: Int32
      <i>CurrentDurability</i>: Int32
      <i>CurrentHP</i>: Single
      <i>StartHealingHP</i>: Single
      <i>SubTypeInt</i>: Int32
      <i>Gender</i>: Int32
      <i>IconIndex</i>: Int32
      <i>Xp</i>: Single
      <i>Stats</i>: UnitStatsModel
      <i>PrevStats</i>: UnitStatsModel
      <i>SpecialAbilities</i>: IList`1<MoonGaming.Models.Town.SpecialAbilityModel>
      <i>BuildingId</i>: ObjectId
      <i>Created</i>: DateTimeOffset
      <i>RecruitCountyId</i>: ObjectId
      <i>RecruitCountyName</i>: String
      <i>RecruitTownId</i>: ObjectId

<b>PlayerArmyGameModel (Generated)</b>
      <i>Uid</i>: ObjectId
      <i>TownId</i>: ObjectId
      <i>OwnerPlayerId</i>: ObjectId
      <i>StateInt</i>: Int32
      <i>Army</i>: ArmyGameModel
      <i>StateStarted</i>: DateTimeOffset
      <i>LostBattle</i>: Nullable`1<.Boolean>
      <i>X</i>: Int32
      <i>Y</i>: Int32
      <i>TargetUid</i>: ObjectId
      <i>TargetX</i>: Int32
      <i>TargetY</i>: Int32
      <i>TargetBattleSimulationSteps</i>: Int32

<b>ArmyGameModel (Generated)</b>
      <i>Name</i>: String
      <i>Level</i>: Int32
      <i>Faction</i>: String
      <i>Heroes</i>: IList`1<MongoDB.Bson.ObjectId>
      <i>Units</i>: IList`1<MongoDB.Bson.ObjectId>

<b>ArmyPresetGameModel (Generated)</b>
      <i>Uid</i>: ObjectId
      <i>Name</i>: String
      <i>Heroes</i>: IList`1<MongoDB.Bson.ObjectId>
      <i>Units</i>: IList`1<MongoDB.Bson.ObjectId>

<b>InvaderGameModel (Generated)</b>
      <i>Uid</i>: ObjectId
      <i>CountyId</i>: ObjectId
      <i>Created</i>: DateTimeOffset
      <i>BattlesFought</i>: Int32
      <i>LastBattleTime</i>: Nullable`1<.DateTimeOffset>
      <i>X</i>: Int32
      <i>Y</i>: Int32
      <i>Army</i>: ArmyGameModel
      <i>Heroes</i>: IList`1<MoonGaming.Models.Town.HeroModel>
      <i>Units</i>: IList`1<MoonGaming.Models.Town.UnitModel>
      <i>InitialCost</i>: ResourcePackModel

<b>SpecialAbilityModel (Generated)</b>
      <i>TypeInt</i>: Int32
      <i>Level</i>: Int32
      <i>RarityInt</i>: Int32

<b>ResourcePackModel (Generated)</b>
      <i>Food</i>: Int64
      <i>Ore</i>: Int64
      <i>Wood</i>: Int64
      <i>Silver</i>: Int64
      <i>Gold</i>: Int64

<b>UnitStatsModel (Generated)</b>
      <i>Attack</i>: Int32
      <i>Armor</i>: Int32
      <i>MaxHP</i>: Int32
      <i>Range</i>: Int32
      <i>Speed</i>: Int32
      <i>MaxDurability</i>: Int32

<b>GameMessageModel (Generated)</b>
      <i>Id</i>: ObjectId
      <i>PlayerId</i>: ObjectId
      <i>TypeInt</i>: Int32
      <i>CategoryInt</i>: Int32
      <i>Created</i>: DateTimeOffset
      <i>Read</i>: Nullable`1<.DateTimeOffset>
      <i>TargetId</i>: Nullable`1<MongoDB.Bson.ObjectId>
      <i>TitleMessage</i>: String
      <i>SubtitleMessage</i>: String
      <i>ContentMessage</i>: String

<b>BattleReportGameModel (Generated)</b>
      <i>Id</i>: ObjectId
      <i>Created</i>: DateTimeOffset
      <i>WinnerArmyIndex</i>: Int32
      <i>DurationSec</i>: Int32
      <i>SimulationSteps</i>: Int32
      <i>CountyId</i>: ObjectId
      <i>CountyName</i>: String
      <i>X</i>: Int32
      <i>Y</i>: Int32
      <i>Army0Uid</i>: ObjectId
      <i>OwnerId</i>: ObjectId
      <i>Army0TotalHPPerStep</i>: IList`1<System.Single>
      <i>Army0LeaderName</i>: String
      <i>Army0LeaderLevel</i>: Int32
      <i>Army0LeaderIconIndex</i>: Int32
      <i>Army0LeaderSubTypeInt</i>: Int32
      <i>Army0LeaderGender</i>: Int32
      <i>army0LeaderFaction</i>: String
      <i>Army0Faction</i>: String
      <i>Army0HeroesData</i>: IList`1<Models.Town.HeroAfterBattleReportGameModel>
      <i>Army0UnitsData</i>: IList`1<Models.Town.UnitAfterBattleReportGameModel>
      <i>Army1Uid</i>: ObjectId
      <i>Army1OwnerPlayerId</i>: ObjectId
      <i>Army1TotalHPPerStep</i>: IList`1<System.Single>
      <i>Army1LeaderName</i>: String
      <i>Army1LeaderLevel</i>: Int32
      <i>Army1LeaderIconIndex</i>: Int32
      <i>Army1LeaderSubTypeInt</i>: Int32
      <i>Army1LeaderGender</i>: Int32
      <i>army1LeaderFaction</i>: String
      <i>Army1Faction</i>: String
      <i>Army1HeroesData</i>: IList`1<Models.Town.HeroAfterBattleReportGameModel>
      <i>Army1UnitsData</i>: IList`1<Models.Town.UnitAfterBattleReportGameModel>

<b>HeroAfterBattleReportGameModel (Generated)</b>
      <i>Uid</i>: ObjectId
      <i>Level</i>: Int32
      <i>DisplayName</i>: String
      <i>IconIndex</i>: Int32
      <i>SubTypeInt</i>: Int32
      <i>Gender</i>: Int32
      <i>Faction</i>: String
      <i>TotalHP</i>: Single
      <i>StartHP</i>: Single
      <i>EndHP</i>: Single
      <i>XpGain</i>: Single
      <i>DamageDealt</i>: Nullable`1<.Single>

<b>UnitAfterBattleReportGameModel (Generated)</b>
      <i>Uid</i>: ObjectId
      <i>Level</i>: Int32
      <i>DsiplayName</i>: String
      <i>TypeInt</i>: Int32
      <i>SubType</i>: String
      <i>Faction</i>: String
      <i>TotalHP</i>: Single
      <i>StartHP</i>: Single
      <i>EndHP</i>: Single
      <i>DamageDealt</i>: Nullable`1<.Single>


UnityEngine.Debug:Log (object)
RealmWeaver.UnityWeaver/UnityLogger:Info (string)
RealmWeaver.UnityWeaver:WeaveAssemblyCore (string,System.Collections.Generic.IEnumerable`1<string>,string,string)
RealmWeaver.UnityWeaver/<>c:<Initialize>b__15_1 (string,UnityEditor.Compilation.CompilerMessage[])
UnityEditor.Scripting.ScriptCompilation.EditorCompilationInterface:TickCompilationPipeline (UnityEditor.Scripting.ScriptCompilation.EditorScriptCompilationOptions,UnityEditor.BuildTargetGroup,UnityEditor.BuildTarget,int,string[],bool)

Default schema for SharedData, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null appears to be empty. This is not an error if you don't have any RealmObject inheritors declared. Otherwise it may be a bug with the weaver.
UnityEngine.Debug:LogWarning (object)
RealmWeaver.UnityWeaver/UnityLogger:Warning (string,Mono.Cecil.Cil.SequencePoint)
RealmWeaver.Weaver:WeaveSchema (Mono.Cecil.TypeDefinition[])
RealmWeaver.Weaver:Execute (RealmWeaver.Analytics/Config)
RealmWeaver.UnityWeaver:WeaveAssemblyCore (string,System.Collections.Generic.IEnumerable`1<string>,string,string)
RealmWeaver.UnityWeaver/<>c:<Initialize>b__15_1 (string,UnityEditor.Compilation.CompilerMessage[])
UnityEditor.Scripting.ScriptCompilation.EditorCompilationInterface:TickCompilationPipeline (UnityEditor.Scripting.ScriptCompilation.EditorScriptCompilationOptions,UnityEditor.BuildTargetGroup,UnityEditor.BuildTarget,int,string[],bool)

[SharedData] Weaving completed in 93 ms.
0 classes were woven:

UnityEngine.Debug:Log (object)
RealmWeaver.UnityWeaver/UnityLogger:Info (string)
RealmWeaver.UnityWeaver:WeaveAssemblyCore (string,System.Collections.Generic.IEnumerable`1<string>,string,string)
RealmWeaver.UnityWeaver/<>c:<Initialize>b__15_1 (string,UnityEditor.Compilation.CompilerMessage[])
UnityEditor.Scripting.ScriptCompilation.EditorCompilationInterface:TickCompilationPipeline (UnityEditor.Scripting.ScriptCompilation.EditorScriptCompilationOptions,UnityEditor.BuildTargetGroup,UnityEditor.BuildTarget,int,string[],bool)

[SharedManagers] Weaving completed in 299 ms.
0 classes were woven:

UnityEngine.Debug:Log (object)
RealmWeaver.UnityWeaver/UnityLogger:Info (string)
RealmWeaver.UnityWeaver:WeaveAssemblyCore (string,System.Collections.Generic.IEnumerable`1<string>,string,string)
RealmWeaver.UnityWeaver/<>c:<Initialize>b__15_1 (string,UnityEditor.Compilation.CompilerMessage[])
UnityEditor.Scripting.ScriptCompilation.EditorCompilationInterface:TickCompilationPipeline (UnityEditor.Scripting.ScriptCompilation.EditorScriptCompilationOptions,UnityEditor.BuildTargetGroup,UnityEditor.BuildTarget,int,string[],bool)

[Town] Weaving completed in 176 ms.
0 classes were woven:

UnityEngine.Debug:Log (object)
RealmWeaver.UnityWeaver/UnityLogger:Info (string)
RealmWeaver.UnityWeaver:WeaveAssemblyCore (string,System.Collections.Generic.IEnumerable`1<string>,string,string)
RealmWeaver.UnityWeaver/<>c:<Initialize>b__15_1 (string,UnityEditor.Compilation.CompilerMessage[])
UnityEditor.Scripting.ScriptCompilation.EditorCompilationInterface:TickCompilationPipeline (UnityEditor.Scripting.ScriptCompilation.EditorScriptCompilationOptions,UnityEditor.BuildTargetGroup,UnityEditor.BuildTarget,int,string[],bool)

[World] Weaving completed in 81 ms.
0 classes were woven:

UnityEngine.Debug:Log (object)
RealmWeaver.UnityWeaver/UnityLogger:Info (string)
RealmWeaver.UnityWeaver:WeaveAssemblyCore (string,System.Collections.Generic.IEnumerable`1<string>,string,string)
RealmWeaver.UnityWeaver/<>c:<Initialize>b__15_1 (string,UnityEditor.Compilation.CompilerMessage[])
UnityEditor.Scripting.ScriptCompilation.EditorCompilationInterface:TickCompilationPipeline (UnityEditor.Scripting.ScriptCompilation.EditorScriptCompilationOptions,UnityEditor.BuildTargetGroup,UnityEditor.BuildTarget,int,string[],bool)

Import Error Code:(4)
Message: Build asset version error: packages/io.realm.unity/editor/realm.unityweaver.dll in SourceAssetDB has modification time of '2023-07-08T01:31:54.27Z' while content on disk has modification time of '2023-07-10T09:29:09.8972894Z'


Hooking Editor PlayMode scene to Boot, Assets/Scenes/Standalone/Boot.unity,
UnityEngine.Debug:Log (object)
SetStartScene:.cctor () (at Assets/Scripts/Editor/EditorBootSceneHook.cs:11)
UnityEditor.EditorAssemblies:ProcessInitializeOnLoadAttributes (System.Type[])

Default schema for SharedData, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null appears to be empty. This is not an error if you don't have any RealmObject inheritors declared. Otherwise it may be a bug with the weaver.
UnityEngine.Debug:LogWarning (object)
RealmWeaver.UnityWeaver/UnityLogger:Warning (string,Mono.Cecil.Cil.SequencePoint)
RealmWeaver.Weaver:WeaveSchema (Mono.Cecil.TypeDefinition[])
RealmWeaver.Weaver:ExecuteInternal (RealmWeaver.Analytics/Config,RealmWeaver.WeaveTypeResult[]&)
RealmWeaver.Weaver:Execute (RealmWeaver.Analytics/Config)
RealmWeaver.UnityWeaver:WeaveAssemblyCore (string,System.Collections.Generic.IEnumerable`1<string>,RealmWeaver.Analytics/Config)
RealmWeaver.UnityWeaver/<>c:<Initialize>b__18_1 (string,UnityEditor.Compilation.CompilerMessage[])
UnityEditor.Scripting.ScriptCompilation.EditorCompilationInterface:TickCompilationPipeline (UnityEditor.Scripting.ScriptCompilation.EditorScriptCompilationOptions,UnityEditor.BuildTargetGroup,UnityEditor.BuildTarget,int,string[],bool)

[SharedData] Weaving completed in 234 ms.
0 classes were woven:

UnityEngine.Debug:Log (object)
RealmWeaver.UnityWeaver/UnityLogger:Info (string)
RealmWeaver.UnityWeaver:WeaveAssemblyCore (string,System.Collections.Generic.IEnumerable`1<string>,RealmWeaver.Analytics/Config)
RealmWeaver.UnityWeaver/<>c:<Initialize>b__18_1 (string,UnityEditor.Compilation.CompilerMessage[])
UnityEditor.Scripting.ScriptCompilation.EditorCompilationInterface:TickCompilationPipeline (UnityEditor.Scripting.ScriptCompilation.EditorScriptCompilationOptions,UnityEditor.BuildTargetGroup,UnityEditor.BuildTarget,int,string[],bool)

[Town] Weaving completed in 250 ms.
0 classes were woven:

UnityEngine.Debug:Log (object)
RealmWeaver.UnityWeaver/UnityLogger:Info (string)
RealmWeaver.UnityWeaver:WeaveAssemblyCore (string,System.Collections.Generic.IEnumerable`1<string>,RealmWeaver.Analytics/Config)
RealmWeaver.UnityWeaver/<>c:<Initialize>b__18_1 (string,UnityEditor.Compilation.CompilerMessage[])
UnityEditor.Scripting.ScriptCompilation.EditorCompilationInterface:TickCompilationPipeline (UnityEditor.Scripting.ScriptCompilation.EditorScriptCompilationOptions,UnityEditor.BuildTargetGroup,UnityEditor.BuildTarget,int,string[],bool)

Import Error Code:(4)
Message: Build asset version error: packages/io.realm.unity/editor/realm.unityweaver.dll in SourceAssetDB has modification time of '2023-07-08T01:31:54.27Z' while content on disk has modification time of '2023-07-10T09:30:49.8051328Z'

Relevant log output

No response

@nirinchev
Copy link
Member

This looks more like an issue with Unity itself. The Weaver doesn't modify itself, so there's no obvious reason why it would be responsible for changing the modify timestamp.

@nirinchev nirinchev added the Waiting-For-Reporter Waiting for more information from the reporter before we can proceed label Jul 18, 2023
@moritz-mg
Copy link
Author

moritz-mg commented Jul 19, 2023

Yes, it appears to be related to something Unity changed in their version control and file-system monitoring when auto-refresh is off. Not your bug! Sorry :)

@github-actions github-actions bot added Needs-Attention Reporter has responded. Review comment. and removed Waiting-For-Reporter Waiting for more information from the reporter before we can proceed labels Jul 19, 2023
@nirinchev
Copy link
Member

No worries, happy to help!

@nirinchev nirinchev closed this as not planned Won't fix, can't repro, duplicate, stale Jul 20, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 11, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants