Photon : GenuitecCoreRTException: Invalid main thread state detected on re-read

This topic contains 4 replies, has 2 voices, and was last updated by  Brian Fernandes 7 months ago.

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
  • #593487 Reply



    I am trying to take a second shot at using CodeMix … I had fiddled with it about a month ago under Eclipse Oxygen. Now that I have some free time again, I am trying to test it out with a mostly clean Eclipse Photon install (the workspace is fresh from a clean Photon install…not an upgrade from Oxygen).

    Upon launching Eclipse, I receive the following error dialog:

    [Problem Occurred]
    ‘Verifying projects…’ has encountered a problem.

    An internal error occurred during “Verifying projects…”.

    Subsequently, attempting to edit any file for which Codemix is the associated editor, I receive an empty tab that reads:
    “Editor could not be initialized.”

    The following is from workspace/.metadata/.log:

    I have tried uninstalling the CodeMix plugin…stopping Eclipse…deleting ~/.codemix…starting Eclipse, reinstalling the plugin, etc… same errors occur.

    Any guidance would be appreciated. Thanks in advance!

    #593488 Reply

    Brian Fernandes


    Thank you for trying CodeMix a second time, and coming to us with the problem. Can you tell us where you installed CodeMix? CodeMix needs to be installed in a location which is writeable (by itself) – not having write-access could cause something like this to show up.

    If you correct this and still have a problem, do send us your error log file – it’s at [workspace_location]/.metadata/.log

    #593491 Reply


    Hi Brian,
    Thanks for the information. The Eclipse setup is a little unique…I’ll explain…

    We have an NFS location where our shared tooling lives. So, in the case of Eclipse, we install only a single version of Eclipse to … say … /shared/eclipse-photon . The files here are owned by a generic system user — not any one developer.

    This singular Eclipse installation has an eclipse.ini file which specifies:

    The effect of which is that each individual developer, while sharing a commmon Eclipse binary, has their own workspace and .eclipse directory which lives in their home directory at /home/username/{.eclipse,workspace}. The contents of this directory is entirely writable, as it must be, because it is Eclipse itself that creates it all.

    This setup allows each developer to install their own plugins and operate in their own workspace without conflicting with other developers…while also ensuring that we all utilize the same single Eclipse installation that no developer can alter.

    So long as CodeMix is only trying to write files in ~/.eclipse or ~/workspace, or even just ~ there should be no permission issues. However, if CodeMix is trying to touch files in /shared/eclipse-photon … then this will certainly fail in our case. Can you confirm if it is normal for CodeMix to try to mutate files in the Eclipse installation directory?

    Thanks for your help!

    #593603 Reply

    Brian Fernandes


    Apologies for going dark over the weekend, and thank you for taking the time to document your setup in detail for us.

    Yes, a configuration like that does appear to the problematic for CodeMix, and will result in almost nothing working at all. Unfortunately, I cannot provide a workaround right now, but our team is taking a look at whether we can do something in-product to get it to work with your setup.

    We will let you know when there’s an update on this front, appreciate your patience!

    #593719 Reply

    Brian Fernandes


    You’ll be happy to know that we just put out a release which should address the issues you’re experiencing. If you pick up the update (or do a fresh install), CodeMix should be fully functional.

    Do let us know if it works for you, and thank you again for the report.

Viewing 5 posts - 1 through 5 (of 5 total)
Reply To: Photon : GenuitecCoreRTException: Invalid main thread state detected on re-read