unloggedio / unlogged-sdk

Unlogged SDK for recording code execution
https://unlogged.io
Apache License 2.0
152 stars 16 forks source link

Crash on startup #58

Open artpar opened 1 month ago

artpar commented 1 month ago

Describe the bug

getting next error in startng instance related to unlogged as follows


Exception in thread "Thread-6" java.lang.NullPointerException: Cannot invoke "java.io.OutputStream.write(byte[])" because the return value of "io.unlogged.logging.perthread.PerThreadBinaryFileAggregatedLogger.getStreamForThread(int)" is null
    at io.unlogged.logging.perthread.PerThreadBinaryFileAggregatedLogger.writeEvent(PerThreadBinaryFileAggregatedLogger.java:387)
    at io.unlogged.logging.impl.DetailedEventStreamAggregatedLogger.recordEvent(DetailedEventStreamAggregatedLogger.java:434)
    at io.unlogged.logging.Logging.recordEvent(Logging.java:63)
    at deshaw.descap.server.cache.InvestorPiiDataAegisCache$DataCleanerThread.run(InvestorPiiDataAegisCache.java:396)

Exception: java.lang.NullPointerException thrown from the UncaughtExceptionHandler in thread "Thread-7"

Exception: java.lang.NullPointerException thrown from the UncaughtExceptionHandler in thread "Thread-8"

Exception: java.lang.NullPointerException thrown from the UncaughtExceptionHandler in thread "Thread-10"

Exception: java.lang.NullPointerException thrown from the UncaughtExceptionHandler in thread "Thread-12"

Exception: java.lang.NullPointerException thrown from the UncaughtExceptionHandler in thread "Thread-14"

Exception: java.lang.NullPointerException thrown from the UncaughtExceptionHandler in thread "Thread-16"

Exception: java.lang.NullPointerException thrown from the UncaughtExceptionHandler in thread "Thread-18"

Exception: java.lang.NullPointerException thrown from the UncaughtExceptionHandler in thread "Thread-20"

Exception: java.lang.NullPointerException thrown from the UncaughtExceptionHandler in thread "Thread-22"

Reproduction steps

  1. started application with unlogged-sdk
  2. ...

Expected behavior

application shouldn't crash

Additional context

doesn't happen all the time