wxFormBuilder

Welcome to wxFormBuilder’s issue tracking system! We hope that wxFormBuilder provides you with many hours of increased productivity.

Please feel free to post bug reports and feature requests here. You can feel free to discuss an issue or feature on the forum but if you decide it needs to be looked at you need to post it here. If a feature request or bug report is not on this site there is a good chance it won’t be worked on. So, as a rule, post them here.

Thanks for your cooperation,
The wxFormBuilder Team

| Tasklist |

FS#451 - app crashes on new form with 'BadMatch' X error in kubuntu 9.10

Attached to Project: wxFormBuilder
Opened by justin (mmhg) - Friday, 11 December 2009, 07:15 GMT+2
Task Type Bug Report
Category Backend / Core
Status Unconfirmed
Assigned To No-one
Operating System Ubuntu
Severity Critical
Priority Normal
Reported Version 3.0
Due in Version Undecided
Due Date Undecided
Percent Complete 0%
Votes 0
Private No

Details

What steps will reproduce the problem?

  1. Install wxFormBuilder on Kubuntu 9.10 from repository.
  2. Run wxFormBuilder.
  3. Navigate to FORMS tab and select any of the three form types.

What is the expected output? What do you see instead?

wxFormBuilder immediately crashes regardless of weather the project is saved prior to creating a form or no.  Here are the last few lines of strace including the output error message:

poll([{fd=10, events=POLLIN|POLLOUT}], 1, -1) = 1 ([{fd=10, revents=POLLOUT}]) writev(10, [{”\22\0\7\0\376\5\300\2\366\0\0\0!\0\0\0 \4\7\0\1\0\0\0\1\0\300\2\22 \0\7\0”..., 3256}, {NULL, 0}, {”“, 0}], 3) = 3256 poll([{fd=10, events=POLLIN}], 1, -1) = 1 ([{fd=10, revents=POLLIN}]) read(10, “\34\322\347C\376\5\300\2\22\1\0\0\340<d\27\0\212\270\17\0\0\0\0\20\300 \304\2\0\0\0\0”..., 4096) = 544 open(”/usr/share/X11/XErrorDB”, O_RDONLY) = 11 fstat(11, {st_mode=S_IFREG|0644, st_size=41481, ...}) = 0 brk(0x1dd1000) = 0x1dd1000 read(11, “! $Xorg: XErrorDB,v 1.3 2000/08/”..., 41481) = 41481 close(11) = 0 brk(0x1df2000) = 0x1df2000 write(2, “The program ‘wxformbuilder’ rece”..., 575The program ‘wxformbuilder’ r eceived an X Window System error. This probably reflects a bug in the program. The error was ‘BadMatch (invalid parameter attributes)’.

(Details: serial 17417 error_code 8 request_code 151 minor_code 5)
(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.)

) = 575 exit_group(1) = ?

No errors were found in the syslog or the Xorg.0.log. Attached is the xorg.conf for this system. It’s a triple head setup using dual NVIDIA cards and so is using xinerama rather than Xrandr which remains incapable of true triplehead support. All drivers were installed via standard kubuntu repositories. All software on the system was installed from the standard and backports repos with the exception of the chromium browser from http://ppa.launchpad.net/chromium-daily/ppa/ubuntu. At this point wxFormBuilder is unusable as it crashes immediately upon creating a new form.

Please use labels and text to provide additional information.

This task depends upon

Comment by Michal Bližňák (marfi) - Thursday, 17 December 2009, 15:09 GMT+2

Please, could you try to build the latest wxFB version from SVN and report if the bug is still present there?

Comment by Josh Faust (jfaust) - Friday, 08 January 2010, 23:28 GMT+2

I'm getting the same error on svn trunk with Ubuntu 9.10.

Comment by Josh Faust (jfaust) - Friday, 08 January 2010, 23:40 GMT+2

Forgot the revision: r1661

Comment by Josh Faust (jfaust) - Saturday, 09 January 2010, 00:54 GMT+2

Here's a stacktrace with _Xdebug=1 (which should mean the error was processed immediately rather than asynchronously):

