-
Notifications
You must be signed in to change notification settings - Fork 593
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
Cannot append a slice with different number of columns #433
Comments
Relates to #412. |
The problem is maybe due to an image load thread still being alive, I'll try to reproduce. |
or is there way to remove the previously loaded slices before loading a new series? |
Hi Yves, Thanks for adding that to public method.. I used your built in Grunt and tried out the abortLoad(). Somehow still getting the error :( is it possible that the previously loaded slices are already appended to the view and newly loaded slices tries to append then cause error :( ? |
I get the error for the |
Hi @mingjuitsai, do you confirm my previous comment? Does it solve your problem? |
Hi, Yes we do find slices that are different from the series. We will try to simply delete that slice, which should solve the problem. WIll test it out today. The doctor suspected that this error occurs because every now and then the actual MRI machine itself randomly exports the stacks like this. |
Ok, closing for now. Feel free to comment if you still have problems. |
Hi, Please I've tested again with other dcm files. This time I separated the test from the app I was building. Please see: This is a forked of a example JSfiddle of dwv.. I set an array of dicom file URLs which I have uploaded to CloudFront ( hard-coded ), then dynamically create buttons depending on length of the dicom-url-array. Then set the event listener to load relative URLS when clicking on each button. As shown in GIF below.. when I clicked on each button slowly with short interval.. no errors at all. But when I click on each button with quick interval. The error of either Error: Cannot append a slice with different SeriesInstanceUID or Error: Cannot append a slice with different number of columns would show up.. I still don't quite understand what's causing the error. I have check the dcm files slices again. I think this time the dcm files shouldn't have wrong slice in the series. Any clues? |
Any progress? I am not sure this issue is fully resolved yet :( |
I created a new version of the fiddle: https://jsfiddle.net/ivmartel/8xmruou2/20/ This one seems to work, at least on Google Chrome. Can you confirm? |
Unfortunately, problem still seems to exist. Even when testing your fiddle and I keep getting Error: Cannot append a slice with different number of columns :( UPDATE: I added some timeout between resetting and and loading new urls and it seems to be working properly. It seems a little bit like a workaround but I didn't come up with better solution. Would be grateful for one, though. |
Even I am getting the errors: Error: Cannot append a slice with different number of columns or |
Your issue is more related to the load abort, I think it is worth its own issue, could you create a new one please? When aborting, it is possible that some slices were already loaded by the viewer, like you say, I was not sure when implementing if the viewer should reset or not. This is something you can do by listening to the abort event and resting the app when you receive it. You say this does not work, could you explain in the new ticket what you do and what error you are having if you are receiving any? I'm wondering if you should wait for load-end to reset just in case some data is still loading. |
Hi,
I am trying to build a dicom viewer integrating with Swiper JS slider http://idangero.us/swiper/api/#methods
Functions:
When user clicks on a thumbnail then it loads a new array or URLs.
Issue:
However I keep getting this error Cannot append a slice with different number of columns or Cannot append a slice with different SeriesInstanceUID especially when the current array of URLs of dcm files have not finished loading ( inspecting from Google Chrome dev tool network ) before switching to a new thumbnail.
I have tried many ways including but none is working.. is it the problem with my code or the DCM files????
Methods I have tried:
Fake the ctrl-x to cancel image loading
Clear the canvas
I've tried to disable the Swiper while dicom viewer are loading urls but I still get same error sometimes
Here is the project URL
http://mripro.plot.net.au/#/case
The text was updated successfully, but these errors were encountered: