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 333071 - unexpected async reply
unexpected async reply
Status: RESOLVED WONTFIX
Product: f-spot
Classification: Other
Component: Browsing
CVS
Other Linux
: Normal critical
: ---
Assigned To: F-spot maintainers
F-spot maintainers
gnome[unmaintained]
: 345110 478243 537230 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2006-03-02 00:13 UTC by Larry Ewing
Modified: 2018-07-01 09:00 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Larry Ewing 2006-03-02 00:13:07 UTC
people are reporting problems with getting 

Xlib: unexpected async reply (sequence 0x74ff1)

during normal use. This typicall means a thread is making X calls but I haven't yet found a place where that could happen.  The problem seems to happen much more often on SMP systems which would also point to a locking issue.


http://bugzilla.gnome.org/show_bug.cgi?id=323431 has some details.
Comment 1 Larry Ewing 2006-03-29 17:15:50 UTC
are the two of you still able to reproduve this?  I can't on my dual opteron 64
Comment 2 Stian Jordet 2006-04-01 18:04:57 UTC
I am at least, but it doesn't seem to happen so often as before. Earlier it happened often just during normal usage. Now I have scrolled and scrolled and scrolled to reproduce it. I think it's way more seldom now. Which is good :)
Comment 3 Anders Bo Rasmussen 2006-04-19 18:50:38 UTC
I get this a lot! I am using an SMP kernel on a CPU wit hyperthreading. It typically comes when I browse images (scrolling up/down I think). Should I keep an eye on something specific?
Comment 4 Larry Ewing 2006-04-19 19:17:23 UTC
Anders, can you do anything in specific to cause it?  What version of f-spot are you using?
Comment 5 Anders Bo Rasmussen 2006-04-19 19:49:00 UTC
I'm still using 0.1.10, so maybe this isn't the most updated information.

I have just reproduced it by scrolling up and down, double clicking on a picture and made a fast double click to get back to browsing before the picture was completly updated (and I didn't get back).
Comment 6 Stian Jordet 2006-04-19 21:34:15 UTC
That's usually what I do as well when this happens, but I have no way to reliably reproduce it. Sometimes it happens just when scrolling, other times it happens when doing what Anders just said. But it seems very intermittent.
Comment 7 Nico Kaiser 2006-04-20 06:21:20 UTC
Still the same for me. Ubuntu Dapper with P4 and Hyperthreading
Comment 8 Nico Kaiser 2006-05-12 06:09:36 UTC
Is there anything I can provide to fix this bug? It's more than annoying not being able to use SMP only because of F-Spot...

I found a comment on the Mono Gtk FAQ:
http://www.mono-project.com/FAQ:_Gtk#My_application_crashes_with_threads
Comment 9 Bengt Thuree 2006-05-16 08:49:41 UTC
As per the link in comment #8, it looks to be a call to Gtk+ that are done from outside the thread that invoked Application.Run

Have you been able to come up with a step-by-step of how to reproduce it?
Comment 10 Nico Kaiser 2006-05-16 08:53:50 UTC
There is not particular step-by-step of how to reproduce it because it does not happen everytime at the same time. "Start up F-Spot and scroll around a bit and/or view some images" would be the most accurate description, however this is not very detailed...
Comment 11 Anders Bo Rasmussen 2006-05-16 17:29:49 UTC
It is also my experience that there is no step by step reproducing method to get the crash. When I use f-spot it happens within 5 minutes if I do something real that requires scrolling. It seems like fast operations with the scroll wheel increases the chance of an async, but that could simply be because it can happen a lot more places.
Comment 12 Anders Bo Rasmussen 2006-05-25 21:45:56 UTC
The problem seems to have disappeard for me. Some days ago i shiftet profile in gentoo, and thought that it might be a good idea to recompile all packages where the flags have been changed.

I have a list of recompiled packages. I think the following is the problem:
dev-lang/mono-1.1.13.4  was not compiled with the nptl flag before but is now. nptl is Native POSIX threads library.

Comment 13 Robert Lillack 2006-06-20 16:46:18 UTC
I get this on FreeBSD since the first time I tried F-Spot. What should I do to debug?


FreeBSD 6.1-STABLE
Mono JIT compiler version 1.1.13.6
	TLS:           normal
	GC:            Included Boehm (with typed GC)
	SIGSEGV      : altstack
Gnome f-spot 0.1.11

Comment 14 ghasd 2006-06-25 08:58:12 UTC
*** Bug 345110 has been marked as a duplicate of this bug. ***
Comment 15 Stian Jordet 2006-09-10 19:45:48 UTC
As per, http://bugzilla.gnome.org/show_bug.cgi?id=333071#c12 this does not seem to be the problem with Ubuntu (which already is compiled with --with-tls=__thread (which seems to have superseeded --with-nptl=yes).

Still seeing this bug.
Comment 16 Anders Bo Rasmussen 2006-09-12 20:21:48 UTC
The problem has reappeared for me. Either it was something else or I just had a lucky day.
Comment 17 Larry Ewing 2006-10-20 04:10:21 UTC
I've just commited a patch I hope might resolve this to cvs. Please test and provide feedback.
Comment 18 Stian Jordet 2006-10-20 19:08:12 UTC
Still there... It _might_ have gotten better, because it was really hard to reproduce tonight (but sometimes it is very hard to reproduce), but it's not gone, unfortunately :(

Totally unrelated with this bug, but I got a crash with this message once as well:

The program 'f-spot' received an X Window System error.
This probably reflects a bug in the program.
The error was 'BadRequest (invalid request code or no such operation)'.
  (Details: serial 608224 error_code 1 request_code 233 minor_code 0)
  (Note to programmers: normally, X errors are reported asynchronously;
   that is, you will receive the error a while after causing it.
   To debug your program, run it with the --sync command line
   option to change this behavior. You can then get a meaningful
   backtrace from your debugger if you break on the gdk_x_error() function.)
Comment 19 Larry Ewing 2006-12-01 22:10:51 UTC
with 0.3.0 I'm completely unable to reproduce this testing on a dual opteron.  Can you still reproduce it?  Have you gotten any closer to figuring out how to produce it?  
Comment 20 Thomas Van Machelen 2006-12-03 16:02:18 UTC
FWIW, i used to have this also, but it has been quite a while already since I last had this.
Comment 21 Stian Jordet 2006-12-10 17:19:11 UTC
I just got it again, with latest cvs from tonight. But it's became much more seldom lately. I have used it a couple of days for tagging a lot of new images, and it was just today I got the infamous message...

I was thinking, this is a rather slow SMP system, could that be the reason none of you others are seeing it? Because your systems are way faster?
Comment 22 apfitch 2007-01-03 12:29:56 UTC
I have also seen this. It has occurred twice during startup. F-spot draws one or two pictures in the browser then hangs. On the terminal I see the message about unexpected async reply.

uname -a 
Linux apfitch2 2.6.18-1.2869.fc6 #1 SMP Wed Dec 20 14:51:19 EST 2006 i686 i686 i386 GNU/Linux

F-spot from cvs last night (3 jan 1:20 GMT)

Alan
Comment 23 Achim Gaedke 2007-04-29 20:56:08 UTC
Hi there!

I would like to continue this issue, because I started work on some dual core (i686) machines under linux 2.6. (basicaly debian stable) and run into severe problems with threads. I use python with thread support and trying hard to work correctly with thread_enter and thread_leave commands in my idle callbacks...

It does not appear on single core machines and could be reproduced with gtk 2.8 and gtk 2.10.

Are there any news to this bug?
Comment 24 Stian Jordet 2007-07-15 21:05:16 UTC
Still experience this as of svn r3207.
Comment 25 peter gervai 2007-11-23 09:03:20 UTC
0.3.5 under debian does this often on dualcore smp cpu.

it seems to happen when i scroll while f-spot access the db in the back, at least it usually happens on console between 
open uri = ...
entries. sometimes happens when i tag something and change back to browse mode too fast. 
almost always seem to be related to screen refresh while accessing the db, but i only guess.
Comment 26 Maxxer 2007-12-02 23:10:21 UTC
Keeping the other bug, as it has more recent activity.

*** This bug has been marked as a duplicate of 478243 ***
Comment 27 Stephane Delcroix 2007-12-10 11:41:00 UTC
*** Bug 478243 has been marked as a duplicate of this bug. ***
Comment 28 Stian Jordet 2007-12-11 21:08:08 UTC
Thank you, Stephane! I really disagreed with Lorenzo's decision, but he have more bugzilla points than me :P

I can confirm Peter's observation that it seems to always be related to screen refresh while accessing the db. Or something. It has nagged me for almost four years now.
Comment 29 Maxxer 2008-06-09 08:18:01 UTC
*** Bug 537230 has been marked as a duplicate of this bug. ***
Comment 30 Johan Bilien 2008-07-16 00:36:31 UTC
On Debian Sid, with f-spot from SVN, I can still reproduce. This is the best stack trace I could get:




It clearly shows that thread5 sent a request to X, but unfortunately not where it did that.
Comment 31 Johan Bilien 2008-07-16 00:44:04 UTC
Got this now, by installing xcb debug symbols and breaking in xcb_send_request in all threads but 1:

(gdb) bt
  • #0 xcb_send_request
    at xcb_out.c line 116
  • #1 _XPutXCBBuffer
    at ../../src/xcb_lock.c line 148
  • #2 _XCBUnlockDisplay
    at ../../src/xcb_lock.c line 31
  • #3 XFreeCursor
    at ../../src/FreeCurs.c line 42
  • #4 _gdk_cursor_destroy
    at /tmp/buildd/gtk+2.0-2.12.11/gdk/x11/gdkcursor-x11.c line 263
  • #5 IA__gdk_cursor_unref
    at /tmp/buildd/gtk+2.0-2.12.11/gdk/gdkcursor.c line 81
  • #6 ??
  • #7 ??
  • #8 ??

I can probably get more by rebuilding gtk-sharp with debug symbols, but maybe that's enough to figure out the problem?
Comment 32 Stephane Delcroix 2008-07-16 07:49:43 UTC
Johan, am not sure your issue is the same as the xlib async reply
Comment 33 Johan Bilien 2008-07-16 17:08:09 UTC
(In reply to comment #32)
> Johan, am not sure your issue is the same as the xlib async reply
> 

Hmm it sure looks very much like the same. Debian is now using xlib / xcb, but the assertion failing in xcb is precisely about sequence number mismatch in x messages.
Comment 34 Daniel Gryniewicz 2008-09-04 18:00:11 UTC
I'm getting this now, with 0.4.3.1.  It's kinda sudden, and may be related to the gnome 2.23.9x that I have installed. It reliably happens to me when browsing pictures in the "big image with little thumnails on top" mode.  Just hitting next for 5-10 times causes the hang.
Comment 35 Daniel Gryniewicz 2008-09-04 18:07:23 UTC
Update: It's hugely less likely to happen if I turn off the filmstrip.  I had to browse several hundred pictures to get it to happen.
Comment 36 jkeiren 2008-10-09 17:03:04 UTC
I can confirm this is still happening with f-spot 0.5.0.2. Problem is however that it is quite hard to reproduce. I've got a feeling that it is highly more likely to happen when you are browsing around without waiting for each picture to be loaded completely. That is continue browsing when the current image is still blurred.

If anybody has got any idea as to how I can try to debug this problem, or produce somehow useful debug output I'd be glad to help.
Comment 37 André Klapper 2018-07-01 09:00:38 UTC
f-spot is not under active development anymore, has not seen code changes for five years, and saw its last tarball release in the year 2010.
Its codebase has been archived: https://gitlab.gnome.org/Archive/f-spot/commits/master

Closing this report as WONTFIX as part of Bugzilla Housekeeping to reflect reality. Please feel free to reopen this ticket (or rather transfer the project to GNOME Gitlab, as GNOME Bugzilla is deprecated) if anyone takes the responsibility for active development again.