facebook

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

  1. CodeMix & Angular IDE
  2.  > 
  3. Getting Help
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #593487 Reply

    matt-savona
    Participant

    Hi!

    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:

    
    
    !ENTRY org.eclipse.core.jobs 4 2 2018-07-12 13:18:47.325
    !MESSAGE An internal error occurred during: "Verifying projects...".
    !STACK 0
    com.genuitec.eclipse.code.common.GenuitecCoreRTException: Invalid main thread state detected on re-read.
    	at com.genuitec.eclipse.code.D.E(Unknown Source)
    	at com.genuitec.eclipse.code.D.J(Unknown Source)
    	at com.genuitec.eclipse.code.D.K(Unknown Source)
    	at com.genuitec.eclipse.code.C.doIsTrialValid(Unknown Source)
    	at com.genuitec.eclipse.code.C.A(Unknown Source)
    	at com.genuitec.eclipse.code.C.getLicenseStatus(Unknown Source)
    	at com.genuitec.eclipse.code.C.getLicenseStatus(Unknown Source)
    	at com.genuitec.eclipse.code.ViperCore.getLicenseStatus(Unknown Source)
    	at com.genuitec.eclipse.code.vU.B(Unknown Source)
    	at com.genuitec.eclipse.code.vU.AS__111164asdfae2342fa(Unknown Source)
    	at com.genuitec.eclipse.code.ui.problem.CodeBuilder.isEnabled(CodeBuilder.java:43)
    	at com.genuitec.eclipse.code.ui.problem.CodeBuilder$1.run(CodeBuilder.java:80)
    	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:60)
    
    !ENTRY org.eclipse.e4.ui.workbench 4 0 2018-07-12 13:23:15.104
    !MESSAGE 
    !STACK 0
    java.lang.NullPointerException
    	at com.genuitec.eclipse.code.ui.editor.CodeEditor.dispose(CodeEditor.java:368)
    	at org.eclipse.ui.internal.e4.compatibility.CompatibilityPart.handlePartInitException(CompatibilityPart.java:311)
    	at org.eclipse.ui.internal.e4.compatibility.CompatibilityPart.create(CompatibilityPart.java:344)
    	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    	at java.lang.reflect.Method.invoke(Method.java:498)
    	...
    	at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:152)
    	at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
    	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:134)
    	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104)
    	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:388)
    	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:243)
    	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    	at java.lang.reflect.Method.invoke(Method.java:498)
    	at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:656)
    	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:592)
    	at org.eclipse.equinox.launcher.Main.run(Main.java:1498)
    	at org.eclipse.equinox.launcher.Main.main(Main.java:1471)
    
    !ENTRY org.eclipse.ui 4 4 2018-07-12 13:23:15.107
    !MESSAGE Unable to create part
    !SUBENTRY 1 org.eclipse.ui.workbench.texteditor 4 0 2018-07-12 13:23:15.107
    !MESSAGE Editor could not be initialized.
    !STACK 0
    com.genuitec.eclipse.code.common.GenuitecCoreRTException: Invalid main thread state detected on re-read.
    	at com.genuitec.eclipse.code.D.E(Unknown Source)
    	at com.genuitec.eclipse.code.D.J(Unknown Source)
    	at com.genuitec.eclipse.code.D.K(Unknown Source)
    	at com.genuitec.eclipse.code.C.doIsTrialValid(Unknown Source)
    	at com.genuitec.eclipse.code.C.A(Unknown Source)
    	at com.genuitec.eclipse.code.C.getLicenseStatus(Unknown Source)
    	at com.genuitec.eclipse.code.C.getLicenseStatus(Unknown Source)
    	at com.genuitec.eclipse.code.ViperCore.getLicenseStatus(Unknown Source)
    	at com.genuitec.eclipse.code.vU.B(Unknown Source)
    	at com.genuitec.eclipse.code.vU.AS__111164asdfae2342fa(Unknown Source)
    	at com.genuitec.eclipse.code.ui.editor.CodeDocumentProvider.getStatus(CodeDocumentProvider.java:62)
    	at org.eclipse.ui.texteditor.StatusTextEditor.updateStatusField(StatusTextEditor.java:242)
    	at org.eclipse.ui.texteditor.AbstractTextEditor.handleInsertModeChanged(AbstractTextEditor.java:6656)
    	...
    	at java.lang.reflect.Method.invoke(Method.java:498)
    	at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:656)
    	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:592)
    	at org.eclipse.equinox.launcher.Main.run(Main.java:1498)
    	at org.eclipse.equinox.launcher.Main.main(Main.java:1471)
    

    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
    Moderator

    Matt,

    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

    matt-savona
    Participant

    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:

    
    -Dosgi.instance.area.default=@user.home/workspace
    -Dosgi.configuration.area=@user.home/.eclipse/configuration
    

    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
    Moderator

    Matt,

    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
    Moderator

    Matt,

    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

You must be logged in to post in the forum log in