#0  0x00007ffff10d0320 in _XError () from /usr/lib/libX11.so.6
#1  0x00007ffff10d689c in ?? () from /usr/lib/libX11.so.6
#2  0x00007ffff10d6f40 in _XReply () from /usr/lib/libX11.so.6
#3  0x00007ffff10cacd3 in XSync () from /usr/lib/libX11.so.6
#4  0x00007ffff424c381 in gdk_flush () from /usr/lib/libgdk-x11-2.0.so.0
#5  0x00000000004c2587 in ObjectInspector::Create (this=0xd50e00, force=false) at rad/inspector/objinspect.cpp:744
#6  0x00000000004c78cd in ObjectInspector::OnObjectSelected (this=0xd50e00) at rad/inspector/objinspect.cpp:1315
#7  0x00007ffff615b170 in wxEvtHandler::ProcessEventIfMatches(wxEventTableEntryBase const&, wxEvtHandler*, wxEvent&) () from /usr/lib/libwx_baseu-2.8.so.0
#8  0x00007ffff615c144 in wxEventHashTable::HandleEvent(wxEvent&, wxEvtHandler*) () from /usr/lib/libwx_baseu-2.8.so.0
#9  0x00007ffff615c227 in wxEvtHandler::ProcessEvent(wxEvent&) () from /usr/lib/libwx_baseu-2.8.so.0
#10 0x00000000004a1f1d in ApplicationData::NotifyEvent (this=0x8b1be0, event=...) at rad/appdata.cpp:2561
#11 0x00000000004a2270 in ApplicationData::NotifyObjectSelected (this=0x8b1be0, obj=...) at rad/appdata.cpp:2596
#12 0x0000000000492755 in ApplicationData::SelectObject (this=0x8b1be0, obj=..., force=true, notify=true) at rad/appdata.cpp:749
#13 0x0000000000492fff in ApplicationData::CreateObject (this=0x8b1be0, name=...) at rad/appdata.cpp:808
#14 0x000000000048a2a0 in wxFbPalette::OnButtonClick (this=0xbfbdd0, event=...) at rad/palette.cpp:229
#15 0x00007ffff615b170 in wxEvtHandler::ProcessEventIfMatches(wxEventTableEntryBase const&, wxEvtHandler*, wxEvent&) () from /usr/lib/libwx_baseu-2.8.so.0
#16 0x00007ffff615c144 in wxEventHashTable::HandleEvent(wxEvent&, wxEvtHandler*) () from /usr/lib/libwx_baseu-2.8.so.0
#17 0x00007ffff615c227 in wxEvtHandler::ProcessEvent(wxEvent&) () from /usr/lib/libwx_baseu-2.8.so.0
#18 0x00007ffff6aebcc9 in wxWindowBase::TryParent(wxEvent&) () from /usr/lib/libwx_gtk2u_core-2.8.so.0
#19 0x00007ffff6aebcc9 in wxWindowBase::TryParent(wxEvent&) () from /usr/lib/libwx_gtk2u_core-2.8.so.0
#20 0x00007ffff6aebcc9 in wxWindowBase::TryParent(wxEvent&) () from /usr/lib/libwx_gtk2u_core-2.8.so.0
#21 0x00007ffff6aebcc9 in wxWindowBase::TryParent(wxEvent&) () from /usr/lib/libwx_gtk2u_core-2.8.so.0
#22 0x00007ffff6ae2885 in wxToolBarBase::OnLeftClick(int, bool) () from /usr/lib/libwx_gtk2u_core-2.8.so.0

The line in ObjectInspector::Create is:

m_pg->Update();
Comment by Michal Bližňák (marfi) - Sunday, 10 January 2010, 10:44 GMT+2

Unfortunately, I'm not able to reproduce the crash. I just built latest SVN trunk on Ubuntu 9.10 with wxWidgets 2.8.10 by using both command line and CodeLite IDE and both ways produced executable which works flawlessly... When the crash appears? After clicking of some specific form (panel, form, dialog, menubar, toolbar) or immediately after the application's start? Which version of wxWidgets do you use?

Comment by Josh Faust (jfaust) - Monday, 11 January 2010, 20:34 GMT+2

The crash happens right after clicking one of the new frame/dialog/panel buttons, or when loading a project.

Appears (for me anyway) to be directly related to using nvidia twinview with randr (which doesn't work very well anyway). It works fine both for the single-monitor case and after removing the rotation on one of the monitors. I've now re-setup my monitors without the rotation, since it caused some other problems as well.

Comment by justin (mmhg) - Tuesday, 12 January 2010, 06:21 GMT+2

Or in my case - nvidia xinerama without randr. I agree that it appears to be related to nvidia multimonitor setups.

Loading...