Can't use VNC [SOLVED!]

Until recently we had an issue with apt upgrade breaking Zynthian. Some testing today may have shown this is fixed but until we are sure it is best avoided.

I have dual VNC working nicely on my test unit. I need to finish off the update scripts and UI / webconf integration. I might have done it today had I not been entertaining a fellow Zynthianier. Maybe tomorrow. I was initially quite resistive to VNC but am now pretty happy with its behaviour in Zynthian.

1 Like

Sounds like you might be solving one or more of my pain points! Please let me know when I can help test your updates.

I have implemented this in development branches. I will submit a PR today so that the changes can be reviewed, issues resolved and merged into Testing. Let’s hope I did a good enough job for this to happen swiftly :grinning_face_with_smiling_eyes:

Those using the Testing branch may now update and enjoy VNC access to the main UI and the secondary display for engine GUIs. Links to web based VNC access have moved to the “Interface” menu of webconf. VNC ports are 5900 & 5901.

Please test and report success / issues to give us confidence to release in next stable update.

5 Likes

I have a raspi3
i downloaded the image today. I activated vncserver in the UI menu and got a vnc screen on port 5901.
then i made software Update, activated testing repositorys and made Softwareupdate again.

Now i got two vnc screens. But on Number one o got a error message.
grafik

Any Idea where to look for a specific Error message?
Which Displaytype to choose?

regards Jens

We need the UI log. You can get it from “webconf->interface->UI log”.

Have you tried “Generic HDMI” ?

Regards,

Changed to generic HDMI. Still Error. Here is the Log.

