Xml view in jmix studio buggy

Hello, more often than not I have troubles opening my screen descriptors. I only use the XML view and actually don’t care about the preview, but the XML view shows me a blank screen very often. When I switch to preview mode and back to XML view, it shows me the XML. But when I switch to another file and go back, it is blank again. It’s very annoying. See video:

PS: I can’t upload webm, which has about 290kb, but only mov, which has 1,6MB for same content when converted…

Just to add on, there are fairly numerous bugs in the Descriptior designer/editor. Sometimes changes simply revert, or even partially revert, etc. I can’t reproduce at will, but will keep monitoring to find a pattern.

Thank you for the report.
Created issue: https://youtrack.jmix.io/issue/JST-3265

We’ll appreciate if you provide any additional information and maybe some conditions when it happens.

1 Like

I especially see this bug in extended screen descriptors.

It also looks like they have to have a certain amount of complexity.

Hi, Klaus

Just want to make some clarifications.
Do you have Componen Hierarchy tool window properly activated when you face the issue? I mean is there screen components hierarchy in this tool window. If no, does it appear after switching to preview mode and back to text?
Could you please attach idea.log file when you face the issue again?

Thank you

Hi @gaslov,
I don’t use any of the component tool windows. They are always minimized in my IDE.

I mean is there screen components hierarchy in this tool window. If no, does it appear after switching to preview mode and back to text?

I can test that.

Could you please attach idea.log file when you face the issue again?

Yes.

Thank you for looking into it.

A new video with latest nightly studio plugin: (this is just the bootstrap example flowui project)

And the log:

