CCSTUDIO-THEIA: Only white screen with CCS Logo - GetVSyncParametersIfAvailable

Part Number: CCSTUDIO-THEIA
Other Parts Discussed in Thread: CCSTUDIO, SYSCONFIG

Hi support team,

I have installed CCS Theia on Ubuntu 24.04.5 LTS in /opt/ti/ccs2101/.

I followed the instructions:

  • ran sudo install_scripts/install_drivers.sh
  • sudo chown root:root chrome-sandbox
  • sudo chmod 4755 chrome-sandbox

But I just see a white screen with the CCS logo and it never finishes loading.

To troubleshoot I did not use the desktop icon, but started CCS Studio from command line. I see this error:
/opt/ti/ccs2101/ccs/theia$ ./ccstudio 
Configuration directory URI: 'file:///home/uzc2fe/.config/Texas%20Instruments/CCS/ccs2101/1/theia'
Configuring to accept webviews on '^.+\.webview\..+$' hostname.
CCSGuiComposerBackendContribution loaded...
CCSBackendApplicationContribution loaded...
CCSPluginHttpBackendImpl loaded...
[173143:1019/094708.641190:ERROR:ui/gl/gl_surface_presentation_helper.cc:260] GetVSyncParametersIfAvailable() failed for 1 times!
[173143:1019/094708.647090:ERROR:ui/gl/gl_surface_presentation_helper.cc:260] GetVSyncParametersIfAvailable() failed for 2 times!

