Hide Forgot
Description of problem: OpenGL image viewer, the system gives a Core Dump error and close application. Version-Release number of selected component (if applicable): Red Hat Enterprise Linux Workstation release 6.0 (Santiago) architecture: x86_64 How reproducible: Steps to Reproduce: 1.Go to Plug-in 2.then tools 3.OpenGL image viewer Actual results: Expected results: Additional info:
Created attachment 550771 [details] First alternative patch using isInitialized member variable
Created attachment 550772 [details] Second alternative patch using existing firstImage member variable
I have created two possible solutions to this issue. That problem is caused by the fact that when the menu item is clicked with no image open a ViewerWidget is instantiated but ViewerWidget::initializeGL() never gets called and the tex member variable (GLuint[3]) is not initialized properly. When the destructor is invoked it calls glDeleteTextures(1,tex) and crashes when accessing the invalid tex. My first patch uses a dedicated variable (isInitialized) to represent the initialized state and is more intuitive IMHO. The second approach is more economical and uses an existing member variable (firstImage) to accomplish the same. This required moving some of the code in the constructor that should have no side effects but this approach is less intuitive and maybe prone to the problems of using one mechanism to accomplish multiple objectives?
This request was not resolved in time for the current release. Red Hat invites you to ask your support representative to propose this request, if still desired, for consideration in the next release of Red Hat Enterprise Linux.
This request was erroneously removed from consideration in Red Hat Enterprise Linux 6.4, which is currently under development. This request will be evaluated for inclusion in Red Hat Enterprise Linux 6.4.