After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 682742 - Module manager: turning off modules has no effect
Module manager: turning off modules has no effect
Status: RESOLVED FIXED
Product: GIMP
Classification: Other
Component: General
2.8.2
Other Windows
: Normal normal
: 2.8
Assigned To: GIMP Bugs
GIMP Bugs
Depends on:
Blocks:
 
 
Reported: 2012-08-26 20:12 UTC by nezumi
Modified: 2012-10-08 23:29 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Here in is modulerc file (729 bytes, text/plain)
2012-09-03 16:15 UTC, nezumi
Details
Output of gimp-2.8 --verbose (5.21 KB, text/plain)
2012-09-07 17:21 UTC, Max Mustermann
Details
Output of --verbose (2) (13.45 KB, text/plain)
2012-09-10 19:57 UTC, Max Mustermann
Details
Output of --verbose (2) (6.24 KB, text/plain)
2012-09-10 20:03 UTC, Max Mustermann
Details
Error message and stacktrace (2.14 KB, text/plain)
2012-09-11 04:27 UTC, Max Mustermann
Details
File modulerc (132 bytes, text/plain)
2012-09-11 19:47 UTC, Max Mustermann
Details
Output of --verbose, modulerc and image showing changes in dialog layout (36.94 KB, application/zip)
2012-10-07 10:54 UTC, Max Mustermann
Details

Description nezumi 2012-08-26 20:12:20 UTC
Turning off modules in module manager (Edit/Modules) is impossible. Doesnt matter if I uncheck them when gimp is running normally or administrator mode - when I restart GIMP all modules appear checked again.
Happens every time.
Windows 7, 64bit.
Comment 1 Max Mustermann 2012-08-31 17:43:59 UTC
Confirming this for GIMP 2.8.2. on Windows 7, 32 bit. Mac-Version is not affected.
Comment 2 Michael Natterer 2012-09-02 23:25:32 UTC
Please turn off a module, quit gimp, and attach the "modulerc" file
from your gimp settings folder here.
Comment 3 nezumi 2012-09-03 16:15:52 UTC
Created attachment 223342 [details]
Here in is modulerc file

I hope this helps.
Comment 4 Michael Natterer 2012-09-07 06:57:09 UTC
Please run gimp with the --verbose option and paste the section
of the output where it prints "Loading module" lines.
Comment 5 Max Mustermann 2012-09-07 17:21:45 UTC
Created attachment 223779 [details]
Output of gimp-2.8 --verbose

Here's the output. There's only one line with this text, so I attached the whole output to give all information, that might be necessary.
Comment 6 Michael Natterer 2012-09-08 10:51:55 UTC
This makes --verbose work, sigh...

commit d4ebc9562d7696fb0e7efa004ca1e65c18d7236d
Author: Michael Natterer <mitch@gimp.org>
Date:   Sat Sep 8 12:48:53 2012 +0200

    app: add a workaround to make GimpModuleDB's "verbose" flag work
    
    so we get module output from gimp --verbose.
    (cherry picked from commit 4db6a970ded1eeb5d8de39eb2eab3d008e9370b0)

 app/core/gimp-modules.c |    3 +++
 1 file changed, 3 insertions(+)
Comment 7 Max Mustermann 2012-09-10 19:57:30 UTC
Created attachment 223953 [details]
Output of --verbose (2)

Here's another output from the --verbose option. I used drawocs stable nightly build from 09.09.2012. Unfortunately no 'Loading modules' line to see, but maybe it's useful, tho'.
Comment 8 Max Mustermann 2012-09-10 20:03:39 UTC
Created attachment 223955 [details]
Output of --verbose (2)

Another, more verbose, try with a greater terminal window buffer. Sorry for the broken attachment before. This one has 'Loading module' lines.
Comment 9 Max Mustermann 2012-09-11 04:27:24 UTC
Created attachment 223978 [details]
Error message and stacktrace

Addition: the output of comment#8 was made without any prior changes in Edit/Modules. I just tried to change those settings, but GIMP 2.8.2. (nightly stable build from 09.09.2012) crashes. Attached you find the debugger messages and stacktrace (from VS 2010).
Comment 10 Michael Natterer 2012-09-11 06:26:56 UTC
Thanks Sven, I also need your modulerc from that install, with some
modules disabled.
Comment 11 Max Mustermann 2012-09-11 19:47:05 UTC
Created attachment 224046 [details]
File modulerc

Here's the modulerc file you asked for. 
I have Jernej's 2.8.2 build and Drawocs nightly build in parallel. The latter, crashing doesn't modify the modulerc.
Comment 12 Michael Natterer 2012-09-11 21:53:46 UTC
Well, I need the modulerc and the --verbose output from the same
executable of course :)
Comment 13 Max Mustermann 2012-10-07 10:54:53 UTC
Created attachment 225978 [details]
Output of --verbose, modulerc and image showing changes in dialog layout

I tried again today with drawocs nightly debug build of GIMP 2.8.2 from 06.10.2012.

1. The stable nightly build still crashes GIMP when using the menu item Edit/Modules. The debug build doesn't crash here.

2. I tried again and turned off the 'CMYK color selector' module, while the others were left active. You find the output of --verbose and the modulerc attached (this time from the same build ;-). The extension '1st run' refers to the first run of the debug build at all, the extension '2nd run' to the next run (when the 'CMYK color selector' module was turned off). 

3. I observed a change in the Module managers dialog layout after unticking the first item. The dialog got broader. The attached zip file contains an image showing the effect.
Comment 14 Michael Natterer 2012-10-08 23:04:15 UTC
The modulerc first says

H:\gimp-stable-dbg-i686-2012-10-06\

and then

H:\gimp-stable-i686-2012-10-06\

That is odd. Which one is the right folder? Do they both exist?
Comment 15 Michael Natterer 2012-10-08 23:29:29 UTC
Fixed in master and gimp-2-8:

commit 2cd165a8b8a19b4b340e477b90761e211da52194
Author: Michael Natterer <mitch@gimp.org>
Date:   Tue Oct 9 01:25:42 2012 +0200

    Bug 682742 - Module manager: turning off modules has no effect
    
    Use gimp_config_writer_string() instead of gimp_config_writer_printf()
    to serialize module-load-inhibit so backslashes and other stuff gets
    properly escaped.
    (cherry picked from commit 6c41f58feaa77d34c73ca4b01348efae2b84dbd4)

 app/core/gimp-modules.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)