2022-12-17 10:08:28,711 [159264154]   WARN - #c.h.j.f.s.d.FlowVisualDesigner$MyUpdate - [Flow UI]: Log file not found when updating screen designer console
2022-12-17 10:08:28,711 [159264154]   WARN - #c.h.j.f.s.d.FlowVisualDesigner$MyUpdate - [Flow UI]: Log file not found when updating screen designer console
2022-12-17 10:08:28,711 [159264154]   WARN - #c.h.j.f.s.d.FlowVisualDesigner$MyUpdate - [Flow UI]: Log file not found when updating screen designer console
2022-12-17 10:08:28,711 [159264154]   WARN - #c.h.j.f.s.d.FlowVisualDesigner$MyUpdate - [Flow UI]: Log file not found when updating screen designer console
2022-12-17 10:08:28,735 [159264178]   WARN - #c.h.j.f.s.d.FlowVisualDesigner$MyUpdate - [Flow UI]: Log file not found when updating screen designer console
2022-12-17 10:08:29,119 [159264562]   WARN - o.e.j.s.HttpChannel - handleException /flow_ui_designer-C290zKobK9Fv java.net.ConnectException: Connection refused
2022-12-17 10:08:29,692 [159265135]   WARN - o.e.j.s.HttpChannel - handleException /flow_ui_designer-21ee8epszDGP java.net.ConnectException: Connection refused
2022-12-17 10:08:31,191 [159266634]   WARN - o.e.j.s.HttpChannel - handleException /flow_ui_designer-IYFOGCYXEbiU java.net.ConnectException: Connection refused
2022-12-17 10:08:38,573 [159274016]   WARN - o.e.j.s.HttpChannel - handleException /flow_ui_designer-G8cZU1OBKEP0 java.net.ConnectException: Connection refused
2022-12-17 10:08:39,583 [159275026]   WARN - o.e.j.s.HttpChannel - handleException /flow_ui_designer-4NvSOr4okdL0 java.net.ConnectException: Connection refused
2022-12-17 10:09:07,504 [159302947]   WARN - o.e.j.s.HttpChannel - handleException /flow_ui_designer-nsPaiRfBDmj2 java.net.ConnectException: Connection refused
2022-12-17 10:09:08,541 [159303984]   WARN - o.e.j.s.HttpChannel - handleException /flow_ui_designer-6g26WXS0vahz java.net.ConnectException: Connection refused
2022-12-17 10:09:09,920 [159305363]   WARN - o.e.j.s.HttpChannel - handleException /flow_ui_designer-lTRUfV3pnUL4 java.net.ConnectException: Connection refused
2022-12-17 10:09:14,128 [159309571]   WARN - o.e.j.s.HttpChannel - handleException /flow_ui_designer-rDNdCcMGsCfZ java.net.ConnectException: Connection refused
2022-12-17 10:09:16,076 [159311519]   WARN - o.e.j.s.HttpChannel - handleException /flow_ui_designer-cXeNAe6vXofv java.net.ConnectException: Connection refused
2022-12-17 10:09:16,678 [159312121]   INFO - STDERR - java.lang.NullPointerException: Cannot invoke "java.awt.GraphicsConfiguration.createCompatibleVolatileImage(int, int, int)" because the return value of "javax.swing.JComponent.getGraphicsConfiguration()" is null
2022-12-17 10:09:16,678 [159312121]   INFO - STDERR - 	at com.intellij.ui.jcef.JBCefOsrHandler.onPaint(JBCefOsrHandler.java:132)
2022-12-17 10:09:16,678 [159312121]   INFO - STDERR - 	at jcef/org.cef.CefClient.onPaint(CefClient.java:873)
2022-12-17 10:09:16,732 [159312175]   INFO - STDERR - java.lang.NullPointerException: Cannot invoke "java.awt.GraphicsConfiguration.createCompatibleVolatileImage(int, int, int)" because the return value of "javax.swing.JComponent.getGraphicsConfiguration()" is null
2022-12-17 10:09:16,733 [159312176]   INFO - STDERR - 	at com.intellij.ui.jcef.JBCefOsrHandler.onPaint(JBCefOsrHandler.java:132)
2022-12-17 10:09:16,733 [159312176]   INFO - STDERR - 	at jcef/org.cef.CefClient.onPaint(CefClient.java:873)
2022-12-17 10:09:16,799 [159312242]   INFO - STDERR - java.lang.NullPointerException: Cannot invoke "java.awt.GraphicsConfiguration.createCompatibleVolatileImage(int, int, int)" because the return value of "javax.swing.JComponent.getGraphicsConfiguration()" is null
2022-12-17 10:09:16,799 [159312242]   INFO - STDERR - 	at com.intellij.ui.jcef.JBCefOsrHandler.onPaint(JBCefOsrHandler.java:132)
2022-12-17 10:09:16,799 [159312242]   INFO - STDERR - 	at jcef/org.cef.CefClient.onPaint(CefClient.java:873)
2022-12-17 10:09:35,468 [159330911]   WARN - o.e.j.s.HttpChannel - handleException /flow_ui_designer-8NFDxSoftwyj java.net.ConnectException: Connection refused
2022-12-17 10:09:36,456 [159331899]   WARN - o.e.j.s.HttpChannel - handleException /flow_ui_designer-Sol0vV2yAfTw java.net.ConnectException: Connection refused
2022-12-17 10:09:37,736 [159333179]   WARN - o.e.j.s.HttpChannel - handleException /flow_ui_designer-BeSAJz624e7p java.net.ConnectException: Connection refused
2022-12-17 10:09:40,525 [159335968]   WARN - o.e.j.s.HttpChannel - handleException /flow_ui_designer-N8ZlM0I1gZtv java.net.ConnectException: Connection refused

Hi, Klaus,
In your video, you can see logs from the ‘Console’, which shows the logs of the frontend build. As you can see, you got an error when executing the ‘npm’ command.

Due to the fact that the frontend was not built, the entire vaadin UI could not be built either and the View Designer Preview has nothing to display (Also, the Component Hierarchy and Inspector will not be able to display correctly).

To find a solution to the problem, you need to attach logs from the console and identify what was the error when building the frontend.

Thank you for reporting,
Mikhail

Actually the problem here is that I don’t care about the preview, but it keeps poping up. Sorry that I didn’t clarify that before.

Ok, I got you. This is really wrong and annoying behavior.
The created issue is here: https://youtrack.jmix.io/issue/JST-3507/Broken-Preview-displays-always-after-editing-text.

1 Like