-
Notifications
You must be signed in to change notification settings - Fork 52
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
IllegalStateException in logging framework when executing a script #410
Comments
What was the script run from the |
# @SciView sv
sv.addSphere()
print('My first script!') On @kephale's Linux box. Probably not too enlightening though... looks more like a race condition to me. Here's the relevant line: It's just a debug log statement during cleanup phase. |
Huh. Maybe the |
FWIW, I can reproduce the stackTrace = Thread.currentThread().getStackTrace()
className = stackTrace[1].getClassName()
println className
clazz = Class.forName(className)
println clazz which throws:
|
Ahh! I missed that If we really need to do dynamic class lookup there, we should change it to |
I would suggest this fix #411 I failed to reproduce the problem. I therefor couldn't make sure that the fix really works. |
Sounds like a conspiracy... I could confirm that #411 fixes the bug. The exception can be triggered by the following script: @LogService log
log.setLevel("net.imagej", 2)
log.warn("Hello World!") |
@ctrueden I needed to change the parameter annotation in the script from |
@maarzt the syntax is either It's possible that before #403, |
During the first session of the sciview tutorial at I2K 2020:
Likely a bug in the SciJava logging framework.
CC @kephale @skalarproduktraum @maarzt
The text was updated successfully, but these errors were encountered: