Hi,

Please excuse my bad English.

I have a problem with Inkscape since commit d6f2d85a (jemalloc cmake module)

When I add a grid in Inkscape (Document properties/Grids/New), inkscape freeze and I must kill it.

I’m under Arch Linux with jemalloc 5.0.1.
If i compile without jemalloc or with version 4.5.0, there is no freeze.

I reproduced the problem with openSuse tumbleweed but not with openSuse 42.1 and Ubuntu 17.04.

With debugger, I found that Inkscape freeze in method DocumentProperties::update_gridspage(), line 1291:

_grids_notebook.remove_page(-1);

and that it's related to RegisteredColorPicker widgets used in method newSpecificWidget() of classes CanvasXYGrid and CanvasAxonomGrid.

When i comment the code wich pack these widgets, there is no freeze.

Unfortunately, I did not succeed to go further with debugger (I get stuck with a call to g_object_unref).

I rewrite the code which manage grid properties without using Gtk:Manage and there is no freeze.

I will clean my code and do a merge request.

If anyone want to look at this problem, there is maybe a better solution.

Best regards,

Christophe