Skip to content

ROIs not displayed when created #611

@Rdornier

Description

@Rdornier

Hello @will-moore,

From time to time, a bug occurs when I try to create any ROI on any panel (either from the modal dialog, from copy-pasting or from inset creation).
I couldn't find out the conditions under which this bug occurred.

Symptoms

When I copy-paste a ROI or when I create a new one, the ROI is not displayed on the image but... it is somehow saved in the background because when I save and refresh the figure, the ROI is now correctly displayed.

If I try to create an inset, then the browser ask me if I want to reload the page without saving

The error is only visible in the console

Uncaught Error: SVG container not found.
    create raphael.min.js:1
    c raphael.min.js:1
    At shape_manager.js:53
    render_shapes panel_view.js:169
    Backbone 6
    add_shapes panel_model.js:374
    createInset right_panel_view.js:149
    _i Underscore
    rt Backbone
    createInset right_panel_view.js:128
    jQuery 2
        dispatch
        handle
raphael.min.js:1:73427

Quick walk-around

Save the figure and refresh omero.figure. Then, it is working as expected.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions