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

Modcontent crashes with a `NullReferenceException` #17565

Open
dragunoff opened this issue Jan 6, 2020 · 1 comment
Open

Modcontent crashes with a `NullReferenceException` #17565

dragunoff opened this issue Jan 6, 2020 · 1 comment
Labels

Comments

@dragunoff
Copy link
Contributor

@dragunoff dragunoff commented Jan 6, 2020

Issue Summary

Modcontent crashes with a NullReferenceException when trying to access it after clicking around in game menus.

System Information

  • Operating System: Ubuntu 19.10
  • .NET / Mono Version: Mono JIT compiler version 6.6.0.161
  • OpenRA Version: release-20191117, bleed
  • Mod: Any

Additional Information:

  • Steps to reproduce
  1. Click "SIngleplayer",
  2. Click "Skirmish", click "Back"
  3. Click "Missions", click "Back", click "Back" (to main menu)
  4. Click "Multiplayer", click "Back" (to main menu)
  5. Click "Settings", click "Back" (to main menu)
  6. Click "Extras"
  7. Click "Replays", click "Back", click "Back" (to main menu)
  8. Click "Manage content"
  • Logs
Loading mod: modcontent
Exception of type `System.NullReferenceException`: Object reference not set to an instance of an object
  at OpenRA.Mods.Common.Traits.MapOptionsInfo.OpenRA.Traits.IRulesetLoaded<OpenRA.ActorInfo>.RulesetLoaded (OpenRA.Ruleset rules, OpenRA.ActorInfo info) [0x00000] in <123db89d1f414b4686fb3ebc9896b24e>:0 
  at OpenRA.Ruleset..ctor (OpenRA.IReadOnlyDictionary`2[TKey,TValue] actors, OpenRA.IReadOnlyDictionary`2[TKey,TValue] weapons, OpenRA.IReadOnlyDictionary`2[TKey,TValue] voices, OpenRA.IReadOnlyDictionary`2[TKey,TValue] notifications, OpenRA.IReadOnlyDictionary`2[TKey,TValue] music, OpenRA.TileSet tileSet, OpenRA.Graphics.SequenceProvider sequences, OpenRA.IReadOnlyDictionary`2[TKey,TValue] modelSequences) [0x00072] in <742652ed86ed424f90d92f1e5a818a0c>:0 
  at OpenRA.Ruleset.LoadDefaultsForTileSet (OpenRA.ModData modData, System.String tileSet) [0x00021] in <742652ed86ed424f90d92f1e5a818a0c>:0 
  at OpenRA.MapPreview+InnerData+<>c__DisplayClass28_0.<SetRulesetGenerator>b__0 () [0x0007f] in <742652ed86ed424f90d92f1e5a818a0c>:0 
  at System.Lazy`1[T].ViaFactory (System.Threading.LazyThreadSafetyMode mode) [0x00043] in <d2ec5c92492f4d6ba8c422bdf574b786>:0 
  at System.Lazy`1[T].ExecutionAndPublication (System.LazyHelper executionAndPublication, System.Boolean useDefaultConstructor) [0x00022] in <d2ec5c92492f4d6ba8c422bdf574b786>:0 
  at System.Lazy`1[T].CreateValue () [0x00074] in <d2ec5c92492f4d6ba8c422bdf574b786>:0 
  at System.Lazy`1[T].get_Value () [0x0000a] in <d2ec5c92492f4d6ba8c422bdf574b786>:0 
  at OpenRA.MapPreview+InnerData.get_Rules () [0x0000a] in <742652ed86ed424f90d92f1e5a818a0c>:0 
  at OpenRA.MapPreview.get_Rules () [0x00000] in <742652ed86ed424f90d92f1e5a818a0c>:0 
  at OpenRA.MapPreview.PreloadRules () [0x00000] in <742652ed86ed424f90d92f1e5a818a0c>:0 
  at OpenRA.Mods.Common.Widgets.Logic.MissionBrowserLogic+<>c__DisplayClass21_1.<.ctor>b__10 () [0x0001d] in <123db89d1f414b4686fb3ebc9896b24e>:0 
  at System.Threading.ThreadHelper.ThreadStart_Context (System.Object state) [0x00014] in <d2ec5c92492f4d6ba8c422bdf574b786>:0 
  at System.Threading.ExecutionContext.RunInternal (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx) [0x00071] in <d2ec5c92492f4d6ba8c422bdf574b786>:0 
  at System.Threading.ExecutionContext.Run (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx) [0x00000] in <d2ec5c92492f4d6ba8c422bdf574b786>:0 
  at System.Threading.ExecutionContext.Run (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state) [0x0002b] in <d2ec5c92492f4d6ba8c422bdf574b786>:0 
  at System.Threading.ThreadHelper.ThreadStart () [0x00008] in <d2ec5c92492f4d6ba8c422bdf574b786>:0 

