Uploaded image for project: 'GMAT'
  1. GMAT
  2. GMT-4316

Cannot set pixel format id 4

    Details

      Description

      Users are randomly getting this error message when using orbit views. We have had 2 reports of this in the last month. It appears there is no workaround at this point.

      I fear it is an issue in WxWidgets/OpenGL.

        Gliffy Diagrams

          Attachments

            Activity

            Hide
            rqureshi Rizwan Qureshi added a comment - - edited

            The exact error that users get is as follows:

            Running mission…
            *****ERROR ***** Failed to set pixel format id4
            *****ERROR ***** Failed to set pixel format id4
            GMAT execution stopped by user.
            ***Mission run interrupted
            ===>Total Run Time: 0.874000 seconds
            
            Show
            rqureshi Rizwan Qureshi added a comment - - edited The exact error that users get is as follows: Running mission… *****ERROR ***** Failed to set pixel format id4 *****ERROR ***** Failed to set pixel format id4 GMAT execution stopped by user. ***Mission run interrupted ===>Total Run Time: 0.874000 seconds
            Hide
            shughes Steven Hughes added a comment -

            A kludgy fix is to not trap this one message and move on.

            Show
            shughes Steven Hughes added a comment - A kludgy fix is to not trap this one message and move on.
            Hide
            shughes Steven Hughes added a comment -

            comment from user:
            Steve/Joel – I’m messing around with GMAT (teleworking today) and when I run my script I get an error (**** ERROR **** Failed to set pixel format id 4) and my trajectory and plane (e.g. equatorial plane) have somehow turned black and can’t be seen in the OrbitView. I haven’t seen this problem before now. The only difference between yesterday (when all looked well) and today is that yesterday I was displaying through my laptop dock to my big monitor on my desk and today I’m just viewing it on my laptop screen. Is that the problem? If so, how do I fix this? Thanks!

            Show
            shughes Steven Hughes added a comment - comment from user: Steve/Joel – I’m messing around with GMAT (teleworking today) and when I run my script I get an error (**** ERROR **** Failed to set pixel format id 4) and my trajectory and plane (e.g. equatorial plane) have somehow turned black and can’t be seen in the OrbitView. I haven’t seen this problem before now. The only difference between yesterday (when all looked well) and today is that yesterday I was displaying through my laptop dock to my big monitor on my desk and today I’m just viewing it on my laptop screen. Is that the problem? If so, how do I fix this? Thanks!
            Hide
            djcinsb Darrel Conway added a comment - - edited

            Here are a few questions to help diagnose this issue:

            • What graphics card is in the user's machine?
            • What screen resolution does the user have?
            • How much video RAM?
            • Is the video RAM shared or dedicated?

            The first one is likely the biggest clue here, followed by the RAM considerations. GMAT is setting the screen to use 32-bit color depth; if the user's screen doesn't support that depth, then that may be the source of the error. If we can get some help diagnosing the issue and testing some options, we should be able to get this resolved by adding code to fall back to a lower color depth palette when the 32-bit palette fails.

            I have a machine that shows a slightly different error (id 8 rather than id 4), but for that one the window does not go black. Sigh.

            For now, I've turned off the error message and added a code macro to reenable it when we have the chance to work on it.

            Show
            djcinsb Darrel Conway added a comment - - edited Here are a few questions to help diagnose this issue: What graphics card is in the user's machine? What screen resolution does the user have? How much video RAM? Is the video RAM shared or dedicated? The first one is likely the biggest clue here, followed by the RAM considerations. GMAT is setting the screen to use 32-bit color depth; if the user's screen doesn't support that depth, then that may be the source of the error. If we can get some help diagnosing the issue and testing some options, we should be able to get this resolved by adding code to fall back to a lower color depth palette when the 32-bit palette fails. I have a machine that shows a slightly different error (id 8 rather than id 4), but for that one the window does not go black. Sigh. For now, I've turned off the error message and added a code macro to reenable it when we have the chance to work on it.
            Hide
            djcinsb Darrel Conway added a comment -

            I set the CCB tag because I'm not sure if I should close this, P2 it, or something else now that the message is turned off.

            Show
            djcinsb Darrel Conway added a comment - I set the CCB tag because I'm not sure if I should close this, P2 it, or something else now that the message is turned off.
            Hide
            shughes Steven Hughes added a comment -

            I asked Mike to try the latest version and let us know if he sees a difference. If he does, I asked him to provide that information. I also asked if he could send the info directly to Darrel because I am slowing down resolution by serving as an un-necessary middle man.

            Show
            shughes Steven Hughes added a comment - I asked Mike to try the latest version and let us know if he sees a difference. If he does, I asked him to provide that information. I also asked if he could send the info directly to Darrel because I am slowing down resolution by serving as an un-necessary middle man.
            Hide
            djcinsb Darrel Conway added a comment -

            Mike updated his drivers, and all seems to be working now. Here is what he reports:

            Steve & Darrel – everything has solved … though we’re not quite sure what fixed it. Marlon updated my NVIDIA driver and he also adjusted the power profiles for when my laptop is running on the battery. Since both were done at the same time we don’t know which one actually fixed the problem. Nevertheless, I can now see my graphics when I’m not connected to my laptop dock. Thanks!

            Michael

            Show
            djcinsb Darrel Conway added a comment - Mike updated his drivers, and all seems to be working now. Here is what he reports: Steve & Darrel – everything has solved … though we’re not quite sure what fixed it. Marlon updated my NVIDIA driver and he also adjusted the power profiles for when my laptop is running on the battery. Since both were done at the same time we don’t know which one actually fixed the problem. Nevertheless, I can now see my graphics when I’m not connected to my laptop dock. Thanks! Michael
            Hide
            djcinsb Darrel Conway added a comment -

            Closing issue since it all looks fixed (as far as I can tell from 2500 miles away)

            Show
            djcinsb Darrel Conway added a comment - Closing issue since it all looks fixed (as far as I can tell from 2500 miles away)

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: