Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 05-15-2017, 08:42 AM   #1
Senior Member
Registered: Apr 2006
Distribution: not disclosing my distro
Posts: 2,283

Rep: Reputation: Disabled
Mirage photo editor gives error message about a "mutex"

The last few times I tried to look at some photos with Mirage, it wouldn't run--nothing visible happened. This latest time, I finally thought to try a terminal to seek more information, and saw this error message:
Attempt to unlock mutex that was not locked
That's new to me...I've never heard the word "mutex" in any Linux discussion. What does the error mean, and what should I do?
Old 05-15-2017, 10:06 AM   #2
LQ Guru
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 9,291
Blog Entries: 4

Rep: Reputation: 3318Reputation: 3318Reputation: 3318Reputation: 3318Reputation: 3318Reputation: 3318Reputation: 3318Reputation: 3318Reputation: 3318Reputation: 3318Reputation: 3318
This indicates a bug in the application, and it should be reported to its authors as such.

- - -
FYI: a "mutex" is a "mutual exclusion" mechanism that enables multiple processes or threads to avoid trying to make competing use of a single shared resource. Only one party at a time gets to "lock" it; all others are forced to wait in line. (Think: the door to a bathroom stall. If two people tried to use the same toilet at the same time, it'd get ... kinky. )

The error message means that some process or thread "tried to unlock the bathroom-stall door, but it wasn't locked." This implies a subtle timing bug in the application, since such code is supposed to be designed such that "you [that is to say, the application process/thread ...] know that the door is locked, because you are the one that most-recently (successfully) locked it!"

The program's authors get to ...

Edit: I consider "norobro's" subsequent post to be especially relevant to the present situation.

Last edited by sundialsvcs; 05-15-2017 at 08:13 PM.
1 members found this post helpful.
Old 05-15-2017, 11:00 AM   #3
Registered: Feb 2006
Distribution: Debian Sid
Posts: 792

Rep: Reputation: 331Reputation: 331Reputation: 331Reputation: 331
Since GLib ≥ 2.41, attempting to release an unlocked mutex will abort(),
as it happens on most systems already.

Given the lack of proper documentation on how to use GDK with threads,
there is code in the wild that does:

gdk_threads_init ();
gdk_init ();


gtk_main ();

instead of the idiomatically correct:

gdk_threads_init ();
gdk_threads_enter ();

gtk_init ();


gtk_main ();


gdk_threads_leave ();

Which means that gtk_main() will try to release the GDK lock, and thus
trigger an error from GLib.

we cannot really fix all the wrong code everywhere, and since it does
not cost us anything, we can work around the issue inside GDK itself, by
trying to acquire the GDK lock inside gdk_threads_leave() with
From here:

The above is what is happening in
$ grep -n "gtk."
74:             gtk.gdk.threads_init()
4578:           gtk.main()
4582:   gtk.gdk.threads_enter()
4584:   gtk.gdk.threads_leave()
This was patched in gtk+2.0-2.24.24 on Debian. Mirage runs fine on my machine:
$ dpkg -s libgtk2.0-0|grep '^Version'
Version: 2.24.31-2
2 members found this post helpful.
Old 05-15-2017, 09:12 PM   #4
Senior Member
Registered: Apr 2006
Distribution: not disclosing my distro
Posts: 2,283

Original Poster
Rep: Reputation: Disabled
Yes, and I did try to force the version in Synaptic, but I find the version you cite is not available. Looks like I need to update at least one of my source lists.

Last edited by newbiesforever; 05-15-2017 at 09:17 PM.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Hard crash after boot message "Error for wireless request "Set Nickname" (8B1C)" steinc69 Linux - Newbie 4 12-12-2015 10:29 AM
"Mirage" picture viewer blurry screenshots Mr. Alex Linux - Software 4 08-29-2015 05:33 PM
question regarding "semaphores" and "mutex". vamsee.menda Linux - Newbie 1 10-28-2014 03:01 AM
FC4 install errors, "diabling IRQ #10" "nobody cares" error message??? A6Quattro Fedora 6 07-20-2005 12:49 PM
error message when pressing "Next" "BIOS Problems" , help ! HeRCuLeSX Fedora 3 07-21-2004 02:37 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:18 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration