Skip to content
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

Problems when trying to rapidly load multiple images from scripted client #92

Open
jeffctaylor opened this issue Oct 15, 2015 · 1 comment

Comments

@jeffctaylor
Copy link
Contributor

When I try to load multiple images from the scripted client in rapid succession (e.g. by looping through a directory and calling loadFile() on each of the files), something goes wrong and the images are not being loaded properly. I see this popping up in the output for most or all of the load file commands:

Critical: input view not set (../../../../../dev/CARTAvis/carta/cpp/core/ImageRenderService.cpp:295, void Carta::Core::ImageRenderService::Service::internalRenderSlot())

At this point, many of the scripted commands stop working properly, as well as parts of the GUI. For example, the animator stops working, and the entire application crashes when trying to set the layout to Image.

I think this issue is currently confined to the scripted client, as I can't see a way of loading multiple files rapidly. However, if we ever want to allow multiple files to be selected from the file picker, it would probably happen from the GUI as well. If anyone needs a sequence of Python commands to try reproducing this issue, please let me know.

@jeffctaylor
Copy link
Contributor Author

There is a possibility that this bug may depend on the machine that the software is running on. I find that it is easier to trigger on a lower powered machine (e.g. a 2-core virtual machine) than a higher powered one (e.g. an 8-core desktop machine).

Also, when I try to set the Image layout after loading all the images I see the following output before the application crashes:

desktop: /usr/include/rapidjson/document.h:847: rapidjson::GenericValue<Encoding, Allocator>::ConstMemberIterator rapidjson::GenericValue<Encoding, Allocator>::MemberEnd() const [with Encoding = rapidjson::UTF8<>; Allocator = rapidjson::MemoryPoolAllocator<>; rapidjson::GenericValue<Encoding, Allocator>::ConstMemberIterator = rapidjson::GenericMemberIterator<true, rapidjson::UTF8<>, rapidjson::MemoryPoolAllocator<> >]: Assertion `IsObject()' failed.

jeffctaylor added a commit to jeffctaylor/CARTAvis that referenced this issue Oct 16, 2015
I'm essentially just stashing this for now until we figure out what to do
about that issue.
jeffctaylor added a commit to jeffctaylor/CARTAvis that referenced this issue Oct 16, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant