-
Notifications
You must be signed in to change notification settings - Fork 323
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
NPE in io.circe.Printer$PrintingFolder.onString from Client.processMessage( #5683
Comments
Hubert, Radek, can you triage my bug report? Is it possible that |
I am using following modification to obtain the exception: enso$ git diff
diff --git a/lib/scala/logging-service/src/main/scala/org/enso/loggingservice/internal/service/Client.scala b/lib/scala/logging-service/src/main/scala/org/enso/loggingservice/internal/service/Client.scala
index b7ed6547a..6b4223b95 100644
--- a/lib/scala/logging-service/src/main/scala/org/enso/loggingservice/internal/service/Client.scala
+++ b/lib/scala/logging-service/src/main/scala/org/enso/loggingservice/internal/service/Client.scala
@@ -87,7 +87,14 @@ class Client(
"the connection has been initialized."
)
)
- val serializedMessage = message.asJson.noSpaces
+ val serializedMessage = try {
+ message.asJson.dropNullValues.noSpaces
+ } catch {
+ case npe: NullPointerException => {
+ npe.printStackTrace()
+ throw npe
+ }
+ }
val offerResult = queue.offer(TextMessage.Strict(serializedMessage))
try {
Await.result(offerResult, 30.seconds) match { |
When does this happen? Just randomly when using the IDE? Or is there any particular set of steps when it happens more often? I'm not sure what can be |
It happens randomly when I run the IDE & |
I think I saw something similar in the past when trying to visualize dataflow errors |
Left with |
Thanks for the encouragement. I have a reproducer. |
Jaroslav Tulach reports a new STANDUP for yesterday (2023-02-21): Progress: - bugfix of #5683: PR: #5715
Next Day: Working on SuggestionDB & other fixes
|
Getting ready for `null` values in `WSLogMessage`. Closes #5683.
Discord username
Jaroslav Tulach#1623
What type of issue is this?
Intermittent – Ocurring irregularly
Is this issue blocking you from using Enso?
Is this a regression?
What issue are you facing?
While developing I am seeing:
Expected behaviour
I have a feeling this is related to encoding exceptions with
null
message that cannot be serialized, but I am not able to verify that in debugger.How we can reproduce it?
No response
Screenshots or screencasts
No response
Enso Version
dev as of Feb 17, 2023
Browser or standalone distribution
Chromium
Browser Version or standalone distribution
Browser
Operating System
Linux
Operating System Version
Ubuntu
Hardware you are using
AMD Radeon
The text was updated successfully, but these errors were encountered: