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

[Bug] Occasionally, Window Fails to Fill, Spamming Stack Trace Instead #17

Closed
maarxx opened this issue Apr 14, 2017 · 3 comments
Closed

Comments

@maarxx
Copy link
Contributor

maarxx commented Apr 14, 2017

[Bug] Occasionally, Window Fails to Fill, Spamming Stack Trace Instead

When it happens, the main view renders only a couple pawns (presumably until it hits the error row) and then suddenly renders no more pawns.

It happens on the GUI thread, so it spams the below stack trace error a bajillion times per second until the window is closed.

Exception filling window for kNumbers.MainTabWindow_Numbers: System.NullReferenceException: Object reference not set to an instance of an object
at kNumbers.KListObject.Draw (Rect rect, Verse.ThingWithComps ownerPawn) [0x00000] in :0
at kNumbers.MainTabWindow_Numbers.DrawPawnRow (Rect r, Verse.ThingWithComps p) [0x00000] in :0
at kNumbers.MainTabWindow_ThingWithComp.DrawRows (Rect outRect) [0x00000] in :0
at kNumbers.MainTabWindow_Numbers.DoWindowContents (Rect r) [0x00000] in :0
at HugsLib.GuiInject.WindowDetour+<>c__DisplayClass1.<_WindowOnGUI>b__0 (Int32 x) [0x00000] in :0
Verse.Log:Error(String)
HugsLib.GuiInject.<>c__DisplayClass1:<_WindowOnGUI>b__0(Int32)
UnityEngine.GUI:CallWindowDelegate(WindowFunction, Int32, GUISkin, Int32, Single, Single, GUIStyle)

@maarxx maarxx changed the title Occasionally, Window Fails to Fill, Spamming Stack Trace Instead [Bug] Occasionally, Window Fails to Fill, Spamming Stack Trace Instead Apr 17, 2017
@maarxx
Copy link
Contributor Author

maarxx commented Apr 17, 2017

I narrowed this one down, it happens when Current Job column is selected and a pawn is Downed.

@maarxx
Copy link
Contributor Author

maarxx commented Apr 22, 2017

Actually, can't quite replicate this one consistently, might be related to #21, which I was able to replicate, but the stack trace was different here ...

@maarxx
Copy link
Contributor Author

maarxx commented Apr 22, 2017

Closing #17 as a duplicate in favor of #21

@maarxx maarxx closed this as completed Apr 22, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant