PR# 13604 Multiple problems with Errors and Warnings tool
Problem Report Summary
Submitter: prestoat2000
Category: EiffelStudio
Priority: High
Date: 2007/11/14
Class: Bug
Severity: Serious
Number: 13604
Release: 6.1.71123
Confidential: No
Status: Analyzed
Responsible: jfiat_es
Environment: Mozilla/5.0 (X11; U; SunOS sun4u; en-US; rv:1.8.0.7) Gecko/20060915 Firefox/1.5.0.7
Solaris 9 on SPARC
Synopsis: Multiple problems with Errors and Warnings tool
Description
On Solaris SPARC 32-bit, there are multiple problems with the Error List tool. 1. Tooltip for button that navigates to previous warning says Navigate to the next warning or the last warning found ... "next" should be "previous". 2. Compile with attached class and config file. Estudio correctly reports 1 error (link failed) and 3 warnings. Select Errors and Warnings tool. Click on Navigate to Previous Error button. Navigates to the last warning instead of staying on the single error. Click on Navigate to Next Warning button 3 times. Behaves correctly - stays within warnings. Click on Navigate to Previous Warning 3 times. Switches to C Output window and shows the C compilation error for the 3rd "warning" instead of staying within warnings. 3. Compile from scratch in estudio with root class whose creation procedure is `make do abc end' (where `abc' is an unknown identifier). Click on Navigate to Next Error. Estudio uses more than 2 GB of memory and machine starts swapping like crazy. This is possibly related to bug 13300 (Showing Flat form of feature with VEEN error increases memory used to more than 2 GB). 4. Sometimes when I switch to the Error List tool it is blank (contents of window is all gray). I haven't been able to reproduce this yet but have seen it a couple of times. Perhaps something is not refreshed correctly in some circumstances.
To Reproduce
Problem Report Interactions
Item 4 (blank Error List) is not fixed in 6.1.71477 on Solaris SPARC under CDE, using GTK+2.6.10, at least not on my machine. Reopening report.
For the record, item 4 also occurs on SPARC Solaris under CDE. I just reproduced it with rev 71364. Hopefully, your fix will also fix the problem under CDE.
Item 4 only happens on Solaris JDS (Gnome). On Solaris CDE or Ubuntu Gnome, it not happens. The trick is we have to call `{EV_GTK_EXTERNALS}.gtk_container_check_resize' after shown the EV_GRID in the Errors and Warnings Tool. Now, in `{ES_ERROR_LIST_TOOL_PANEL}.show', we do a fake width query. The width query will call `{EV_GTK_EXTERNALS}.gtk_container_check_resize' indirectly on Unix platforms. This bug is fixed in revision#71456. Thanks for your report.
Larry, I took a look and it's definitely a Solaris issue. From visual inspection is seems to be a resizing issue with the content of the window, as the grid header is clipped. It's going to take far too long for me to set up a Solaris development environment to track this issue. Can you place a breakpoint in ES_ERROR_LIST_TOOL_PANEL.build_tool_interface to check the initializing size of the docking content, tool window and the grid (as a_widget argument). There's also ES_DOCKABLE_TOOL_PANEL.build_docking_content to check out. I'll try have my Mac around on Sunday so we can talk about it if needs be.
Item 3 is now fixed by fix for bug 13300. All that remains is item 4, which is fairly critical.
I believe I can reproduce the blank Error List tool problem. To reproduce: Delete ~/.es directory. Start estudio, click Cancel, then close estudio. Creates ~/.es directory. Copy the attached layout.wb file into ~/.es/docking_61 directory. Start estudio and add project test1.ecf (attached). Estudio starts compiling, then detects VD71 configuration error but the Error List tool window is blank (gray, for me) so I can't see what the problem is.
David the issues reported in items 1 and 2 have been fixed in rev#71156. Issue 3, you are correct in that it is caused by another formatting bug, as we use the same engine to render the errors and tool tips. Item 4 is more complex. It seems to be related to the docking mechanism and is only apparent because the Errors and Warnings tool is based on a new optimized tool framework in 6.1. If you can find a reproducible, this would help greatly.