anna-is-cute / plugin-issues

A repository of confirmed issues for my plugins.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[Chat 2] Uncaught exception in ChatMessage hook

mustafakalash opened this issue · comments

I have been having the following issues, which do not reoccur if Chat 2 is disabled:

  • Tells do not show in the Chat 2 window in any tab
  • Chat messages (but not other kinds of messages, like system or battle) in the vanilla chat window are duplicated:
    • image
  • Crashing

This is the only exception I have in my logs:

13:06:08.883 ERR | [ChatGui] Exception on OnChatMessage hook.
13:06:08.883 ERR | System.IndexOutOfRangeException: Index was outside the bounds of the array.
13:06:08.883 ERR |    at LiteDB.Engine.IndexService.AddNode(CollectionIndex index, BsonValue key, PageAddress dataBlock, Byte level, IndexNode last)
13:06:08.883 ERR |    at LiteDB.Engine.IndexService.AddNode(CollectionIndex index, BsonValue key, PageAddress dataBlock, IndexNode last)
13:06:08.883 ERR |    at LiteDB.Engine.LiteEngine.InsertDocument(Snapshot snapshot, BsonDocument doc, BsonAutoId autoId, IndexService indexer, DataService data)
13:06:08.883 ERR |    at LiteDB.Engine.LiteEngine.<>c__DisplayClass7_0.<Insert>b__0(TransactionService transaction)
13:06:08.883 ERR |    at LiteDB.Engine.LiteEngine.AutoTransaction[T](Func`2 fn)
13:06:08.883 ERR |    at LiteDB.LiteCollection`1.Insert(T entity)
13:06:08.883 ERR |    at ChatTwo.Store.AddMessage(Message message, Tab currentTab) in /work/repo/ChatTwo/Store.cs:line 290
13:06:08.883 ERR |    at ChatTwo.Store.ChatMessage(XivChatType type, UInt32 senderId, SeString sender, SeString message) in /work/repo/ChatTwo/Store.cs:line 368
13:06:08.883 ERR |    at Dalamud.Game.Gui.ChatGui.HandlePrintMessageDetour(RaptureLogModule* manager, XivChatType chatType, Utf8String* sender, Utf8String* message, Int32 timestamp, Byte silent) in C:\goatsoft\companysecrets\dalamud\Game\Gui\ChatGui.cs:line 360

Thank you!

Deleting the database files seems to have solved the issue.