How can I fix this? Which additional logs might you need?

  • Hi Clemens,

    Can you try running CCS with the --disable-gpu parameter and see if that helps?

    $ ./ccstudio --disable-gpu

    Thanks

    ki

  • Okay, I tried it: the error messages on the terminal are no longer there, but still it never finishes loading:
    /opt/ti/ccs2101/ccs/theia$ ./ccstudio --disable-gpu
    Configuration directory URI: 'file:///home/uzc2fe/.config/Texas%20Instruments/CCS/ccs2101/2/theia'
    Configuring to accept webviews on '^.+\.webview\..+$' hostname.
    CCSGuiComposerBackendContribution loaded...
    CCSBackendApplicationContribution loaded...
    CCSPluginHttpBackendImpl loaded...

    I only see this pulsing logo...




  • Thanks for trying. I will need to investigate with engineering further. This is a native Ubuntu machine (not a VM), correct?

  • Yes, it is a Ubuntu native machine. These are the inxi specs:

    $ inxi -b
    System:
      Host: FE2-C-0013J Kernel: 6.8.0-147-generic arch: x86_64 bits: 64
      Desktop: GNOME v: 46.0 Distro: Ubuntu 24.04.5 LTS (Noble Numbat)
    Machine:
      Type: Desktop System: Dell product: OptiPlex Tower Plus 7020 v: N/A
        serial: <superuser required>
      Mobo: Dell model: 0Y7V6M v: A00 serial: <superuser required> UEFI: Dell
        v: 1.10.0 date: 09/13/2024
    CPU:
      Info: 20-core (8-mt/12-st) Intel Core i7-14700 [MST AMCP] speed (MHz):
        avg: 893 min/max: 800/5300:5400:4200
    Graphics:
      Device-1: Intel Raptor Lake-S GT1 [UHD Graphics 770] driver: i915 v: kernel
      Device-2: Logitech Webcam C930e driver: snd-usb-audio,uvcvideo type: USB
      Display: wayland server: X.Org v: 23.2.6 with: Xwayland v: 23.2.6
        compositor: gnome-shell driver: dri: iris gpu: i915 resolution:
        1: 2560x1440~60Hz 2: 1920x1080~60Hz
      API: OpenGLv: 4.6 compat-v: 4.5 vendor: intel mesa
        v: 25.2.8-0ubuntu0.24.04.4 renderer: Mesa Intel Graphics (RPL-S)
    Network:
      Device-1: Intel Alder Lake-S PCH CNVi WiFi driver: iwlwifi
      Device-2: Intel Ethernet I219-LM driver: e1000e
    Drives:
      Local Storage: total: 476.94 GiB used: 172.15 GiB (36.1%)
    Info:
      Memory: total: 32 GiB note: est. available: 31.03 GiB used: 4.83 GiB (15.6%)
      Processes: 588 Uptime: 2m Shell: Bash inxi: 3.3.34

    These are the details of my installation:

    $ cat /opt/ti/ccs2101/ccs/.installedComponents.properties
    AI_MD=1.2.0.20260813134009
    BLACKHAWK_EMUPACK=9.0.0.002
    CCS_DOC=21.0.1.00010
    CCS_UTILS=1.0.3.20260415
    CGT_DEFAULTLIBS_C6000_V8P=8.5.0.LTS
    CGT_DEFAULTLIBS_C7000=5.0.1.LTS
    CLOUDAGENT=0.5.5732
    DS=21.0.0.4166
    DS_FLASH=21.0.0.4166
    ECLIPSE=21.0.1.202607302334
    EMU_TI=21.0.0.4024
    IDE_METADATA=1.12.1
    NODEJS=22.7.0
    PF_ARM_MPU=1.6.14
    PF_HERCULES=6.0.9
    PF_MSPM33=1.0.24
    SEGGER_J_LINK=9.66.0
    SYSCONFIG=1.28.1.4785
    TARGETDB_DEF_PROPS=21.0.0.N202605271003
    THEIA=21.0.1.20260816200705
    TIREX=4.25.1.202608182355
    TIVA_STELLARIS_DRIVERS=2.1.3.15
    TI_ARM_CLANG=5.1.1.LTS
    YAROV=2.1.0

    If there is any logfile that could be helpful for the investigation, please let me know. I am a pretty new user of CCStudio.

    Not sure if it is helpful, but plain Eclipse Theia (v1.76.0) installed as "AppImage" runs without problems.

  • Can you try --disable-gpu-sandbox instead?

  • Okay, I tried --disable-gpu-sandbox now, no change. I still only see this blank splash screen and it never finishes loading.

  • Thanks for trying. I has escalated this issue to engineering. Do you have any kind of security software like antivirus, etc running on that machine?

  • Hi Ki, 

    as this is a company provided machine, I have to have Intune and Microsoft Defender installed and running.

    I tested to stop and disable apparmor and mdatp (systemctl disable and stop) temporarily though and run CCS afterwards - it did not fix the situation.

  • Please provide the CCS Server Log and Theia Log. They can be accessed from "Help -> Support".

  • Hi Ki, I would love to send you those reports, but as I said earlier I just see a white splash screen. I have no access to the Help Menu. If you tell me where those file might be on the harddrive I can sent it to you.

  • If you tell me where those file might be on the harddrive I can sent it to you.

    Does this folder exist for you?

    /home/<user>/.config/Texas Instruments/CCS

    If so, is there any content in there? If so, please zip the entire CCS folder and attach to this thread.

    Thanks

    ki

  • 0027.CCS.zip

    Sure, I tried to start ccstudio with the argument --disable-gpu-sandbox today, just before I created the ZIP.

  • Thanks. Engineering sees many errors in there. Can you completely clear out all the cached CCS data as mentioned in:

    https://software-dl.ti.com/ccs/esd/documents/users_guide_ccs/ccs_faqs.html#i-want-to-restart-ccstudio-ide-with-a-fresh-environment-how-do-i-do-this

    Then launch again and if the issue occurs, send your zipped CCS folder again.

    Thanks

    ki 

  • CCS_with_fresh_env.zip
    Unfortunately the problem is not resolved by cleaning of the environment (deleted ~/.config/Texas Instruments/CCS/.ccs-server and also ~/workspace_theia).

    I also tried to go back to an older version of CCS (20.5.), installed it this morning into /opt/ti/, but it also shows the same problem - just a white splash screen. The log are included in the archive, too.


  • # CCS Studio (Theia) startup investigation
    
    Date: 2026-11-06
    Machine: Ubuntu, kernel 6.8.0-147-generic, Wayland session (`DISPLAY=:0` via Xwayland)
    
    ## Summary
    
    - The installed CCS versions are `/opt/ti/ccs2051/ccs/theia/ccstudio` and `/opt/ti/ccs2101/ccs/theia/ccstudio`.
    - Both launchers start the backend and the CCS server. The frontend (the Electron window) then either never connects, or fails during startup.
    - Two causes were found:
      1. **Stale CCS session lock.** Leftover processes from earlier runs kept an IDE session open. The log shows `Another IDE session is currently in progress or previous IDE session failed to fully terminate`. This matches the splash-screen hang. Killing the leftovers and removing `.ccs-lock` cleared it.
      2. **Intermittent frontend startup failure (not fully resolved).** The renderer logs `Failed to start the frontend application.` with a `DOMException`. The stack points to `IndexSizeError` from text measurement while the trace-viewer timeline module loads. This did not reproduce consistently, and I did not find a stable root cause.
    - After cleanup, `ccs2101` launched for you. I could not measure how often the second failure still occurs.
    
    ## Timeline of findings
    
    1. **Starting point.** Your shell history shows you launching `/opt/ti/ccs2101/ccs/theia/ccstudio` with `--disable-gpu-sandbox`.
    2. **Both binaries run.** Each ran for the full 45–60 second timeout without exiting on its own. The binaries are not missing or corrupt.
    3. **Hang at "waiting for theia-frontend".** `ccs_theia.log` shows the backend and CCS server handshake complete, then `ccstudiohandshake ... waiting for theia-frontend...`, then `socket closed` when the process was killed. The frontend never connected in these runs.
    4. **Orphaned processes.** `timeout` kills only the process it started. The Java `ccs-server` and Electron child processes survived as orphans under `systemd --user`. All of these were started by my test runs (cwd `/tmp`). Their presence triggered the `previous IDE session failed to fully terminate` warning. I killed them and removed `.ccs-lock` from `.ccs-server/workspaces/.../.metadata/`.
    5. **Frontend exception.** With Chromium logging enabled, the renderer printed `Failed to start the frontend application.` followed by `[object DOMException]`. The `app.asar` bundle shows this message is the `catch` around the `await load(container, import(...))` chain and `MonacoInit.init` in the frontend entry point.
    6. **Exception detail via DevTools protocol.** With `--remote-debugging-port`, the captured error was:
       `IndexSizeError: Failed to execute 'getImageData' on 'OffscreenCanvasRenderingContext2D': The source width is 0.`
       It is raised in `@pixi/text` `TextMetrics.measureFont`, called from `FontController`'s static initializer in the timeline-chart module (`TimeGraphStateComponent.fontController = new FontController()`), which runs while the trace-viewer module loads.
    7. **Fonts and sandbox ruled out as the direct cause.** Inside the live renderer, `measureText` returned normal widths for `monospace`, `sans-serif`, `Arial`, `Courier New`, `Consolas`, and quoted variants. `fc-list` lists 1054 fonts. Fontconfig resolves all generic families. The sandbox was not shown to be the cause: `--disable-gpu-sandbox` disables only the GPU sandbox, and the renderer's font access worked.
    8. **Not reproducible in every run.** After cleanup, a run attached with DevTools (without reload) started the frontend fully: `Starting plugins`, `Start of 24 plugins`. An earlier clean run after cleanup still failed with the `DOMException`. An instrumented run with a canvas hook reproduced neither the `IndexSizeError` nor the start failure, but it did show `Another channel with the id '/services/remote-filesystem' is already open`. This points to a startup race or timing dependency. I did not confirm it.
    9. **Your result.** You report that `/opt/ti/ccs2101/ccs/theia/ccstudio` now starts. I did not identify which single change fixed it. The most likely cause of the splash hang was the stale session lock. The intermittent `IndexSizeError` may or may not still occur.
    
    ## Environment facts relevant to sandboxing
    
    - `kernel.apparmor_restrict_unprivileged_userns = 1`, so Chromium cannot use unprivileged user namespaces. It falls back to the setuid `chrome-sandbox`, which is present and correctly owned (`root:root`, mode 4755). `/opt` is on the root `ext4` filesystem, mounted without `nosuid`.
    - `kernel.yama.ptrace_scope = 1`.
    - Electron 37.2.1, Chrome 138.0.7204.97.
    - Running under `strace -f` broke the setuid sandbox. The zygote then aborted with SIGTRAP and the message `The setuid sandbox is not running as root`. This is an artifact of ptrace, not the real failure. Do not use strace to debug this app without `--no-sandbox`.
    
    ## Harmless log noise (not the cause)
    
    - `Failed to load plugin dependencies from ... ccs-theia.builtin-extensions-pack ... ENOENT`
    - `The local plugin referenced by ... /plugins does not exist` and `.../deployedPlugins does not exist`
    - `GetVSyncParametersIfAvailable() failed` (GL, Wayland)
    - Node deprecation warnings (`punycode`, `fs.Stats`)
    - React `Each child in a list should have a unique "key" prop` warning
    - In `ccs2051`'s log only: `Cannot resolve package @types/...` and `Cannot resolve package electron`. I did not investigate these further. The electron-resolution error may matter if `ccs2051` is used.
    
    ## Recommendations
    
    - **Launch in a way that kills the whole process tree.** Use `setsid` and kill the process group, or run `pkill -f '/opt/ti/ccs2101/ccs/'` after each run. Do not rely on `timeout` alone.
    - **Before relaunching, check for leftovers.** Run `ps -eo pid,etime,cmd | grep -E 'ccstudio|ccs-server'`. If `ccs_theia.log` contains `previous IDE session failed to fully terminate`, kill the leftovers and remove `~/.config/Texas Instruments/CCS/.ccs-server/workspaces/*/.metadata/.ccs-lock`.
    - **If the start failure returns,** capture these for support:
      - `~/.config/Texas Instruments/CCS/ccs2101/0/theia/ccs_theia.log`
      - the stderr output of a run with `--enable-logging=stderr`, which contains `Failed to start the frontend application.`
      - the full exception from the renderer console. The `[object DOMException]` text is truncated, so a DevTools protocol capture (`--remote-debugging-port`) gives the full message.
    
    
    Hey Ki,

    since issue is blocking me for quite some time now, I got desperate and used claude code with haiki 5-5 model and asked it to investigate the startup issue. It did resolve it - at least for the first time I can actually see the frontend - and I also asked it to create a report. It is attached, so hopefully you engineering department will find it helpful and maybe resolve the issue for good.

  • Thank you for sharing your finding. I discussed them with engineering. They did not expect the issue to happen with CCS 21.0.1 as additional improvements were made in that release to avoid such issues. I tried to simulate the issue without success. However that was on Windows. Perhaps this issue can occur on Linux. We will look for further areas to improve.

    Thanks

    ki