MODSDK Error: Can't generate thumbnail

Error: Can’t generate thumbnail. Is your server running? Check the logs.

This seems to happen with latest git of the sdk too. I thought it was because I hadn’t build for the arm yet, but it doesn’t work when I do that either.

Here’s what the terminal running modsdk says:

Fontconfig warning: “/etc/fonts/conf.d/65-ttf-sil-andika.conf”, line 14: Having multiple values in isn’t supported and may not work as expected
Fontconfig warning: “/etc/fonts/conf.d/65-ttf-sil-andika.conf”, line 32: Having multiple in isn’t supported and may not work as expected
Fontconfig warning: “/etc/fonts/conf.d/65-ttf-sil-andika.conf”, line 32: Having multiple in isn’t supported and may not work as expected
Fontconfig warning: “/etc/fonts/conf.d/65-ttf-sil-andika.conf”, line 32: Having multiple in isn’t supported and may not work as expected
Fontconfig warning: “/etc/fonts/conf.d/65-ttf-sil-andika.conf”, line 32: Having multiple in isn’t supported and may not work as expected
Fontconfig warning: “/etc/fonts/conf.d/65-ttf-sil-andika.conf”, line 32: Having multiple in isn’t supported and may not work as expected
Fontconfig warning: “/etc/fonts/conf.d/65-ttf-sil-andika.conf”, line 32: Having multiple in isn’t supported and may not work as expected
Fontconfig warning: “/etc/fonts/conf.d/65-ttf-sil-andika.conf”, line 32: Having multiple in isn’t supported and may not work as expected
ERROR:tornado.application:Uncaught exception GET /screenshot?uri=http%3A%2F%2Fssj71.github.io%2FinfamousPlugins%2Fplugs.html%23stuck&width=241&height=380 (::1)
HTTPServerRequest(protocol=‘http’, host=‘localhost:9000’, method=‘GET’, uri=’/screenshot?uri=http%3A%2F%2Fssj71.github.io%2FinfamousPlugins%2Fplugs.html%23stuck&width=241&height=380’, version=‘HTTP/1.1’, remote_ip=’::1’, headers={‘Accept-Encoding’: ‘gzip, deflate’, ‘X-Requested-With’: ‘XMLHttpRequest’, ‘Accept-Language’: ‘en-US,en;q=0.5’, ‘Referer’: ‘http://localhost:9000/’, ‘Host’: ‘localhost:9000’, ‘Accept’: ‘application/json, text/javascript, /; q=0.01’, ‘Connection’: ‘keep-alive’, ‘User-Agent’: ‘Mozilla/5.0 (X11; Ubuntu; Linux i686; rv:50.0) Gecko/20100101 Firefox/50.0’})
Traceback (most recent call last):
File “/usr/lib/python3/dist-packages/tornado/web.py”, line 1369, in _stack_context_handle_exception
raise_exc_info((type, value, traceback))
File “”, line 3, in raise_exc_info
File “/usr/lib/python3/dist-packages/tornado/stack_context.py”, line 314, in wrapped
ret = fn(*args, **kwargs)
File “/usr/lib/python3/dist-packages/modsdk/webserver.py”, line 389, in proc_callback
self.handle_image(fh)
File “/usr/lib/python3/dist-packages/modsdk/webserver.py”, line 395, in handle_image
screenshot_path = self.data[‘gui’][‘screenshot’]
KeyError: 'screenshot’
ERROR:tornado.access:500 GET /screenshot?uri=http%3A%2F%2Fssj71.github.io%2FinfamousPlugins%2Fplugs.html%23stuck&width=241&height=380 (::1) 5539.30ms

I could make my own shots, but they probably won’t be quite as clean, so help would be appreciated.

I can generate the screenshots for you before publishing the plugin in the cloud store, so at least that is not an issue.

Does the plugin uri uses ‘#’ character?
We had some reports of some things not working for such plugins, but I couldn’t reproduce it yet.

yes nearly all my plugins use # in the URI.

After testing I found that the burst of calculation in stuck causes xruns if you have very many plugs on the board, so I’m going to try to fix that before I publish the first ones, but I’ll ping you on IRC when its ready.

This bites me to, but, there is a fix patch for this by Robin provided here:

works very well.

I should probably know this by know but once apt-get has installed a python program like mod-sdk where are the other scripts its running? The script in /usr/bin just calls a load_entry_point.

dpkg -L mod-sdk will tell you :wink:

hmm, tried it today straight from the git repo, added Rob’s fix, run the server
and still doesn’t work. :frowning:

It might be because your plugin metadata is missing the modgui:screenshot/thumbnail definitions :wink:

I didn’t expect that I had to point it to files that don’t exist yet to create the files that I’m going to point it to…