Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Quits with segmentation fault #79

Closed
KDPate opened this issue Mar 19, 2021 · 7 comments
Closed

Quits with segmentation fault #79

KDPate opened this issue Mar 19, 2021 · 7 comments
Labels
bug Something isn't working

Comments

@KDPate
Copy link

KDPate commented Mar 19, 2021

Running on a Pi 4 pulling pics off off of a samba share on another pi. It works fine for a few pics (unclear how many at this point, maybe 10?) and the quits with a "segmentation fault" Below is literally everything that is shown in the terminal.

pi@raspberrypi4:~ $ picframe ~/picframe_data/config/configuration.yaml
INFO:start.py:starting ['/usr/local/bin/picframe', '/home/pi/picframe_data/config/configuration.yaml']
INFO:model.Model:Open config file: /home/pi/picframe_data/config/configuration.yaml:
Segmentation fault

Any ideas what is happening or for further troubleshooting? Need more details?
Thanks!

@jgodfrey
Copy link
Collaborator

I don't know that it'll be helpful, but do you see any more info in the terminal if you turn on DEBUG level logging? To do that, edit the configuration.yaml file and set the log_level property to "DEBUG".

Additionally, I wonder what happens if you limit the set of images to something that you know displays correctly. So, for instance, the 10 or so you see before it seg-faults. Is it able to show that set of images repetitively or does that also seg-fault?

@jgodfrey
Copy link
Collaborator

One more thought, does it work correctly if the images are on the local RPi? Really, just trying to narrow down the problem...

@paddywwoof
Copy link
Collaborator

seg fault not good. Can you tell what size the images are that might cause the crash. Aslo what memory split you have GPU/CPU

@KDPate
Copy link
Author

KDPate commented Mar 19, 2021

A 2G Raspberry Pi 4, 256M assigned to GPU.
Seg faults on a different file each time.
The size of the pics causing the fault is not consistent. One 2 meg file did it, another 600k file did it. File size averages 2 meg, biggest is 5 meg.

Logging show this:
........INFO:interface_mqtt.InterfaceMQTT:Send state: {'directory': 'picframe', 'image_counter': '45', 'image': 'IMG_4028-COLLAGE.jpg', 'date_from': -2147356800, 'date_to': 2145945600, 'time_delay': 30.0, 'fade_time': 8.0, 'brightness': 1.0, 'location_filter': '', 'tags_filter': ''}
DEBUG:pi3d.util.Loadable:init: <pi3d.Texture.Texture object at 0xaddc5970>
DEBUG:pi3d.Texture:Loading ...PIL.Image (RGB)
Segmentation fault

Will try local files only. Will try limited file set.
Thanks

@paddywwoof
Copy link
Collaborator

It sounds like an issue Jeff had a while ago pi3d/pi3d_demos#52 are any of those features relevant? Critically turning off resize

@helgeerbe helgeerbe added the bug Something isn't working label Mar 20, 2021
@KDPate
Copy link
Author

KDPate commented Mar 20, 2021

That was exactly the problem.
auto_resize: True
and the seg faults have stopped. Thanks for the pointer and I should have done a better job of searching for previous reports of the issue!

@KDPate KDPate closed this as completed Mar 20, 2021
@paddywwoof
Copy link
Collaborator

I'm a bit behind hand with the FAQ - there are a few things that need to go in and maybe that would help questions pop up on google.

Anyway, glad you sorted it. But it does mean there is a lack of flexibility in so far as you either need to just show 4k images that have been resized to the correct dimensions with resize off or else have mixed images and keep resize on. Maybe I should make it so that you can do something like:

  auto_resize_if_width_not: 3840                       # default=1920, set this width of 4K resolution on Raspberry Pi 4 *if* using an Pi 4 *and* you have resized 4k images to match this width.

Need to think about this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants