GPIO Expander stuck on MCP23008 + White Screen

You have a screen . . . ?

Luxury . . . . .

2 Likes

I’ve pulled ll the connections out the controller board and its still like it .

just looking at the UI log, the repeated errors i’m getting are…

Feb 13 15:11:40 zynthian startx[468]: ValueError: invalid literal for int() with base 16: ‘Cx7F00’
Feb 13 15:11:40 zynthian startx[468]: identify-im6.q16: unable to open image /zynthian/config/img/fb_zynthian_error.png': No such file or directory @ error/blob.c/OpenBlob/2701. Feb 13 15:11:40 zynthian startx[468]: identify-im6.q16: unable to open image /zynthian/config/img/fb_zynthian_error.png’: No such file or directory @ error/blob.c/OpenBlob/2701.
Feb 13 15:11:40 zynthian startx[468]: expr: syntax error
Feb 13 15:11:40 zynthian startx[468]: expr: syntax error
Feb 13 15:11:40 zynthian startx[468]: expr: syntax error

Sounds like it lacks the error screens, didn’t we get creative recently in this area. . .?

Are you uptodate on code?
Can you ssh…?

I flashed the SD around Monday so updated everything then, as well as installing reMID and Argotlunar2.
It seemed fine after that.

Could it be anything to do with the master channel being set to off, that’s the only other thing I’ve been changing after an update.

I can see this in the logs at the top:

Feb 13 15:22:12 zynthian startx[4001]: master_midi_program_change_up = int(’{:<06}’.format(mmpcu.replace(’#’,mmc_hex)),16)

The full list before it repeats is

  • Logs begin at Thu 2016-11-03 17:16:42 GMT. –
    Feb 13 15:22:12 zynthian startx[4001]: master_midi_program_change_up = int(’{:<06}’.format(mmpcu.replace(’#’,mmc_hex)),16)
    Feb 13 15:22:12 zynthian startx[4001]: ValueError: invalid literal for int() with base 16: ‘Cx7F00’
    Feb 13 15:22:12 zynthian startx[4001]: identify-im6.q16: unable to open image /zynthian/config/img/fb_zynthian_error.png': No such file or directory @ error/blob.c/OpenBlob/2701. Feb 13 15:22:12 zynthian startx[4001]: identify-im6.q16: unable to open image /zynthian/config/img/fb_zynthian_error.png’: No such file or directory @ error/blob.c/OpenBlob/2701.
    Feb 13 15:22:12 zynthian startx[4001]: expr: syntax error
    Feb 13 15:22:12 zynthian startx[4001]: expr: syntax error
    Feb 13 15:22:12 zynthian startx[4001]: expr: syntax error
    Feb 13 15:22:12 zynthian startx[4001]: convert-im6.q16: invalid argument for option `-pointsize’: -fill @ error/convert.c/ConvertImageCommand/2359.
    Feb 13 15:22:12 zynthian startx[4001]: /zynthian/config/img/fb_zynthian_error_ip.png: image not found
    Feb 13 15:22:12 zynthian startx[4001]: Building XImage…done
    Feb 13 15:22:16 zynthian startx[4001]: Traceback (most recent call last):
    Feb 13 15:22:16 zynthian startx[4001]: File “./zynthian_gui.py”, line 44, in
    Feb 13 15:22:16 zynthian startx[4001]: import zynautoconnect
    Feb 13 15:22:16 zynthian startx[4001]: File “/home/pi/zynthian-ui/zynautoconnect/init.py”, line 5, in
    Feb 13 15:22:16 zynthian startx[4001]: from zynautoconnect.zynthian_autoconnect import *
    Feb 13 15:22:16 zynthian startx[4001]: File “/home/pi/zynthian-ui/zynautoconnect/zynthian_autoconnect.py”, line 35, in
    Feb 13 15:22:16 zynthian startx[4001]: from zyngui import zynthian_gui_config
    Feb 13 15:22:16 zynthian startx[4001]: File “/home/pi/zynthian-ui/zyngui/init.py”, line 28, in
    Feb 13 15:22:16 zynthian startx[4001]: import zyngui.zynthian_gui_config as zynthian_gui_config
    Feb 13 15:22:16 zynthian startx[4001]: File “/home/pi/zynthian-ui/zyngui/zynthian_gui_config.py”, line 368, in
    Feb 13 15:22:16 zynthian startx[4001]: set_midi_config()
    Feb 13 15:22:16 zynthian startx[4001]: File “/home/pi/zynthian-ui/zyngui/zynthian_gui_config.py”, line 339, in set_midi_config
    Feb 13 15:22:16 zynthian startx[4001]: master_midi_program_change_up = int(’{:<06}’.format(mmpcu.replace(’#’,mmc_hex)),16)

Is the file /zynthian/config/img/fb_zynthian_error.png there …?
and what else is in that directory. . .?

I’ts not in mine either. . . .

image

OK , just changed the midi master channel back from OFF to 16 and the UI just popped back.
it’s working!

The zynth has become sentient.
It objects to it’s inherent right to grab one inband MIDI management channel being removed. :slight_smile:

could you make a ticket?

1 Like

My contents…

The UI log is empty now i’m back on Master 16#
And the GPIO Expander is back to normal

Zimg

And if you disable the master channel, it is broken again?

Just changed Master to NONE
Rebooted
White Screen after Zynthian Logo
In webconf: UI Log not showing any errors and GPIO reference is correct as MCP23017
Rebooted
same as above
Powered down and back up
White Screen after Zynthian logo
Webconf: UI Log Clean but GPIO now says MCP23008
Set Master to 16 in webconf
UI instantly appears and GPIO shows correct MCP23017

@jofemodo See the bug in the c code above

This one

I just commited a fix. Simply update and test.

Thanks!

1 Like

Thanks, i’ll try later after work.
I appreciate all your help looking at this, and even so quickly adding that setting in the first place.

Hi, I have a simmilar issue.

Yesterday everything honky dory, today it doesn’t boot into UI but I can play it and use webconf. After booting the Z I get the short logo screen and then nothing.

As I can also get into Z via ssh, could you be so kind telling me how to update from there? My search in the wiki failed. And I would to love to have it today for rehearsal…

Best,
Jimi

EDIT: is it this one?

cd /zynthian/zynthian-sys; git checkout .
   cd /zynthian/zynthian-ui; git checkout .
   cd /zynthian/zynthian-sys/scripts/
   ./update_zynthian.sh
   ./update_zynthian.sh #Yes twice - first run returns an error on a fresh installation
   ./update_zynthian_data.sh
   ./update_zynthian_recipes.sh
   ./update_zynthian_sys.sh

PROBLEM SOLVED:

there was a new Entry in the KIT dropdown: V3 PRO. After a reboot, I got my precious UI back.

Cheers,

3 Likes

@jofemodo
Looks to be good, updated > restarted > off > on
Thanks for the quick fix :+1:

1 Like

You only need:

update_zynthian.sh (once is enough)

Regards,

Hi!
I have a similar problem too. On new firmware, with all updates. After launch, it displays the zintian logo on the screen indicating the error. None of the settings help solve the problem.
The normal operation of the device is obtained on the firmware “2020-05-27-zynthianos-buster-lite-1.0.0-RC2” without updates. As soon as I launch updates or flash a new image, an error immediately occurs.
The only difference in settings with updates is GPIO Expander set to MCP23008.
And when it works then GPIO Expander is set to MCP23017.
Please, help to use the latest software. =)