STR #1706

FLTK matrix user chat room
(using Element browser app)   FLTK gitter user chat room   GitHub FLTK Project   FLTK News RSS Feed  
  FLTK Apps      FLTK Library      Forums      Links     Login 
 Home  |  Articles & FAQs  |  Bugs & Features  |  Documentation  |  Download  |  Screenshots  ]

Return to Bugs & Features | Roadmap 1.1 ]

STR #1706

Application:FLTK Library
Duplicate Of:STR #1689
Status:1 - Closed w/Resolution
Priority:3 - Moderate, e.g. unable to compile the software
Scope:3 - Applies to all machines and operating systems
Summary:Fluid widget class crash
Created By:rbp
Assigned To:matt
Fix Version:1.1-current (SVN: v5911)
Update Notification:

Receive EMails Don't Receive EMails

Trouble Report Files:

No files

Trouble Report Comments:

Name/Time/Date Text top right image
#1 rbp
20:48 Jun 11, 2007
Fluid throws a segmentation fault when I try to create a new widget class while another widget class is already selected.

(Sorry - I opened this a few weeks ago but was then distracted by exams until now.)

I have played around with this some more and found that it only happens if the parent widget class is closed. So, to reproduce:
* Create a new widget class
* Close the widget window
* Create another widget class (with the original widget still highlighted)

For me this causes Fluid to crash on Ubuntu Linux and Solaris.

Can anyone else reproduce?

#2 rbp
20:51 Jun 11, 2007
Also, I don't actually want a sub widget class, but it was annoying that it crashed when I did this accidentally.  
#3 mike
01:40 Jun 12, 2007
Dupe of STR #1689, already fixed in 1.1.x...  
#4 matt
01:57 Jun 12, 2007
Nothing was fixed in 1.1.x because we could no duplicate the crash.

There is actually new information in this that, according to the poster, makes the crash repeatable. I have tested it on MSWindows/VC6, but it does not crash. The OP uses Linux though. I will test Linux later when I get to the machine.
#5 metrix
02:07 Jun 12, 2007
I can confirm that following the above procedure does produce a segmentation fault. I'm running Debian Etch 4.0.  
#6 metrix
08:00 Jun 12, 2007
And on Solaris as well. Same result:

bash-3.00$ ./fluid
Segmentation Fault (core dumped)
bash-3.00$ uname -a
SunOS leda 5.10 Generic_125100-04 sun4u sparc SUNW,Sun-Fire-V890

BTW, compiling on Solaris with gcc 3.4.3 results
in lots of the following warning:

warning: ignoring #pragma ident

#7 matt
01:49 Jun 18, 2007
The sequence described would attempt to create a subwindow of a window that was unmapped. Fl_X::make_id would insist on the parents xid and crash. The fix marks the subwindow as visible, but doesn't actually create an X-Window. This should be done automatically when the parent window is mapped again via the FL_SHOW command.

I leave this bug active because even though I avoid the crash, mapping still does not work as expected.
#8 matt
06:18 Jun 18, 2007
Fixed in SVN for X and Win32. Verified for Mac Quickdraw and Mac Quartz  
bottom left image   bottom right image

Return to Bugs & Features ]


Comments are owned by the poster. All other content is copyright 1998-2022 by Bill Spitzak and others. This project is hosted by The FLTK Team. Please report site problems to ''.