-- Logs begin at Sun 2021-05-23 20:13:18 BST.
May 23 21:15:17 zynthian startx[791]: lilv_world_load_bundle(): warning: Replacing version 2071.7 of <http://gareus.org/oss/lv2/b_whirl#extended> from <file:///zynthian/zynthian-plugins/lv2/b_whirl.lv2/>
May 23 21:15:17 zynthian startx[791]: lilv_world_load_bundle(): note: New version 2071.11 found in <file:///zynthian/zynthian-plugins/lv2/b_whirl/>
May 23 21:15:17 zynthian startx[791]: lilv_world_load_bundle(): warning: Replacing version 2071.7 of <http://gareus.org/oss/lv2/b_whirl#simple> from <file:///zynthian/zynthian-plugins/lv2/b_whirl.lv2/>
May 23 21:15:17 zynthian startx[791]: lilv_world_load_bundle(): note: New version 2071.11 found in <file:///zynthian/zynthian-plugins/lv2/b_whirl/>
May 23 21:15:17 zynthian startx[791]: lilv_world_load_bundle(): warning: Ignoring bundle <file:///zynthian/zynthian-plugins/lv2/b_synth.lv2/>
May 23 21:15:17 zynthian startx[791]: lilv_world_load_bundle(): note: Newer version of <http://gareus.org/oss/lv2/b_synth> loaded from <file:///zynthian/zynthian-plugins/lv2/b_synth/>
May 23 21:15:22 zynthian startx[791]: ERROR:zynthian_gui.__init__: ERROR initializing jackpeak: 'NoneType' object has no attribute 'setDecay'
May 23 21:15:25 zynthian startx[791]: ERROR:zynthian_gui.init_midi: ERROR initializing MIDI : 'NoneType' object has no attribute 'set_midi_filter_tuning_freq'
May 23 21:15:25 zynthian startx[791]: WARNING:zynthian_autoconnect.cb_jack_xrun: Jack Audio XRUN!
May 23 21:15:25 zynthian startx[791]: WARNING:zynthian_autoconnect.cb_jack_xrun: Jack Audio XRUN!
May 23 21:15:26 zynthian startx[791]: WARNING:zynthian_autoconnect.cb_jack_xrun: Jack Audio XRUN!
May 23 21:15:26 zynthian startx[791]: WARNING:zynthian_autoconnect.cb_jack_xrun: Jack Audio XRUN!
May 23 21:15:27 zynthian startx[791]: WARNING:zynthian_autoconnect.cb_jack_xrun: Jack Audio XRUN!
May 23 21:15:28 zynthian startx[791]: WARNING:zynthian_autoconnect.cb_jack_xrun: Jack Audio XRUN!
May 23 21:15:29 zynthian startx[791]: Can't init jackpeak library: /home/pi/zynthian-ui/zynlibs/jackpeak/build/libjackpeak.so: cannot open shared object file: No such file or directory
May 23 21:15:29 zynthian startx[791]: Can't init zyncoder library: /home/pi/zyncoder/build/libzyncoder.so: cannot open shared object file: No such file or directory
May 23 21:15:29 zynthian startx[791]: Traceback (most recent call last):
May 23 21:15:29 zynthian startx[791]: File "./zynthian_gui.py", line 1761, in <module>
May 23 21:15:29 zynthian startx[791]: zyngui.start()
May 23 21:15:29 zynthian startx[791]: File "./zynthian_gui.py", line 383, in start
May 23 21:15:29 zynthian startx[791]: self.show_screen('main')
May 23 21:15:29 zynthian startx[791]: File "./zynthian_gui.py", line 429, in show_screen
May 23 21:15:29 zynthian startx[791]: self.hide_screens(exclude=screen)
May 23 21:15:29 zynthian startx[791]: File "./zynthian_gui.py", line 415, in hide_screens
May 23 21:15:29 zynthian startx[791]: screen_obj.hide()
May 23 21:15:29 zynthian startx[791]: File "/home/pi/zynthian-ui/zyngui/zynthian_gui_midi_key_range.py", line 276, in hide
May 23 21:15:29 zynthian startx[791]: zyncoder.lib_zyncoder.set_midi_learning_mode(0)
May 23 21:15:29 zynthian startx[791]: AttributeError: 'NoneType' object has no attribute 'set_midi_learning_mode'
May 23 21:15:32 zynthian startx[791]: PNG file: /zynthian/config/img/fb_zynthian_error_ip.png - Application must supply a known background gamma
May 23 21:15:32 zynthian startx[791]: /zynthian/config/img/fb_zynthian_error_ip.png is 720x480 PNG image, color type RGB_ALPHA, 8 bit, file gamma 0.4546
May 23 21:15:32 zynthian startx[791]: Zooming image by 100%...done
May 23 21:15:32 zynthian startx[791]: Merging...done
May 23 21:15:32 zynthian startx[791]: Building XImage...done
May 23 21:15:41 zynthian startx[791]: lilv_world_load_bundle(): warning: Replacing version 2071.7 of <http://gareus.org/oss/lv2/b_whirl#extended> from <file:///zynthian/zynthian-plugins/lv2/b_whirl.lv2/>
May 23 21:15:41 zynthian startx[791]: lilv_world_load_bundle(): note: New version 2071.11 found in <file:///zynthian/zynthian-plugins/lv2/b_whirl/>
May 23 21:15:41 zynthian startx[791]: lilv_world_load_bundle(): warning: Replacing version 2071.7 of <http://gareus.org/oss/lv2/b_whirl#simple> from <file:///zynthian/zynthian-plugins/lv2/b_whirl.lv2/>
May 23 21:15:41 zynthian startx[791]: lilv_world_load_bundle(): note: New version 2071.11 found in <file:///zynthian/zynthian-plugins/lv2/b_whirl/>
May 23 21:15:41 zynthian startx[791]: lilv_world_load_bundle(): warning: Ignoring bundle <file:///zynthian/zynthian-plugins/lv2/b_synth.lv2/>
May 23 21:15:41 zynthian startx[791]: lilv_world_load_bundle(): note: Newer version of <http://gareus.org/oss/lv2/b_synth> loaded from <file:///zynthian/zynthian-plugins/lv2/b_synth/>
May 23 21:15:46 zynthian startx[791]: ERROR:zynthian_gui.__init__: ERROR initializing jackpeak: 'NoneType' object has no attribute 'setDecay'
May 23 21:15:49 zynthian startx[791]: ERROR:zynthian_gui.init_midi: ERROR initializing MIDI : 'NoneType' object has no attribute 'set_midi_filter_tuning_freq'
May 23 21:15:49 zynthian startx[791]: WARNING:zynthian_autoconnect.cb_jack_xrun: Jack Audio XRUN!
May 23 21:15:50 zynthian startx[791]: WARNING:zynthian_autoconnect.cb_jack_xrun: Jack Audio XRUN!
May 23 21:15:50 zynthian startx[791]: WARNING:zynthian_autoconnect.cb_jack_xrun: Jack Audio XRUN!
May 23 21:15:51 zynthian startx[791]: WARNING:zynthian_autoconnect.cb_jack_xrun: Jack Audio XRUN!
May 23 21:15:52 zynthian startx[791]: WARNING:zynthian_autoconnect.cb_jack_xrun: Jack Audio XRUN!
May 23 21:15:53 zynthian startx[791]: Can't init jackpeak library: /home/pi/zynthian-ui/zynlibs/jackpeak/build/libjackpeak.so: cannot open shared object file: No such file or directory
May 23 21:15:53 zynthian startx[791]: Can't init zyncoder library: /home/pi/zyncoder/build/libzyncoder.so: cannot open shared object file: No such file or directory
May 23 21:15:53 zynthian startx[791]: Traceback (most recent call last):
May 23 21:15:53 zynthian startx[791]: File "./zynthian_gui.py", line 1761, in <module>
May 23 21:15:53 zynthian startx[791]: zyngui.start()
May 23 21:15:53 zynthian startx[791]: File "./zynthian_gui.py", line 383, in start
May 23 21:15:53 zynthian startx[791]: self.show_screen('main')
May 23 21:15:53 zynthian startx[791]: File "./zynthian_gui.py", line 429, in show_screen
May 23 21:15:53 zynthian startx[791]: self.hide_screens(exclude=screen)
May 23 21:15:53 zynthian startx[791]: File "./zynthian_gui.py", line 415, in hide_screens
May 23 21:15:53 zynthian startx[791]: screen_obj.hide()
May 23 21:15:53 zynthian startx[791]: File "/home/pi/zynthian-ui/zyngui/zynthian_gui_midi_key_range.py", line 276, in hide
May 23 21:15:53 zynthian startx[791]: zyncoder.lib_zyncoder.set_midi_learning_mode(0)
May 23 21:15:53 zynthian startx[791]: AttributeError: 'NoneType' object has no attribute 'set_midi_learning_mode'
May 23 21:15:55 zynthian startx[791]: PNG file: /zynthian/config/img/fb_zynthian_error_ip.png - Application must supply a known background gamma
May 23 21:15:55 zynthian startx[791]: /zynthian/config/img/fb_zynthian_error_ip.png is 720x480 PNG image, color type RGB_ALPHA, 8 bit, file gamma 0.4546
May 23 21:15:55 zynthian startx[791]: Zooming image by 100%...done
May 23 21:15:56 zynthian startx[791]: Merging...done
May 23 21:15:56 zynthian startx[791]: Building XImage...done
May 23 21:16:05 zynthian startx[791]: lilv_world_load_bundle(): warning: Replacing version 2071.7 of <http://gareus.org/oss/lv2/b_whirl#extended> from <file:///zynthian/zynthian-plugins/lv2/b_whirl.lv2/>
May 23 21:16:05 zynthian startx[791]: lilv_world_load_bundle(): note: New version 2071.11 found in <file:///zynthian/zynthian-plugins/lv2/b_whirl/>
May 23 21:16:05 zynthian startx[791]: lilv_world_load_bundle(): warning: Replacing version 2071.7 of <http://gareus.org/oss/lv2/b_whirl#simple> from <file:///zynthian/zynthian-plugins/lv2/b_whirl.lv2/>
May 23 21:16:05 zynthian startx[791]: lilv_world_load_bundle(): note: New version 2071.11 found in <file:///zynthian/zynthian-plugins/lv2/b_whirl/>
May 23 21:16:05 zynthian startx[791]: lilv_world_load_bundle(): warning: Ignoring bundle <file:///zynthian/zynthian-plugins/lv2/b_synth.lv2/>
May 23 21:16:05 zynthian startx[791]: lilv_world_load_bundle(): note: Newer version of <http://gareus.org/oss/lv2/b_synth> loaded from <file:///zynthian/zynthian-plugins/lv2/b_synth/>
May 23 21:16:09 zynthian startx[791]: ERROR:zynthian_gui.__init__: ERROR initializing jackpeak: 'NoneType' object has no attribute 'setDecay'
May 23 21:16:13 zynthian startx[791]: ERROR:zynthian_gui.init_midi: ERROR initializing MIDI : 'NoneType' object has no attribute 'set_midi_filter_tuning_freq'
May 23 21:16:16 zynthian startx[791]: Can't init jackpeak library: /home/pi/zynthian-ui/zynlibs/jackpeak/build/libjackpeak.so: cannot open shared object file: No such file or directory
May 23 21:16:16 zynthian startx[791]: Can't init zyncoder library: /home/pi/zyncoder/build/libzyncoder.so: cannot open shared object file: No such file or directory
May 23 21:16:16 zynthian startx[791]: Traceback (most recent call last):
May 23 21:16:16 zynthian startx[791]: File "./zynthian_gui.py", line 1761, in <module>
May 23 21:16:16 zynthian startx[791]: zyngui.start()
May 23 21:16:16 zynthian startx[791]: File "./zynthian_gui.py", line 383, in start
May 23 21:16:16 zynthian startx[791]: self.show_screen('main')
May 23 21:16:16 zynthian startx[791]: File "./zynthian_gui.py", line 429, in show_screen
May 23 21:16:16 zynthian startx[791]: self.hide_screens(exclude=screen)
May 23 21:16:16 zynthian startx[791]: File "./zynthian_gui.py", line 415, in hide_screens
May 23 21:16:16 zynthian startx[791]: screen_obj.hide()
May 23 21:16:16 zynthian startx[791]: File "/home/pi/zynthian-ui/zyngui/zynthian_gui_midi_key_range.py", line 276, in hide
May 23 21:16:16 zynthian startx[791]: zyncoder.lib_zyncoder.set_midi_learning_mode(0)
May 23 21:16:16 zynthian startx[791]: AttributeError: 'NoneType' object has no attribute 'set_midi_learning_mode'
May 23 21:16:19 zynthian startx[791]: PNG file: /zynthian/config/img/fb_zynthian_error_ip.png - Application must supply a known background gamma
May 23 21:16:19 zynthian startx[791]: /zynthian/config/img/fb_zynthian_error_ip.png is 720x480 PNG image, color type RGB_ALPHA, 8 bit, file gamma 0.4546
May 23 21:16:19 zynthian startx[791]: Zooming image by 100%...done
May 23 21:16:19 zynthian startx[791]: Merging...done
May 23 21:16:19 zynthian startx[791]: Building XImage...done
May 23 21:16:28 zynthian startx[791]: lilv_world_load_bundle(): warning: Replacing version 2071.7 of <http://gareus.org/oss/lv2/b_whirl#extended> from <file:///zynthian/zynthian-plugins/lv2/b_whirl.lv2/>
May 23 21:16:28 zynthian startx[791]: lilv_world_load_bundle(): note: New version 2071.11 found in <file:///zynthian/zynthian-plugins/lv2/b_whirl/>
May 23 21:16:28 zynthian startx[791]: lilv_world_load_bundle(): warning: Replacing version 2071.7 of <http://gareus.org/oss/lv2/b_whirl#simple> from <file:///zynthian/zynthian-plugins/lv2/b_whirl.lv2/>
May 23 21:16:28 zynthian startx[791]: lilv_world_load_bundle(): note: New version 2071.11 found in <file:///zynthian/zynthian-plugins/lv2/b_whirl/>
May 23 21:16:28 zynthian startx[791]: lilv_world_load_bundle(): warning: Ignoring bundle <file:///zynthian/zynthian-plugins/lv2/b_synth.lv2/>
May 23 21:16:28 zynthian startx[791]: lilv_world_load_bundle(): note: Newer version of <http://gareus.org/oss/lv2/b_synth> loaded from <file:///zynthian/zynthian-plugins/lv2/b_synth/>
May 23 21:16:33 zynthian startx[791]: ERROR:zynthian_gui.__init__: ERROR initializing jackpeak: 'NoneType' object has no attribute 'setDecay'
May 23 21:16:36 zynthian startx[791]: ERROR:zynthian_gui.init_midi: ERROR initializing MIDI : 'NoneType' object has no attribute 'set_midi_filter_tuning_freq'
May 23 21:16:40 zynthian startx[791]: Can't init jackpeak library: /home/pi/zynthian-ui/zynlibs/jackpeak/build/libjackpeak.so: cannot open shared object file: No such file or directory
May 23 21:16:40 zynthian startx[791]: Can't init zyncoder library: /home/pi/zyncoder/build/libzyncoder.so: cannot open shared object file: No such file or directory
May 23 21:16:40 zynthian startx[791]: Traceback (most recent call last):
May 23 21:16:40 zynthian startx[791]: File "./zynthian_gui.py", line 1761, in <module>
May 23 21:16:40 zynthian startx[791]: zyngui.start()
May 23 21:16:40 zynthian startx[791]: File "./zynthian_gui.py", line 383, in start
May 23 21:16:40 zynthian startx[791]: self.show_screen('main')
May 23 21:16:40 zynthian startx[791]: File "./zynthian_gui.py", line 429, in show_screen
May 23 21:16:40 zynthian startx[791]: self.hide_screens(exclude=screen)
May 23 21:16:40 zynthian startx[791]: File "./zynthian_gui.py", line 415, in hide_screens
May 23 21:16:40 zynthian startx[791]: screen_obj.hide()
May 23 21:16:40 zynthian startx[791]: File "/home/pi/zynthian-ui/zyngui/zynthian_gui_midi_key_range.py", line 276, in hide
May 23 21:16:40 zynthian startx[791]: zyncoder.lib_zyncoder.set_midi_learning_mode(0)
May 23 21:16:40 zynthian startx[791]: AttributeError: 'NoneType' object has no attribute 'set_midi_learning_mode'
May 23 21:16:43 zynthian startx[791]: PNG file: /zynthian/config/img/fb_zynthian_error_ip.png - Application must supply a known background gamma
May 23 21:16:43 zynthian startx[791]: /zynthian/config/img/fb_zynthian_error_ip.png is 720x480 PNG image, color type RGB_ALPHA, 8 bit, file gamma 0.4546
May 23 21:16:43 zynthian startx[791]: Zooming image by 100%...done
May 23 21:16:43 zynthian startx[791]: Merging...done
May 23 21:16:43 zynthian startx[791]: Building XImage...done  --

Your problem seems to be this one:

And the solution should be the same :wink:

Regards,

Thanks riban, jofemodo, et al. After failing all day to get the UI’s through X11 on both a Ubuntu system and a Mac , I switched to the test branch in the Web Configuration Tool and updated. Looks like both the Zynthian screen and the individual UI’s are available on a Mac Mini M1 using the built-in VNC app, Screen Sharing. (Enable VNC server on the Zynthian, then Connect to: zynthian.local:5900 then zynthian.local:5901 from the Connection>New menu.) Still too much of a total noob to attest to further functionality, but I’m relieved. There’s a double cursor arrow after I scale the individual UI’s though.

HARDWARE

Raspberry Pi 4 Model B Rev 1.4
Soundcard: HifiBerry DAC+ ADC PRO
Display: ZynScreen 3.5 (v1)
Wiring: MCP23017_ZynScreen
GPIO Expander: MCP23017

SYSTEM

Raspbian GNU/Linux 10 (buster)
Build Date: 2020-09-05
Memory: 3% (314M/7966M)
SD Card: 35% (9.7G/29G)
Temperature: 55.0ºC

MIDI

Profile: default.sh
Fine Tuning: 440 Hz
Master Channel: 16
Single Active Channel: on
ZS3 SubSnapShots: on

