IP error on testing release

Hi,
I have 2 custom zynthian boxes which were working fine on the testing branch up until approx.2 mos. ago. My zynthians are custom kits with Generic HDMI, direct encoder wiring to GPIO using A
=25,26,4,0 B=27,21,3,7 and SW=23,6,2,22 and HiFiBerry DAC/ADC Pro.

The boxes work fine on the stable release. When I select testing branch and update I receive a Cmake error on building zyncoder but it continues, not sure if it’s related.

The UI log after update has these errors:
Jan 23 15:58:04 zynthian startx[2857]: Building XImage…done
Jan 23 15:58:08 zynthian startx[2857]: ERROR:zynthian_gui_config.: ERROR configuring control I/O subsytem: ‘NoneType’ object has no attribute ‘get_num_zynswitches’
Jan 23 15:58:08 zynthian startx[2857]: libzynmixer: Registering as ‘zynmixer’.
Jan 23 15:58:08 zynthian startx[2857]: libzynmixer: Created input ports
Jan 23 15:58:08 zynthian startx[2857]: libzynmixer: Registered output ports
Jan 23 15:58:08 zynthian startx[2857]: libzynmixer: Activated client
Jan 23 15:58:11 zynthian startx[2857]: ERROR:zynthian_gui.init_midi: ERROR initializing MIDI : ‘NoneType’ object has no attribute ‘set_midi_filter_tuning_freq’
Jan 23 15:58:13 zynthian startx[2857]: Can’t init zyncore library: /home/pi/zyncoder/build/libzyncore.so: cannot open shared object file: No such file or directory
Jan 23 15:58:13 zynthian startx[2857]: New instance of zynseq
Jan 23 15:58:13 zynthian startx[2857]: zynseq initialising as zynthstep
Jan 23 15:58:13 zynthian startx[2857]: Traceback (most recent call last):
Jan 23 15:58:13 zynthian startx[2857]: File “./zynthian_gui.py”, line 2095, in
Jan 23 15:58:13 zynthian startx[2857]: zyngui.start()
Jan 23 15:58:13 zynthian startx[2857]: File “./zynthian_gui.py”, line 584, in start
Jan 23 15:58:13 zynthian startx[2857]: self.show_screen(‘main’)
Jan 23 15:58:13 zynthian startx[2857]: File “./zynthian_gui.py”, line 638, in show_screen
Jan 23 15:58:13 zynthian startx[2857]: self.hide_screens(exclude=screen)
Jan 23 15:58:13 zynthian startx[2857]: File “./zynthian_gui.py”, line 617, in hide_screens
Jan 23 15:58:13 zynthian startx[2857]: screen_obj.hide()
Jan 23 15:58:13 zynthian startx[2857]: File “/home/pi/zynthian-ui/zyngui/zynthian_gui_midi_key_range.py”, line 275, in hide
Jan 23 15:58:13 zynthian startx[2857]: lib_zyncore.set_midi_learning_mode(0)
Jan 23 15:58:13 zynthian startx[2857]: AttributeError: ‘NoneType’ object has no attribute ‘set_midi_learning_mode’
Jan 23 15:58:15 zynthian startx[2857]: /zynthian/config/img/fb_zynthian_error_ip.png is 1280x720 PNG image, color type RGB_ALPHA, 8 bit
Jan 23 15:58:15 zynthian startx[2857]: Zooming image by 50%…done
Jan 23 15:58:15 zynthian startx[2857]: Merging…done
Jan 23 15:58:15 zynthian startx[2857]: Building XImage…done

Here is the update build errors if you think that may be the issue:
/zynthian/zyncoder /zynthian/zyncoder
/zynthian/zyncoder/build /zynthian/zyncoder /zynthian/zyncoder
++ Defined HAVE_WIRINGPI_LIB
++ Defined MCP23008_ENCODERS
++ Building for Wiring Layout CUSTOM
++ Using wiringPi
– Configuring done
– Generating done
– Build files have been written to: /zynthian/zyncoder/build
[ 9%] Building C object CMakeFiles/zyncore.dir/zyncoder.c.o
/zynthian/zyncoder/zyncoder.c: In function ‘update_expanded_zynswitches’:
/zynthian/zyncoder/zyncoder.c:608:23: error: ‘zynswitch’ undeclared (first use in this function); did you mean ‘zynswitches’?
send_zynswitch_midi(zynswitch, status);
^~~~~~~~~
zynswitches
/zynthian/zyncoder/zyncoder.c:608:23: note: each undeclared identifier is reported only once for each function it appears in
make[2]: *** [CMakeFiles/zyncore.dir/build.make:128: CMakeFiles/zyncore.dir/zyncoder.c.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:105: CMakeFiles/zyncore.dir/all] Error 2
make: *** [Makefile:130: all] Error 2
/zynthian/zyncoder /zynthian/zyncoder
/zynthian/zyncoder

Anything you can do to help would be greatly appreciated, I was just getting into playing around with the zynmixer and the other new features when this happened. I am happy with the stable release but my fear is that eventually the testing release goes stable and breaks my zynthians for good!

1 Like

Looks like a bug that might be triggered by your specific usecase. I think you should register this as a bug in the Zynthian issue tracker, if you have not already done so:

1 Like

Thanks, yeah it appears to be a bug because the behavior is the same in both my boxes with similar configs., issue ticket #597 has been created. Hopefully it can be reproduced and tracked down.

1 Like

Hi @somervid111!

I think i solved the problem. Please update and test.

Regards,

Hi,
Thanks for the prompt response but I just switched to testing repos and updated. Same behaviour no change. Same errors.

Thanks,