Bug 831336 - freeglut-2.8.0 regression with Calculix-cgx (menu not shown)
Summary: freeglut-2.8.0 regression with Calculix-cgx (menu not shown)
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: freeglut
Version: 17
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: ---
Assignee: Tomas Smetana
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-06-12 19:41 UTC by Manfred Spraul
Modified: 2012-09-17 22:05 UTC (History)
1 user (show)

Fixed In Version:
Clone Of:
: 1017551 (view as bug list)
Environment:
Last Closed: 2012-09-07 11:35:35 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
Test app that shows the problem (1.24 KB, text/x-csrc)
2012-06-17 11:51 UTC, Manfred Spraul
no flags Details
backported patch from upstream (5.92 KB, patch)
2012-08-15 07:06 UTC, Manfred Spraul
no flags Details | Diff
Patch against ~/rpmbuild (7.72 KB, patch)
2012-08-15 07:09 UTC, Manfred Spraul
no flags Details | Diff

Description Manfred Spraul 2012-06-12 19:41:20 UTC
Description of problem:
calculix cgx does not work properly with freeglut-2.8.0
with freeglut-2.6.0, everything works.

Version-Release number of selected component (if applicable):
freeglut-2.8.0

How reproducible:
100% reproducible: the menu does not show up

Steps to Reproduce:
1. Download & install cgx-2.4.1, cgx-examples-2.4.1, libSNL-0.2-2 from http://calculix-rpm.sourceforge.net/

2. run

    $ cgx /usr/share/cgx-examples-2.4/result.frd

3. Perform a left mouse click on the left side of the main window (left side from the 3D image of the part)
  
Actual results:
No menu is shown

Expected results:
A menu is shown

Additional info:
After manually downgrading to freeglut-2.6.0-6.fc15.x86_64, everything works.

The menu appears to be created with the following commands:
<<< from cgx.c, function createNewMainMenu()
  glutAddMenuEntry( " -QUIT-     ", 5);
  glutAttachMenu(GLUT_LEFT_BUTTON);
  glutSetWindow( activWindow);
>>>

Comment 1 Manfred Spraul 2012-06-17 11:51:17 UTC
Created attachment 592422 [details]
Test app that shows the problem

I've created a shorter test to show the problem:
Just compile it and compare freeglut-2.6 and freeglut-2.8:

With freeglut-2.6, a left mouse click shows a menu.
With freeglut-2.8, no menu is shown.

Test done with FC17, manually downgraded to freeglut-2.6 from fc15.

Steps to build:
   $ gcc -lglut -lGL glutnomenu.c

Comment 2 Tomas Smetana 2012-06-18 07:49:26 UTC
Hello Manfred,
  thank you for the report.  I'm not sure I will have time to look into it this week but will definitely try to.

Comment 3 Manfred Spraul 2012-06-21 19:33:36 UTC
Hi Tomas,

Could you try the "one" sample app from freeglut?
BUILD/freeglut-2.8.0/progs/demos/One/One.c

On my computer, it doesn't work with freeglut-2.8.0.
(first, press ESC to leave game mode. Then there should be menus)

I've contacted the freeglut-developer mailing list:

http://sourceforge.net/mailarchive/forum.php?thread_name=CABcAi1jNkz31ztQn%2Bn4QwbHNhH5gmGSjtB4rntXqSzMOPNu1TA%40mail.gmail.com&forum_name=freeglut-developer

Comment 4 Tomas Smetana 2012-06-25 20:07:10 UTC
Thank you! I'm subscribed to the list...

I can see there is some progress reported in the thread.

Comment 5 Manfred Spraul 2012-08-15 07:06:47 UTC
Created attachment 604516 [details]
backported patch from upstream

Derived from Patch writen by John Tsiombika:

http://freeglut.svn.sourceforge.net/viewvc/freeglut?view=revision&revision=1375
>
> Fixed broken X11 menus. The MPX patch would naively just
> call the standard (non-multi) callbacks directly,
> overriding all the menu-handling logic in the standard
> X event processing loop.
>

