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

ChatBot Sample Scene flow stuck on "Loading..." #21

Closed
kvarher opened this issue Jan 14, 2024 · 4 comments · Fixed by #27
Closed

ChatBot Sample Scene flow stuck on "Loading..." #21

kvarher opened this issue Jan 14, 2024 · 4 comments · Fixed by #27
Labels
bug Something isn't working
Milestone

Comments

@kvarher
Copy link

kvarher commented Jan 14, 2024

Description

When Play Mode begins in the Unity Editor and after the LLM Server is started, the following two NullReferenceExceptions are thrown and the chat bubble in the scene is stuck on "Loading..."

NRE 1, which does not repeat:

NullReferenceException: Object reference not set to an instance of an object
LLMUnitySamples.InputBubble.FixCaretSorting (UnityEngine.UI.InputField inputField) (at Assets/Samples/LLMUnity/1.0.1/ChatBot/Bubble.cs:183)
LLMUnitySamples.InputBubble..ctor (UnityEngine.Transform parent, LLMUnitySamples.BubbleUI ui, System.String name, System.String message, System.Int32 lineHeight) (at Assets/Samples/LLMUnity/1.0.1/ChatBot/Bubble.cs:144)
LLMUnitySamples.ChatBot.Start () (at Assets/Samples/LLMUnity/1.0.1/ChatBot/ChatBot.cs:49)

NRE 2, which repeats forever:

NullReferenceException: Object reference not set to an instance of an object
LLMUnitySamples.ChatBot.Update () (at Assets/Samples/LLMUnity/1.0.1/ChatBot/ChatBot.cs:136)

To Reproduce

  • Load a model
  • Enter Play mode in the Unity Editor

Expected Behavior

  • NREs do not appear
  • User is able to interact with the scene

Screenshots/Video

Unity_Xs0YnNRMYJ

Configuration

  • Windows 10
  • Unity 2021.3.34 LTS
  • LLMUnity v1.0.1
  • Mixtral-8x7B-Instruct-v0.1-LimaRP-ZLoss-GGUF

Notes

Thanks for creating this project. Great stuff!

@amakropoulos
Copy link
Collaborator

Thank you for submitting the issue 👏 !
It probably has to do with the Unity version, I have only tested from the latest 2022 LTS and 2023.
I'm downloading 2021.3.34 LTS and will include a fix in v1.0.2 ASAP!

@amakropoulos amakropoulos added the bug Something isn't working label Jan 15, 2024
@amakropoulos amakropoulos added this to the v1.0.2 milestone Jan 15, 2024
@amakropoulos amakropoulos moved this from Todo to In Progress in LLM for Unity Roadmap Jan 16, 2024
@amakropoulos amakropoulos moved this from In Progress to Implemented in LLM for Unity Roadmap Jan 16, 2024
@github-project-automation github-project-automation bot moved this from Implemented to Done in LLM for Unity Roadmap Jan 18, 2024
@amakropoulos
Copy link
Collaborator

@kvarher version 2021 works now in v1.0.2!

@kvarher
Copy link
Author

kvarher commented Jan 20, 2024

@amakropoulos just tested and confirmed it's working. Thanks again for this project and the fix!

@amakropoulos
Copy link
Collaborator

perfect :)!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

2 participants