Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#8 test.pl exits with non-zero return code

POGL 0.xx
open
None
1
2015-01-03
2013-10-01
Anton Leontiev
No

Environment

  • Arch Linux 3.11.2-2-ARCH SMP PREEMPT x86_64
  • Perl 5.18.1
  • OpenGL package 0.6701
  • freeglut 2.8.1
  • mesa 9.2.0
  • mesa-glu 9.0.0

Description

Package compiles successfully. Test script test.pl exits with non-zero return code when terminated with 'q' or 'Esc' keys. The scripts exits normally when clicking with mouse at 'Exit' icon. Patch with fix is attached.

$ PERL_DL_NONLAZY=1 /usr/bin/perl "-Iblib/lib" "-Iblib/arch" test.pl; echo $?
....
Hold down arrow keys to rotate, 'r' to reverse, 's' to stop.
Page up/down will move cube away from/towards camera.
Use first letter of shown display mode settings to alter.
Press 'g' to toggle fullscreen mode (not supported on all platforms).
Press 'c' to capture/save a RGBA targa file.
'q' or [Esc] to quit; OpenGL window must have focus for input.

pure virtual method called
terminate called without an active exception
Aborted (core dumped)
134
1 Attachments

Discussion

  • Chris Marshall
    Chris Marshall
    2013-10-01

    • assigned_to: Chris Marshall
    • Priority: 4 --> 1
     
  • Chris Marshall
    Chris Marshall
    2013-10-01

    The problem appears to be FreeGLUT version-specific but I think I've seen it on other platforms.

     
  • Earth Engine
    Earth Engine
    2014-04-17

    This has been confirmed in Ubuntu 13.10 as well.

    Installing through cpanm, if I do not do anything just wait for the test window disappear, it crashes as above. The "test.pl" line 771 have the same "exit(0);" as shown in the attached patch file and it was called when timed out. The solution is to replace it with a "return" statement.

     
  • Earth Engine
    Earth Engine
    2014-04-17

    Here is the patch

     
    Attachments
  • Chris Marshall
    Chris Marshall
    2014-04-17

    Thanks for the confirmation.