SOFTWARE

zyncoder: testing (26ffaed)
zynthian-ui: testing (1596363)
zynthian-sys: testing (7e97cd1)
zynthian-data: testing (315390c)
zynthian-webconf: testing (eb8aae9)

LIBRARY

Snapshots: 2
User Presets: 5
User Soundfonts: 0
Audio Captures: 0
MIDI Captures: 0

NETWORK

Hostname: zynthian
Wifi: off
IP:
RTP-MIDI: off
QMidiNet: off

Hi @AndyV

If I connect to either display with VNC Viewer on Windows 10 client I don’t see this issue. Soe viewers allow control over use of local / remote pointer display. You may find an option in the viewer. In Zynthian webconf Interface->UI Options with “Advanced view” enabled there is an option to toggle the cursor on the Zynthian display. Disabling this might help. If you are still stuck with duplicate cursors, some viewers allow manual synchronisation of pointers. I haven’t seen the effect for many years but it used to be a real pain - especially when the wrong cursor was disabled leaving the misaligned one.

Thanks again @riban ,
The options and both ends don’t seem to fix the double cursor in the Mac app, but it doesn’t really matter since the VNC client you’ve clearly added to the webconf tool (as you posted previously and I failed to register) is way niftier anyway. Thanks for, ahem, double pointing me to it.

1 Like