-
Notifications
You must be signed in to change notification settings - Fork 28
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
Slicer crashes when sending red slice via OpenIGTLink #103
Comments
Hi,
I am using Windows 10 as OS and tested this issue with Slicer 4.10 and 4.11. For both versions the behavior is the same.
Thanks for taking care!
Von: leochan2009 <[email protected]>
Gesendet: Montag, 4. Mai 2020 15:21
An: openigtlink/SlicerOpenIGTLink <[email protected]>
Cc: mcfly3001 <[email protected]>; Author <[email protected]>
Betreff: Re: [openigtlink/SlicerOpenIGTLink] Slicer crashes when sending red slice via OpenIGTLink (#103)
Thanks for reporting! Could you tell me which slicer version are you using?
And which OS platform you are using?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub <#103 (comment)> , or unsubscribe <https://github.com/notifications/unsubscribe-auth/AI3W3RCQBJKI6P2NVB2YDPTRP26MVANCNFSM4MYQXG2Q> . <https://github.com/notifications/beacon/AI3W3RESC4ONOVLAS6DF443RP26MVA5CNFSM4MYQXG22YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEUUT4OI.gif>
|
The red slice size was increased from 600x400 to around 1300x850... |
Hi, In the ImageClient3.cpp file, you will need to change the line: The crash didn't happen to my machine. but i see that many saved image files are of zero size . Also Another possible reason for the crash is the changing of image size dynamically. The design of the volume streaming is for fixed image/volume size during the transmission. The changing image/volume size might be error prone. If you have volumes/images with different sizes, it would be better create two volumes and send them independently. |
Hi, thanks for testing. I also did some more testing. If I initially enlarge the red slice (i.e. Slicer in full screen and then only showing red slice) before starting the ImagerClient.exe everything works fine. As you said I also think that the change of the data size while connected leads to the crash. Maybe the OS also makes a difference. Would the video streaming functionality also be based on a fixed size? I am trying to stream the content of a slice to another device. I havent found out though how to enable the video streaming functionality in Slicer yet. |
Hi, video streaming functionality is also based on fixed sizes. VP9 codec is currently used in Slicer. Youtube actually use the same codec. To use the video streaming, you will need to use vtkMRMLStreamingVolumeNode, here are some document for your reference: |
I was looking into the code and actually find that when you streaming image using vtkMRMLScalarVolumeNode, the openigtlink message actually get created whenever the volume is updated. so there should be fine for sending dynamic volume. vtkMRMLStreamingVolumeNode though requires fixed volume size. I am not sure how the crash happen when using vtkMRMLScalarVolumeNode. By the way, when running the imageclient3.exe, do you see the saved image files? some files are of byte zero, did this happen to you? |
Thanks for the detailed explanation concerning the video streaming. I will give this a try asap. |
Slicer crashes when trying to send an image of the red slice via OpenIGTLink. The crash only occurs when the red slice has reached a certain resolution. Small resolutions work fine.
Here the steps and code to reproduce the crash:
Start Slicer and open the python console window. Enter the following code:
Next, start the ImagerClient3.exe example script:
Now, when dragging the slider of the red slice, the image is successsfully send to the client. To trigger the crash, change the layout such that the red slice is taking more space (e.g. red slice only). Slicer crashes.
The text was updated successfully, but these errors were encountered: