Open shamazmazum opened 2 years ago
My code is here
The result is the following: Two images must be identical but they are not.
This is probably due to bad finalization logic in my use of static-vectors.
Also, for your code sample you just posted a link back to this issue. Can you post at least a snippet of the code that produces the image comparison widget above?
Oh, sorry. Here is a correct link. Those raw files are voxel spaces with dimensions side
xside
xside
and one byte per voxel. I attach one so you can play
test.raw.zip
https://gist.github.com/shamazmazum/e3d7e54f3bef21b612ced296057f4f9d
Hi. I am running
common-lisp-jupyter-20211207180130
from Ultralisp on SBCL 2.2.0 and have the following jupyter packagesThe problem is with
jupyter-widgets:image
widget. I run an example which draws the Julia set. Right after creation of a widget there is no image. I think this is incorrect, because you have(update instance)
right at the end ofinitialize-instance
method.When I press some buttons on other widgets the image is drawn: but I have this in the console from where jupyter is started:
When I remove this method from
src/message.lisp
the memory corruption problem is gone. I think it tries to free some foreign memory twice.But this does not solve the first problem. Practically, I have two image widgets and one integer scroller. When the scroller's value is changed a function is called which redraws both images. The first image is redrawn each time the value of that scroller is changed and the second image is redrawn only occasionally.