[ERROR] FATAL UNHANDLED EXCEPTION: System.NullReferenceException: Object reference not set to an instance of an object
  at OpenRA.Mods.Common.Traits.MapOptionsInfo.OpenRA.Traits.IRulesetLoaded<OpenRA.ActorInfo>.RulesetLoaded (OpenRA.Ruleset rules, OpenRA.ActorInfo info) [0x00000] in <123db89d1f414b4686fb3ebc9896b24e>:0 
  at OpenRA.Ruleset..ctor (OpenRA.IReadOnlyDictionary`2[TKey,TValue] actors, OpenRA.IReadOnlyDictionary`2[TKey,TValue] weapons, OpenRA.IReadOnlyDictionary`2[TKey,TValue] voices, OpenRA.IReadOnlyDictionary`2[TKey,TValue] notifications, OpenRA.IReadOnlyDictionary`2[TKey,TValue] music, OpenRA.TileSet tileSet, OpenRA.Graphics.SequenceProvider sequences, OpenRA.IReadOnlyDictionary`2[TKey,TValue] modelSequences) [0x00072] in <742652ed86ed424f90d92f1e5a818a0c>:0 
  at OpenRA.Ruleset.LoadDefaultsForTileSet (OpenRA.ModData modData, System.String tileSet) [0x00021] in <742652ed86ed424f90d92f1e5a818a0c>:0 
  at OpenRA.MapPreview+InnerData+<>c__DisplayClass28_0.<SetRulesetGenerator>b__0 () [0x0007f] in <742652ed86ed424f90d92f1e5a818a0c>:0 
  at System.Lazy`1[T].ViaFactory (System.Threading.LazyThreadSafetyMode mode) [0x00043] in <d2ec5c92492f4d6ba8c422bdf574b786>:0 
  at System.Lazy`1[T].ExecutionAndPublication (System.LazyHelper executionAndPublication, System.Boolean useDefaultConstructor) [0x00022] in <d2ec5c92492f4d6ba8c422bdf574b786>:0 
  at System.Lazy`1[T].CreateValue () [0x00074] in <d2ec5c92492f4d6ba8c422bdf574b786>:0 
  at System.Lazy`1[T].get_Value () [0x0000a] in <d2ec5c92492f4d6ba8c422bdf574b786>:0 
  at OpenRA.MapPreview+InnerData.get_Rules () [0x0000a] in <742652ed86ed424f90d92f1e5a818a0c>:0 
  at OpenRA.MapPreview.get_Rules () [0x00000] in <742652ed86ed424f90d92f1e5a818a0c>:0 
  at OpenRA.MapPreview.PreloadRules () [0x00000] in <742652ed86ed424f90d92f1e5a818a0c>:0 
  at OpenRA.Mods.Common.Widgets.Logic.MissionBrowserLogic+<>c__DisplayClass21_1.<.ctor>b__10 () [0x0001d] in <123db89d1f414b4686fb3ebc9896b24e>:0 
  at System.Threading.ThreadHelper.ThreadStart_Context (System.Object state) [0x00014] in <d2ec5c92492f4d6ba8c422bdf574b786>:0 
  at System.Threading.ExecutionContext.RunInternal (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx) [0x00071] in <d2ec5c92492f4d6ba8c422bdf574b786>:0 
  at System.Threading.ExecutionContext.Run (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx) [0x00000] in <d2ec5c92492f4d6ba8c422bdf574b786>:0 
  at System.Threading.ExecutionContext.Run (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state) [0x0002b] in <d2ec5c92492f4d6ba8c422bdf574b786>:0 
  at System.Threading.ThreadHelper.ThreadStart () [0x00008] in <d2ec5c92492f4d6ba8c422bdf574b786>:0 
AL lib: (EE) alc_cleanup: 1 device not closed
@pchote

This comment has been minimized.

Copy link
Member

@pchote pchote commented Jan 6, 2020

Probably a duplicate of #17314 and #17369, which are probably timing / threading related, and therefore difficult to reproduce without artificially slowing things down.

@abcdefg30 abcdefg30 added the Crash label Jan 6, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants
You can’t perform that action at this time.