Comment 6 Manfred Spraul 2012-08-15 07:09:18 UTC
Created attachment 604519 [details]
Patch against ~/rpmbuild

Proposed fix (change spec file, add new patch file)

Comment 7 Tomas Smetana 2012-08-15 09:12:18 UTC
Thanks for the patches. I have finally gotten to test them myself and they seem to be working OK.

Comment 8 Fedora Update System 2012-08-15 10:32:19 UTC
freeglut-2.8.0-6.fc18 has been submitted as an update for Fedora 18.
https://admin.fedoraproject.org/updates/freeglut-2.8.0-6.fc18

Comment 9 Fedora Update System 2012-08-15 11:07:49 UTC
freeglut-2.8.0-6.fc17 has been submitted as an update for Fedora 17.
https://admin.fedoraproject.org/updates/freeglut-2.8.0-6.fc17

Comment 10 Manfred Spraul 2012-08-15 17:46:24 UTC
freeglut-2.8.0-6.fc17 fixes the bug.

Comment 11 Fedora Update System 2012-08-15 22:51:41 UTC
Package freeglut-2.8.0-6.fc17:
* should fix your issue,
* was pushed to the Fedora 17 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing freeglut-2.8.0-6.fc17'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2012-11924/freeglut-2.8.0-6.fc17
then log in and leave karma (feedback).

Comment 12 Tomas Smetana 2012-08-23 08:14:03 UTC
Unfortunatelly there is a regression reported in Bodhi:

https://admin.fedoraproject.org/updates/FEDORA-2012-11924/freeglut-2.8.0-6.fc17

There were more changes made to freeglut in F-17 between the releases 3 and 6, but the other changes are unlikely to be at fault here.  I can't push the update any further.

Comment 13 Ilja Sekler 2012-08-27 12:59:12 UTC
(In reply to comment #12)

> Unfortunatelly there is a regression reported in Bodhi:
> 
> https://admin.fedoraproject.org/updates/FEDORA-2012-11924/freeglut-2.8.0-6.fc17
> 

It was me. Just wanted to mention that the regression with Atlas doesn't exist with the current svn trunk of freeglut. Tested with r1388.

Comment 14 Tomas Smetana 2012-08-27 13:11:38 UTC
(In reply to comment #13)

> It was me. Just wanted to mention that the regression with Atlas doesn't
> exist with the current svn trunk of freeglut. Tested with r1388.

Thanks for the update.  It might have been this one:

http://freeglut.svn.sourceforge.net/viewvc/freeglut?view=revision&sortby=log&sortdir=down&revision=1386

I will create a combined patch and build another testing release.

Comment 15 Fedora Update System 2012-08-28 14:38:42 UTC
freeglut-2.8.0-7.fc18 has been submitted as an update for Fedora 18.
https://admin.fedoraproject.org/updates/freeglut-2.8.0-7.fc18

Comment 16 Fedora Update System 2012-08-28 14:40:14 UTC
freeglut-2.8.0-7.fc17 has been submitted as an update for Fedora 17.
https://admin.fedoraproject.org/updates/freeglut-2.8.0-7.fc17

Comment 17 Fedora Update System 2012-08-28 23:34:05 UTC
Package freeglut-2.8.0-7.fc17:
* should fix your issue,
* was pushed to the Fedora 17 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing freeglut-2.8.0-7.fc17'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2012-12891/freeglut-2.8.0-7.fc17
then log in and leave karma (feedback).

Comment 18 Fedora Update System 2012-09-07 11:35:35 UTC
freeglut-2.8.0-7.fc17 has been pushed to the Fedora 17 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 19 Fedora Update System 2012-09-17 22:05:56 UTC
freeglut-2.8.0-7.fc18 has been pushed to the Fedora 18 stable repository.  If problems still persist, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.