This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CODECOMPOSER: Crash when accessing Resource Explorer

Part Number: CODECOMPOSER

Hi,

I'm having trouble using Code Composer Studio as it does not work as intended. When opening the Resource Explorer I get only a blank pane instead of any content. Additionally when not closing the Resource Explorer tab, but trying to do something different CCS soon crashes with a segmentation fault (German error message as I could not coax my system into producing an English one):

Speicherzugriffsfehler (Speicherabzug geschrieben)

This makes CCS somewhat unusable as the Resource Explorer is central to some workflows.

I'm using a Fedora 35 Linux amd64 host. I installed CCS into my home directory with user privileges. I already worked a bit with it bypassing the Resource Explorer, but now I need some content from the Resource Explorer.

Sometimes the following exception pops up on stderr, I don't know whether it's related:

Exception in thread "Browser Thread: 35493" java.util.ConcurrentModificationException
at java.base/java.util.HashMap$HashIterator.nextNode(Unknown Source)
at java.base/java.util.HashMap$KeyIterator.next(Unknown Source)
at com.ti.chromium.browser.internal.jxbrowser.BrowserFunctionAdapter.addJsFunctionsToFrame(BrowserFunctionAdapter.java:68)
at com.ti.chromium.browser.internal.jxbrowser.BrowserFunctionAdapter.injectJsCallback(BrowserFunctionAdapter.java:42)
at com.ti.chromium.browser.JxBrowser.lambda$2(JxBrowser.java:329)
at com.teamdev.jxbrowser.frame.internal.FrameImpl.lambda$processCallback$2(FrameImpl.java:204)
at java.base/java.util.Optional.map(Unknown Source)
at com.teamdev.jxbrowser.frame.internal.FrameImpl.processCallback(FrameImpl.java:204)
at com.teamdev.jxbrowser.internal.rpc.stream.CallbackStream.process(CallbackStream.java:178)
at com.teamdev.jxbrowser.internal.rpc.stream.Stream$StreamObserver.lambda$onNext$0(Stream.java:164)
at com.teamdev.jxbrowser.internal.BrowserThread$TaskRunner.processTasks(BrowserThread.java:139)
at java.base/java.lang.Thread.run(Unknown Source)

PS: The problem now evolved to a state, where upon a restart the Resource Explorer tab is opened automatically (resuming from the last session) and trying to close it (which was possible previously) now crashes CCS making this a one-way street to complete snafu. Help?

  • Hello,

    Fedora is not an distribution that we officially test with so I will need some time to set up this environment to reproduce the issue.

    What version of CCS are you working with? Do any of the other views that require internet access like the App Center or Eclipse Marketplace work?

    Thanks

    ki

  • Hi,

    I'm using CCS 11.0. I managed to close the Resource Explorer tab, so I'm back to a somewhat usable state.

    I first checked the Eclipse Marketplace and it mostly worked (I can install an extension), except for the "Giving IoT an Edge" tab where I found the following message: "No embeddable Browser component was found for your platform."

    I then checked the App Center and this shows a blank pane just like the Resource Explorer. And it also has the same behaviour of crashing CCS.

    Thanks a lot for taking a look!

    Markus

  • Thank you for the additional information. I will try setting up a Fedora 35 VM this afternoon and keep you posted of my progress

  • I set up a Fedora 35 environment with CCS11. I was able to reproduce the issue.

    I was able to workaround the issue by opening a terminal and changing directory to: <CCS11 INSTALL DIR>/ccs/eclipse

    The run the below commands:

    > export GDK_BACKEND=x11
    > ./ccstudio

    This launched CCS and Resource Explorer seemed to work fine:

    See if this works for you

    Thanks

    ki

  • This helped! It now works as advertised. Thanks a lot.