Configuration Problem #131
Replies: 8 comments 11 replies
-
Hm. Can't tell right now. You just modified your configuration.yaml? Can you upload your file? |
Beta Was this translation helpful? Give feedback.
-
Does undoing your simple config changes allow the app to work again or is it still broken in that case (trying to see if you may have inadvertently changed something else)? And, as @helgeerbe mentioned, having access to your modified config might be helpful. |
Beta Was this translation helpful? Give feedback.
-
This does seem an odd error. I can't see anything wrong with the configuration usage: I just tried all four permutations PS there did used to be a perennial glGetError 501 but I thought that had been patched up now. |
Beta Was this translation helpful? Give feedback.
-
I'm curious... What are the resolutions of the failing images and maybe the resolution of your frame's display panel? |
Beta Was this translation helpful? Give feedback.
-
Something else to try might be to resize the images so their longest side is 1920. While that shouldn't be required, it might give us another data point... |
Beta Was this translation helpful? Give feedback.
-
Well I'm not really sure what causes the problem but texture2d lookup basically uses the UV coordinates which map 0.0 to 1.0 across the texture. The behaviour at the edges can be either clamp, wrap or reflect but it's not changed by changing So I'm wondering if it's the resizing done by the mat system that was stopping the error. The latest version of pi3d checkes for max texture size here and this should be used to resize the texture, or if the dimensions are not a multiple of 4... but looking at the code here I think the I will fix the code and test and re-issue it tomorrow. PS - you can probably tell by the thread of this post that I gradually worked my way through the code and found things as I went! |
Beta Was this translation helpful? Give feedback.
-
Hopefully tipam/pi3d@77b0920 will have fixed this. You should be able to $ pip3 install pi3d --upgrade Let me know if there are any untoward consequences - or if it doesn't fix the actual problem here. Paddy |
Beta Was this translation helpful? Give feedback.
-
First, thanks to the authors for a great program!
I am hoping for some help getting started. Here is my situation:
time_delay: 15.0
fade_time: 5.0
The program worked as expected. The matte looks great, but I want to experiment without mattes and with changing the fit. I modified configuration.yaml as follows:
mat_images: False
fit: True
When I then run picframe from SSH, I get various errors:
First attempt - no images are rendered, but the screen text info cycles (Title Caption Date, etc):
INFO:start.py:starting ['/home/pi/.local/bin/picframe']
INFO:model.Model:Open config file: /home/pi/picframe_data/config/configuration.yaml:
glGetError 0x501
WARNING:viewer_display.ViewerDisplay:Can't create tex from file: "/home/pi/Pictures/Lake Mascoma NH.jpg" or "None"
WARNING:viewer_display.ViewerDisplay:Cause: name 'new_x' is not defined
WARNING:viewer_display.ViewerDisplay:Can't create tex from file: "/home/pi/Pictures/IMG_20180127_113333.jpg" or "None"
WARNING:viewer_display.ViewerDisplay:Cause: name 'new_x' is not defined
glGetError 0x501
WARNING:viewer_display.ViewerDisplay:Can't create tex from file: "/home/pi/Pictures/IMG_20180128_221054.jpg" or "None"
WARNING:viewer_display.ViewerDisplay:Cause: name 'new_x' is not defined
WARNING:viewer_display.ViewerDisplay:Can't create tex from file: "/home/pi/Pictures/IMG_0159.jpg" or "None"
WARNING:viewer_display.ViewerDisplay:Cause: name 'new_x' is not defined
Another attempt - the program stops with no images rendered and no screen text:
INFO:start.py:starting ['/home/pi/.local/bin/picframe']
INFO:model.Model:Open config file: /home/pi/picframe_data/config/configuration.yaml:
WARNING:viewer_display.ViewerDisplay:Can't create tex from file: "/home/pi/Pictures/IMG_0159.jpg" or "None"
WARNING:viewer_display.ViewerDisplay:Cause: name 'new_x' is not defined
Traceback (most recent call last):
File "/home/pi/.local/bin/picframe", line 10, in
sys.exit(main())
File "/home/pi/.local/lib/python3.7/site-packages/picframe/start.py", line 157, in main
c.loop()
File "/home/pi/.local/lib/python3.7/site-packages/picframe/controller.py", line 296, in loop
(loop_running, skip_image) = self.__viewer.slideshow_is_running(pics, time_delay, fade_time, self.__paused)
File "/home/pi/.local/lib/python3.7/site-packages/picframe/viewer_display.py", line 435, in slideshow_is_running
wh_rat = (self.__display.width * self.__sfg.iy) / (self.__display.height * self.__sfg.ix)
AttributeError: 'NoneType' object has no attribute 'iy'
Do I have a setup problem or am I misunderstanding how to use configuration.yaml?
Any help would be most appreciated.
Beta Was this translation helpful? Give feedback.
All reactions