2 Replies Latest reply on Nov 19, 2012 10:13 AM by urishomroni

    Communication between the debugged application and CodeXL has failed.

    zero_effect

      I had been trying to debug one of my projects which is based on my own custom graphics engine (it does not rely on any library to load the functions or initialize the window) with gDEBugger/CodeXL, but I ran into this error:

       

      Debug String: Error: Communication between the debugged application and CodeXL has failed.

      Debug String: The Spies Utilities module initialization has failed. The debugged application will now exit

       

      On the other hand, the Teapot sample which is bundled with the application is running perfectly fine. I am not exactly sure what techniques CodeXL is using for debugging application, but I think that I have to mention that my application is loading all graphics libraries dynamically; i.e., OpenGL is not linked to the executable. However, the application that I am debugging is sort of working with gDEBugger 5.8.

       

      Any help and suggestions would be highly appreciated.

        • Re: Communication between the debugged application and CodeXL has failed.
          zero_effect

          Here are the contents of the log file:

           

          ////////////////////////////////////////////////////////////

          // This File contains debug printouts

          // Advanced Micro Devices, Inc.

          // http://developer.amd.com/

          ////////////////////////////////////////////////////////////

           

           

          ### System information data:

          ### End of system information

           

          ###  [pmclone]   []   []   [Win7-32]   [0,94,2123,0]   [Thursday, October 25, 2012 at 21:40:44]   [99249493215]

          ##   [21:40:44]   [99249493436]   [INFO]   [6120]   [osDebugLog::setLoggedSeverity]   [src\common\osDebugLog.cpp]   [889]   [Debug log severity: INFO]

          ##   [21:40:44]   [99249501663]   [INFO]   [6120]   [suInitializeSpyToAPIConnection]   [src\suSpiesUtilitiesDLLInitializationFunctions.cpp]   [389]   [CodeXL's servers are initialized in API mode]

          ##   [21:40:44]   [99249503442]   [INFO]   [6120]   [gsOpenGLSpyTerminate]   [src\gsOpenGLSpyInitFuncs.cpp]   [421]   [CodeXL OpenGL Server is terminating]

          ##   [21:40:44]   [99249503649]   [ERROR]   [6120]   [gsOpenGLSpyTerminate]   [src\gsOpenGLSpyInitFuncs.cpp]   [439]   [Failed to terminate OpenGL wrappers]

          ##   [21:40:44]   [99249507424]   [INFO]   [6120]   [osOutputDebugString]   [src\win32\osDebuggingFunctions.cpp]   [45]   [Debug string: Debugged process is terminating. New API thread id is: 6120]

          ##   [21:40:44]   [99249507572]   [INFO]   [6120]   [osDebugLog::terminate]   [src\common\osDebugLog.cpp]   [367]   [Debug log is terminated]

           

          ### System information data:

          ### End of system information

           

          ###  [pmclone]   []   []   [Win7-32]   [0,94,2123,0]   [Thursday, October 25, 2012 at 21:40:44]   [99249591515]

          ##   [21:40:44]   [99249591707]   [INFO]   [6120]   [osDebugLog::setLoggedSeverity]   [src\common\osDebugLog.cpp]   [889]   [Debug log severity: INFO]

          ##   [21:40:44]   [99249596608]   [ERROR]   [6120]   [osPipeSocketClient::open]   [src\win32\osPipeSocketClient.cpp]   [68]   [Assertion failure (_outgoingPipe != ((HANDLE)(LONG_PTR)-1))]

          ##   [21:40:44]   [99249596711]   [ERROR]   [6120]   [osPipeSocketClient::open]   [src\win32\osPipeSocketClient.cpp]   [83]   [Assertion failure (_incomingPipe != ((HANDLE)(LONG_PTR)-1))]

          ##   [21:40:44]   [99249596865]   [ERROR]   [6120]   [suSpyToAPIConnector::initialize]   [src\suSpyToAPIConnector.cpp]   [135]   [Assertion failure (rcSocketOpen)]

          ##   [21:40:44]   [99249596923]   [ERROR]   [6120]   [suInitializeAPIOrStandaloneMode]   [src\suSpiesUtilitiesDLLInitializationFunctions.cpp]   [272]   [Assertion failure (rcInitAPI)]

          ##   [21:40:44]   [99249597143]   [INFO]   [6120]   [suInitializeAPIOrStandaloneMode]   [src\suSpiesUtilitiesDLLInitializationFunctions.cpp]   [298]   [CodeXL Servers are initialized in stand-alone mode]

          ##   [21:40:44]   [99249597348]   [INFO]   [6120]   [osOutputDebugString]   [src\win32\osDebuggingFunctions.cpp]   [45]   [Debug string: Error: Communication between the debugged application and CodeXL has failed. ]

          ##   [21:40:47]   [99259488985]   [ERROR]   [6120]   [suOnSpiesUtilitiesInitializationFailure]   [src\suSpiesUtilitiesDLLInitializationFunctions.cpp]   [719]   [The Spies Utilities module initialization has failed. The debugged application will now exit]

          ##   [21:40:47]   [99259489423]   [INFO]   [6120]   [osOutputDebugString]   [src\win32\osDebuggingFunctions.cpp]   [45]   [Debug string: The Spies Utilities module initialization has failed. The debugged application will now exit]

          ##   [21:40:48]   [99262283324]   [INFO]   [6120]   [osDebugLog::terminate]   [src\common\osDebugLog.cpp]   [367]   [Debug log is terminated]

           

          ### System information data:

          ### End of system information

           

          ###  [amdtteapot]   []   []   [Win7-32]   [0,94,2123,0]   [Thursday, October 25, 2012 at 21:41:40]   [99404042880]

          ##   [21:41:40]   [99404043104]   [INFO]   [5932]   [osDebugLog::setLoggedSeverity]   [src\common\osDebugLog.cpp]   [889]   [Debug log severity: INFO]

          ##   [21:41:40]   [99404051372]   [INFO]   [5932]   [suInitializeSpyToAPIConnection]   [src\suSpiesUtilitiesDLLInitializationFunctions.cpp]   [389]   [CodeXL's servers are initialized in API mode]

          ##   [21:41:40]   [99404106305]   [INFO]   [5932]   [gsOpenGLSpyInit]   [src\gsOpenGLSpyInitFuncs.cpp]   [324]   [The OpenGL Server is initializing]

          ##   [21:41:40]   [99404194917]   [INFO]   [5932]   [osOutputDebugString]   [src\win32\osDebuggingFunctions.cpp]   [45]   [Debug string: CodeXL OpenGL Server was initialized]

          ##   [21:41:40]   [99404195055]   [INFO]   [5932]   [gsOpenGLSpyInit]   [src\gsOpenGLSpyInitFuncs.cpp]   [402]   [The OpenGL Server initialization ended]

          ##   [21:41:41]   [99404571962]   [INFO]   [5932]   [gsOpenGLMonitor::onContextCreation]   [src\gsOpenGLMonitor.cpp]   [391]   [Render Context 1 was created]

          ##   [21:41:41]   [99404581512]   [INFO]   [5932]   [gsRenderContextMonitor::logCreatedContextParameters]   [src\gsRenderContextMonitor.cpp]   [3428]   [Render Context 1 was made current for the first time: Vendor: ATI Technologies Inc., Renderer: ATI Radeon HD 5570, OpenGL version: 4.2, Shading language version: 4.20]

          ##   [21:41:41]   [99404593293]   [INFO]   [5932]   [gsStateVariableReader::getInteger64StateVariableValue]   [src\gsStateVariableReader.cpp]   [1671]   [Error: Unsupported get function, used in state variable: GL_MAX_SERVER_WAIT_TIMEOUT (glGetInteger64v)]

          ##   [21:41:41]   [99404594428]   [ERROR]   [5932]   [gsGLDebugOutputManager::registerDebugOutputCallback]   [src\gsGLDebugOutputManager.cpp]   [577]   [Call to glDebugMessageCallback failed. Error msg: GL_INVALID_OPERATION]

          ##   [21:41:41]   [99405078891]   [INFO]   [5932]   [csInitializeOpenCLServer]   [src\csOpenCLServerInitialization.cpp]   [55]   [The OpenCL Server is initializing]

          ##   [21:41:41]   [99405080948]   [ERROR]   [5932]   [osGetProcedureAddress]   [src\win32\osModule.cpp]   [175]   [Cannot retrieve function pointer: clSetPrintfCallback (Error code 0x7f)]

          ##   [21:41:41]   [99405630652]   [ERROR]   [5932]   [osGetProcedureAddress]   [src\win32\osModule.cpp]   [175]   [Cannot retrieve function pointer: clGetGLContextInfoKHR (Error code 0x7f)]

          ##   [21:41:41]   [99405630767]   [ERROR]   [5932]   [osGetProcedureAddress]   [src\win32\osModule.cpp]   [175]   [Cannot retrieve function pointer: clBeginComputationFrameAMD (Error code 0x7f)]

          ##   [21:41:41]   [99405630944]   [ERROR]   [5932]   [osGetProcedureAddress]   [src\win32\osModule.cpp]   [175]   [Cannot retrieve function pointer: clEndComputationFrameAMD (Error code 0x7f)]

          ##   [21:41:41]   [99405631034]   [ERROR]   [5932]   [osGetProcedureAddress]   [src\win32\osModule.cpp]   [175]   [Cannot retrieve function pointer: clNameContextAMD (Error code 0x7f)]

          ##   [21:41:41]   [99405631105]   [ERROR]   [5932]   [osGetProcedureAddress]   [src\win32\osModule.cpp]   [175]   [Cannot retrieve function pointer: clNameCommandQueueAMD (Error code 0x7f)]

          ##   [21:41:41]   [99405631171]   [ERROR]   [5932]   [osGetProcedureAddress]   [src\win32\osModule.cpp]   [175]   [Cannot retrieve function pointer: clNameMemObjectAMD (Error code 0x7f)]

          ##   [21:41:41]   [99405631238]   [ERROR]   [5932]   [osGetProcedureAddress]   [src\win32\osModule.cpp]   [175]   [Cannot retrieve function pointer: clNameSamplerAMD (Error code 0x7f)]

          ##   [21:41:41]   [99405631302]   [ERROR]   [5932]   [osGetProcedureAddress]   [src\win32\osModule.cpp]   [175]   [Cannot retrieve function pointer: clNameProgramAMD (Error code 0x7f)]

          ##   [21:41:41]   [99405631366]   [ERROR]   [5932]   [osGetProcedureAddress]   [src\win32\osModule.cpp]   [175]   [Cannot retrieve function pointer: clNameKernelAMD (Error code 0x7f)]

          ##   [21:41:41]   [99405631433]   [ERROR]   [5932]   [osGetProcedureAddress]   [src\win32\osModule.cpp]   [175]   [Cannot retrieve function pointer: clNameEventAMD (Error code 0x7f)]

          ##   [21:41:41]   [99405631496]   [ERROR]   [5932]   [osGetProcedureAddress]   [src\win32\osModule.cpp]   [175]   [Cannot retrieve function pointer: clCreateEventFromGLsyncKHR (Error code 0x7f)]

          ##   [21:41:41]   [99405812538]   [INFO]   [5932]   [osOutputDebugString]   [src\win32\osDebuggingFunctions.cpp]   [45]   [Debug string: CodeXL OpenCL Server was initialized]

          ##   [21:41:41]   [99405812639]   [INFO]   [5932]   [csInitializeOpenCLServer]   [src\csOpenCLServerInitialization.cpp]   [117]   [The OpenCL Server initialization ended]

          ##   [21:41:44]   [99414753297]   [INFO]   [5932]   [osOutputDebugString]   [src\win32\osDebuggingFunctions.cpp]   [45]   [Debug string: Detected error: The debugged process asked for an extension function pointer (glIsBuffer) from one render context, but called this function pointer in another render context (context #1) ]

          ##   [21:41:44]   [99414754839]   [INFO]   [5932]   [osOutputDebugString]   [src\win32\osDebuggingFunctions.cpp]   [45]   [Debug string: Detected error: The debugged process asked for an extension function pointer (glGetBufferParameteriv) from one render context, but called this function pointer in another render context (context #1) ]

          ##   [21:42:11]   [99486675939]   [INFO]   [5932]   [gsOpenGLSpyTerminate]   [src\gsOpenGLSpyInitFuncs.cpp]   [421]   [CodeXL OpenGL Server is terminating]

          ##   [21:42:11]   [99486678461]   [INFO]   [5932]   [osOutputDebugString]   [src\win32\osDebuggingFunctions.cpp]   [45]   [Debug string: Debugged process is terminating. New API thread id is: 5932]

          ##   [21:42:11]   [99486678608]   [INFO]   [5932]   [osDebugLog::terminate]   [src\common\osDebugLog.cpp]   [367]   [Debug log is terminated]

           

          ### System information data:

          ### End of system information

           

          ###  [pmclone]   []   []   [Win7-32]   [0,94,2123,0]   [Thursday, October 25, 2012 at 21:49:59]   [100765300406]

          ##   [21:49:59]   [100765300597]   [INFO]   [2888]   [osDebugLog::setLoggedSeverity]   [src\common\osDebugLog.cpp]   [889]   [Debug log severity: INFO]

          ##   [21:49:59]   [100765310383]   [INFO]   [2888]   [suInitializeSpyToAPIConnection]   [src\suSpiesUtilitiesDLLInitializationFunctions.cpp]   [389]   [CodeXL's servers are initialized in API mode]

          ##   [21:49:59]   [100765312626]   [INFO]   [2888]   [gsOpenGLSpyTerminate]   [src\gsOpenGLSpyInitFuncs.cpp]   [421]   [CodeXL OpenGL Server is terminating]

          ##   [21:49:59]   [100765312852]   [ERROR]   [2888]   [gsOpenGLSpyTerminate]   [src\gsOpenGLSpyInitFuncs.cpp]   [439]   [Failed to terminate OpenGL wrappers]

          ##   [21:49:59]   [100765313116]   [INFO]   [2888]   [osOutputDebugString]   [src\win32\osDebuggingFunctions.cpp]   [45]   [Debug string: Debugged process is terminating. New API thread id is: 2888]

          ##   [21:49:59]   [100765313422]   [INFO]   [2888]   [osDebugLog::terminate]   [src\common\osDebugLog.cpp]   [367]   [Debug log is terminated]

           

          ### System information data:

          ### End of system information

           

          ###  [pmclone]   []   []   [Win7-32]   [0,94,2123,0]   [Thursday, October 25, 2012 at 21:49:59]   [100765383531]

          ##   [21:49:59]   [100765383728]   [INFO]   [2888]   [osDebugLog::setLoggedSeverity]   [src\common\osDebugLog.cpp]   [889]   [Debug log severity: INFO]

          ##   [21:49:59]   [100765388949]   [ERROR]   [2888]   [osPipeSocketClient::open]   [src\win32\osPipeSocketClient.cpp]   [68]   [Assertion failure (_outgoingPipe != ((HANDLE)(LONG_PTR)-1))]

          ##   [21:49:59]   [100765389060]   [ERROR]   [2888]   [osPipeSocketClient::open]   [src\win32\osPipeSocketClient.cpp]   [83]   [Assertion failure (_incomingPipe != ((HANDLE)(LONG_PTR)-1))]

          ##   [21:49:59]   [100765389106]   [ERROR]   [2888]   [suSpyToAPIConnector::initialize]   [src\suSpyToAPIConnector.cpp]   [135]   [Assertion failure (rcSocketOpen)]

          ##   [21:49:59]   [100765389147]   [ERROR]   [2888]   [suInitializeAPIOrStandaloneMode]   [src\suSpiesUtilitiesDLLInitializationFunctions.cpp]   [272]   [Assertion failure (rcInitAPI)]

          ##   [21:49:59]   [100765389382]   [INFO]   [2888]   [suInitializeAPIOrStandaloneMode]   [src\suSpiesUtilitiesDLLInitializationFunctions.cpp]   [298]   [CodeXL Servers are initialized in stand-alone mode]

          ##   [21:49:59]   [100765389594]   [INFO]   [2888]   [osOutputDebugString]   [src\win32\osDebuggingFunctions.cpp]   [45]   [Debug string: Error: Communication between the debugged application and CodeXL has failed. ]

          ##   [21:50:04]   [100777848159]   [ERROR]   [2888]   [suOnSpiesUtilitiesInitializationFailure]   [src\suSpiesUtilitiesDLLInitializationFunctions.cpp]   [719]   [The Spies Utilities module initialization has failed. The debugged application will now exit]

          ##   [21:50:04]   [100777850153]   [INFO]   [2888]   [osOutputDebugString]   [src\win32\osDebuggingFunctions.cpp]   [45]   [Debug string: The Spies Utilities module initialization has failed. The debugged application will now exit]

          ##   [21:50:05]   [100779749214]   [INFO]   [2888]   [osDebugLog::terminate]   [src\common\osDebugLog.cpp]   [367]   [Debug log is terminated]

           

          ### System information data:

          ### End of system information

           

          ###  [pmclone]   []   []   [Win7-32]   [0,94,2123,0]   [Thursday, October 25, 2012 at 22:00:03]   [102411901651]

          ##   [22:00:03]   [102411901881]   [INFO]   [5096]   [osDebugLog::setLoggedSeverity]   [src\common\osDebugLog.cpp]   [889]   [Debug log severity: INFO]

          ##   [22:00:03]   [102411908489]   [INFO]   [5096]   [suInitializeSpyToAPIConnection]   [src\suSpiesUtilitiesDLLInitializationFunctions.cpp]   [389]   [CodeXL's servers are initialized in API mode]

          ##   [22:00:03]   [102411909873]   [INFO]   [5096]   [gsOpenGLSpyTerminate]   [src\gsOpenGLSpyInitFuncs.cpp]   [421]   [CodeXL OpenGL Server is terminating]

          ##   [22:00:03]   [102411910072]   [ERROR]   [5096]   [gsOpenGLSpyTerminate]   [src\gsOpenGLSpyInitFuncs.cpp]   [439]   [Failed to terminate OpenGL wrappers]

          ##   [22:00:03]   [102411910265]   [INFO]   [5096]   [osOutputDebugString]   [src\win32\osDebuggingFunctions.cpp]   [45]   [Debug string: Debugged process is terminating. New API thread id is: 5096]

          ##   [22:00:03]   [102411910389]   [INFO]   [5096]   [osDebugLog::terminate]   [src\common\osDebugLog.cpp]   [367]   [Debug log is terminated]

           

          ### System information data:

          ### End of system information

           

          ###  [pmclone]   []   []   [Win7-32]   [0,94,2123,0]   [Thursday, October 25, 2012 at 22:00:03]   [102411964656]

          ##   [22:00:03]   [102411964855]   [INFO]   [5096]   [osDebugLog::setLoggedSeverity]   [src\common\osDebugLog.cpp]   [889]   [Debug log severity: INFO]

          ##   [22:00:03]   [102411969718]   [ERROR]   [5096]   [osPipeSocketClient::open]   [src\win32\osPipeSocketClient.cpp]   [68]   [Assertion failure (_outgoingPipe != ((HANDLE)(LONG_PTR)-1))]

          ##   [22:00:03]   [102411969942]   [ERROR]   [5096]   [osPipeSocketClient::open]   [src\win32\osPipeSocketClient.cpp]   [83]   [Assertion failure (_incomingPipe != ((HANDLE)(LONG_PTR)-1))]

          ##   [22:00:03]   [102411970003]   [ERROR]   [5096]   [suSpyToAPIConnector::initialize]   [src\suSpyToAPIConnector.cpp]   [135]   [Assertion failure (rcSocketOpen)]

          ##   [22:00:03]   [102411970046]   [ERROR]   [5096]   [suInitializeAPIOrStandaloneMode]   [src\suSpiesUtilitiesDLLInitializationFunctions.cpp]   [272]   [Assertion failure (rcInitAPI)]

          ##   [22:00:03]   [102411970277]   [INFO]   [5096]   [suInitializeAPIOrStandaloneMode]   [src\suSpiesUtilitiesDLLInitializationFunctions.cpp]   [298]   [CodeXL Servers are initialized in stand-alone mode]

          ##   [22:00:03]   [102411970468]   [INFO]   [5096]   [osOutputDebugString]   [src\win32\osDebuggingFunctions.cpp]   [45]   [Debug string: Error: Communication between the debugged application and CodeXL has failed. ]

          ##   [22:00:04]   [102414766760]   [ERROR]   [5096]   [suOnSpiesUtilitiesInitializationFailure]   [src\suSpiesUtilitiesDLLInitializationFunctions.cpp]   [719]   [The Spies Utilities module initialization has failed. The debugged application will now exit]

          ##   [22:00:04]   [102414767030]   [INFO]   [5096]   [osOutputDebugString]   [src\win32\osDebuggingFunctions.cpp]   [45]   [Debug string: The Spies Utilities module initialization has failed. The debugged application will now exit]

          ##   [22:00:04]   [102416077236]   [INFO]   [5096]   [osDebugLog::terminate]   [src\common\osDebugLog.cpp]   [367]   [Debug log is terminated]

           

          ### System information data:

          ### End of system information

           

          ###  [pmclone]   []   []   [Win7-32]   [0,94,2123,0]   [Thursday, October 25, 2012 at 22:00:09]   [102429125368]

          ##   [22:00:09]   [102429125587]   [INFO]   [6124]   [osDebugLog::setLoggedSeverity]   [src\common\osDebugLog.cpp]   [889]   [Debug log severity: INFO]

          ##   [22:00:09]   [102429132646]   [INFO]   [6124]   [suInitializeSpyToAPIConnection]   [src\suSpiesUtilitiesDLLInitializationFunctions.cpp]   [389]   [CodeXL's servers are initialized in API mode]

          ##   [22:00:09]   [102429134174]   [INFO]   [6124]   [gsOpenGLSpyTerminate]   [src\gsOpenGLSpyInitFuncs.cpp]   [421]   [CodeXL OpenGL Server is terminating]

          ##   [22:00:09]   [102429137065]   [ERROR]   [6124]   [gsOpenGLSpyTerminate]   [src\gsOpenGLSpyInitFuncs.cpp]   [439]   [Failed to terminate OpenGL wrappers]

          ##   [22:00:09]   [102429139819]   [INFO]   [6124]   [osOutputDebugString]   [src\win32\osDebuggingFunctions.cpp]   [45]   [Debug string: Debugged process is terminating. New API thread id is: 6124]

          ##   [22:00:09]   [102429140651]   [INFO]   [6124]   [osDebugLog::terminate]   [src\common\osDebugLog.cpp]   [367]   [Debug log is terminated]

           

          ### System information data:

          ### End of system information

           

          ###  [pmclone]   []   []   [Win7-32]   [0,94,2123,0]   [Thursday, October 25, 2012 at 22:00:09]   [102429212441]

          ##   [22:00:09]   [102429212637]   [INFO]   [6124]   [osDebugLog::setLoggedSeverity]   [src\common\osDebugLog.cpp]   [889]   [Debug log severity: INFO]

          ##   [22:00:09]   [102429218326]   [ERROR]   [6124]   [osPipeSocketClient::open]   [src\win32\osPipeSocketClient.cpp]   [68]   [Assertion failure (_outgoingPipe != ((HANDLE)(LONG_PTR)-1))]

          ##   [22:00:09]   [102429218435]   [ERROR]   [6124]   [osPipeSocketClient::open]   [src\win32\osPipeSocketClient.cpp]   [83]   [Assertion failure (_incomingPipe != ((HANDLE)(LONG_PTR)-1))]

          ##   [22:00:09]   [102429218482]   [ERROR]   [6124]   [suSpyToAPIConnector::initialize]   [src\suSpyToAPIConnector.cpp]   [135]   [Assertion failure (rcSocketOpen)]

          ##   [22:00:09]   [102429218524]   [ERROR]   [6124]   [suInitializeAPIOrStandaloneMode]   [src\suSpiesUtilitiesDLLInitializationFunctions.cpp]   [272]   [Assertion failure (rcInitAPI)]

          ##   [22:00:09]   [102429218759]   [INFO]   [6124]   [suInitializeAPIOrStandaloneMode]   [src\suSpiesUtilitiesDLLInitializationFunctions.cpp]   [298]   [CodeXL Servers are initialized in stand-alone mode]

          ##   [22:00:09]   [102429218981]   [INFO]   [6124]   [osOutputDebugString]   [src\win32\osDebuggingFunctions.cpp]   [45]   [Debug string: Error: Communication between the debugged application and CodeXL has failed. ]

          ##   [22:00:10]   [102432750680]   [ERROR]   [6124]   [suOnSpiesUtilitiesInitializationFailure]   [src\suSpiesUtilitiesDLLInitializationFunctions.cpp]   [719]   [The Spies Utilities module initialization has failed. The debugged application will now exit]

          ##   [22:00:10]   [102432750973]   [INFO]   [6124]   [osOutputDebugString]   [src\win32\osDebuggingFunctions.cpp]   [45]   [Debug string: The Spies Utilities module initialization has failed. The debugged application will now exit]

          ##   [22:00:11]   [102433865331]   [INFO]   [6124]   [osDebugLog::terminate]   [src\common\osDebugLog.cpp]   [367]   [Debug log is terminated]

            • Re: Communication between the debugged application and CodeXL has failed.
              urishomroni

              It seems that your application is being launched with some sort of springboard / launcher application.

              CodeXL (and gDEBugger before it) uses the Windows API and environment variables to intercept the debugged application's use of the API (and force the application to load the OpenGL and OpenCL servers) - as well as communicate some basic information to the same servers.

               

              From what it seems:

              1. The launcher application might be copying select values of the environment to the real app (e.g. PATH) - but not others (e.g. CodeXL's SU_DEBUGGED_APPLICATION_NAME) - or just none of the environment at all - try having it copy / inherit the entire environment.

              OR

              1b. Same as #1 above, but with the ::SetDLLDirectory() value instead of an environment variable.

              * Make sure you're not overriding the value in the launcher by calling the same function.

              * Make sure you're specifying inheritance of this value in ::CreateProcess().

              OR

              2. The launcher itself is trying to load the OpenGL module, and ends up with CodeXL's server, which is having trouble initializing with it, since it's not the expected application.

              OR

              3. The launcher "steals" the client-server connection from the launched application, and when the time comes for the real debugged application to connect, it fails to do so and pops up the message in question. This is SUPPOSED to be avoided by having the launcher and debugged application have different names. Try changing either one's name if possible.

               

              Hopefully, one of the above suggestions helps,