On 04.07.2011 23:21, Rainer Rinke wrote: > my FLTK (Linux)application crashes with the message: > > ./../src/xcb_io.c:249: process_responses: Assertion �(((long) > (dpy->last_request_read) � (long)(dpy->request))<= 0)� failed. > > That happens when about 5000 lines are written into a (derived)Fl_Browser > widget that were received via a socket. > Generally writing more than 5000 lines into that browser is no problem. > The same actions done with only about hundred lines works fine. > > The environment is Ubuntu 10.04 LTS, running in a Virtual box, FLTK version > 1.1.10. > However, the Windows (XP) version works fine with 10000 lines!! > > I assume that the message comes up from the X Window system, but I have no > idea, how I can fix it or avoid it.
According to error message, this is an assertion in file xcb_io.c, and this looks like a kind of (message) buffer overrun in Xlib/XCB which is probably the X11 client library in use on your system. FLTK doesn't have a file xcb_io.c in its source tree. > Any ideas or recommendations to fix the problem? Not really, other than trying to reduce the input rate of messages or to reduce the screen update rate. Do you call redraw() after each message you receive? Maybe you can reduce this. Other than that, it could be a resource leak (sockets or memory?). How do you handle your socket(s)? Are they permanently open (TCP), or are you probably using UDP with multiple sockets? Anyway, I'd check if the program allocates too many sockets or fd's, maybe using lsof or something like that. > Could it be useful to upgrade to FLTZK 1.3.0 ? Not for this problem, AFAICT. The Xlib code has not been changed between 1.1 and 1.3, so I'd assume that this won't change anything. In most cases you can compile your FLTK 1.1 code w/o changes with FLTK 1.3 though, so it could be a good idea to upgrade anyway. But you should be aware that all text input by FLTK widgets will be UTF-8-encoded in FLTK 1.3 (particularly German Umlauts äöü, ß, and all other non-ASCII characters like Euro €). Albrecht _______________________________________________ fltk mailing list [email protected] http://lists.easysw.com/mailman/listinfo/fltk

