Giter Site home page Giter Site logo

Comments (29)

LukeSkywalker92 avatar LukeSkywalker92 commented on May 28, 2024

Can you please attach the complete logs? And please add some infos about your hardware.

from teleframe.

nautical-miles avatar nautical-miles commented on May 28, 2024

Here are the both log files I could find.
TeleFrame-out.log
TeleFrame-error.log
Sorry, I forgot:
the hardware is: 2x Raspberry Pi, 3b+ one 7" touch screen and one 15.6" touch screen.

from teleframe.

LukeSkywalker92 avatar LukeSkywalker92 commented on May 28, 2024

can you please checkout #46 and see if it is the same? Some googling makes me think that it can be a problem with chromium and the raspberry. #46 uses a new electron(chromium) version so maybe it helps.

from teleframe.

nautical-miles avatar nautical-miles commented on May 28, 2024

I still can't get it installed:
image

from teleframe.

nautical-miles avatar nautical-miles commented on May 28, 2024

Got it finally installed. See #44
Now it is testing if it still hangs after a while.

from teleframe.

nautical-miles avatar nautical-miles commented on May 28, 2024

The new version is not stable on a raspberry pi 3. It still hangs after some time.
Is there a way to see if electron fails and restart it. It could be a workaround till the actual issue is solved.

from teleframe.

nautical-miles avatar nautical-miles commented on May 28, 2024

For now I am restarting the Pi every hour. It is not nice but at least it does not sit there for days showing one and the same picture. I prefer a restart of electron frequently but could not find a way to do so. Doing a pm2 restart TeleFrame does not help.

from teleframe.

sohamakl avatar sohamakl commented on May 28, 2024

I have build three TeleFrames, two with Raspberry 3 and feature/touch-control branch with the freeze issue and one with raspbarry pi 4 that‘s running stable.

from teleframe.

nautical-miles avatar nautical-miles commented on May 28, 2024

I turned off hardware acceleration for TeleFrame by adding:
app.disableHardwareAcceleration();
to main.js. As I do not send videos it doesn't really matter to me. TeleFrame is running since this morning 8:00 without any problems.

from teleframe.

gegu avatar gegu commented on May 28, 2024

That's interesting. I can't figure out the freeze on two pi3. One of them's been running for several days.
So far I have only tested with pictures, but have now sent a few videos.

But I disabled toggleMonitor. My screen gets into trouble when trying to turn off/on every second. That's why I asked for toggleMonitor.

from teleframe.

sohamakl avatar sohamakl commented on May 28, 2024

I‘m using fotos only until now.

from teleframe.

nautical-miles avatar nautical-miles commented on May 28, 2024

I'm also only using photos on my screens. This is a minimal setup without speaker and microphone.
@gegu: have a look at schedules.js and replace the first two asterisks in the create schedule command by numbers. That will stop Teleframe sending turn on/off commands every second for a full hour to your screens.

from teleframe.

gegu avatar gegu commented on May 28, 2024

Yes, but I have another idea. It might be better to check if the screen is turned off/on before issuing commands. I'm still looking at that.

from teleframe.

sohamakl avatar sohamakl commented on May 28, 2024

Yesterday I updated to npm 6.13.2 and nodejs 13.3.0 for testing and deleted all logs.

Two out of three TeleFrames are still running this morning. One is frozen again. Only entry in TeleFrame-error.log.

Draw call returned Nicht genügend Hauptspeicher verfügbar. Expect corruption.

from teleframe.

Trenar avatar Trenar commented on May 28, 2024

Can someone tell me about his/her installation procedure? I either get problems with nodejs 10.x or have a really bad graphical performance (laggy slideshow) using node 8.x...

from teleframe.

nautical-miles avatar nautical-miles commented on May 28, 2024

Yesterday I updated to npm 6.13.2 and nodejs 13.3.0 for testing and deleted all logs.
Two out of three TeleFrames are still running this morning. One is frozen again. Only entry in TeleFrame-error.log.
Draw call returned Nicht genügend Hauptspeicher verfügbar. Expect corruption.

That's the same error I get even without your upgrade. One of my screens is still running after I turned off hardware acceleration. The other one got stuck. Sadly without any error message in the log. A restart of TeleFrame with pm2 restart TeleFrame did not help.

from teleframe.

sohamakl avatar sohamakl commented on May 28, 2024

Can someone tell me about his/her installation procedure? I either get problems with nodejs 10.x or have a really bad graphical performance (laggy slideshow) using node 8.x...

I did it this way:

node js aktualisieren 13.3.0
curl -sL https://deb.nodesource.com/setup_13.x | sudo -E bash -
sudo apt install -y nodejs
npm aktualisieren 6.13.2
sudo npm install npm@latest -g
reboot
npm -v

from teleframe.

gegu avatar gegu commented on May 28, 2024

I have node 10.x., installed, because this is the supported version (see Node.JS distributions ->Supported Debian versions ) and npm 6.13.2 like you.

from teleframe.

nautical-miles avatar nautical-miles commented on May 28, 2024

Installed the latest version of electron (7.1.2) after getting a hint that I had a typo in my command. It didn't take long till it freezes. Again the error: "Draw call returned Nicht genügend Hauptspeicher verfügbar. Expect corruption."
That might also be the reason why a Raspberry 4 does not have this error as it has more memory available.
Edit:
Went back to 6.1.5. This version ran for a full day without any problems. The next morning it was stuck again.
I still can't nail down what really is the issue. Tried a few things:

  • restarting Teleframe with pm2 restart TeleFrame. It does not help
  • restart electron. However, it starts the bot twice. Telegram allows only one bot running.
  • looking at all running processes on the py. Only found a defunct unclutter
  • restarted lightdm (parent of lxsession, unclutter). That removed the hung pickture and after a few seconds TeleFrame ran again without any further steps.

My workaround for now is to restart lightdm every hour with a cron job. This is way faster than restarting the py as I did before. However, this is not a real solution to this problem.

from teleframe.

gegu avatar gegu commented on May 28, 2024

Have you set a high value for the imageCount configuration option?
I can't reproduce the problem on a pi3 using the default of imageCount: 30 .
The memory consumption is approximately 350mb on a clean raspbian installation.

from teleframe.

sohamakl avatar sohamakl commented on May 28, 2024

I have an image count of 90 configured.

from teleframe.

nautical-miles avatar nautical-miles commented on May 28, 2024

Have you set a high value for the imageCount configuration option?
I can't reproduce the problem on a pi3 using the default of imageCount: 30 .
The memory consumption is approximately 350mb on a clean raspbian installation.

I left the setting as is with 30 pictures.

from teleframe.

gegu avatar gegu commented on May 28, 2024

Last night I also had the problem with imageCount: 90 on one of my pi3. But I don't think it's because of the number of images to display.

Does /var/log/messages contain similar entries about mmc_rescan?

Dec 12 04:37:54 raspberrypi kernel: [28752.088460] Workqueue: events_freezable mmc_rescan

followed by some exception information.

from teleframe.

nautical-miles avatar nautical-miles commented on May 28, 2024

I could not find anything like this in /var/log/messages on my screens.

from teleframe.

kris711 avatar kris711 commented on May 28, 2024

I'd like to confirm this problem too.
It seems to be related to the screen hardware, because same setup runs like a charm with RPI 7" Display. But using a HDMI Waveshare 10.1 screen i can reproduce the freeze by

  • toggle on Screen by defined hour in ConfigScript
  • just waiting some hours with disabled toggling

I am using the hdmi_default.js for screenConfig.

pi@Frame:~/TeleFrame $ npm restart

[email protected] start /home/pi/TeleFrame
electron .

**(electron:5691): Gtk-WARNING : 10:42:23.827: cannot open display:
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] start: electron .
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR! /home/pi/.npm/_logs/2020-07-05T08_42_23_903Z-debug.log

/home/pi/.npm/_logs/2020-07-05T08_42_23_903Z-debug.log

0 info it worked if it ends with ok
1 verbose cli [ '/usr/bin/node', '/usr/bin/npm', 'restart' ]
2 info using [email protected]
3 info using [email protected]
4 verbose run-script [ 'prerestart',
4 verbose run-script 'prestop',
4 verbose run-script 'stop',
4 verbose run-script 'poststop',
4 verbose run-script 'restart',
4 verbose run-script 'prestart',
4 verbose run-script 'start',
4 verbose run-script 'poststart',
4 verbose run-script 'postrestart' ]
5 info lifecycle [email protected] prerestart: [email protected]
6 info lifecycle [email protected] prestop: [email protected]
7 info lifecycle [email protected] stop: [email protected]
8 info lifecycle [email protected] poststop: [email protected]
9 info lifecycle [email protected] restart: [email protected]
10 info lifecycle [email protected] prestart: [email protected]
11 info lifecycle [email protected] start: [email protected]
12 verbose lifecycle [email protected] start: unsafe-perm in lifecycle true
13 verbose lifecycle [email protected] start: PATH: /usr/lib/node_modules/npm/node_modules/npm-lifecycle/node-gyp-bin:/home/pi/TeleFrame/node_modules/.bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/games:/usr/games
14 verbose lifecycle [email protected] start: CWD: /home/pi/TeleFrame
15 silly lifecycle [email protected] start: Args: [ '-c', 'electron .' ]
16 silly lifecycle [email protected] start: Returned: code: 1 signal: null
17 info lifecycle [email protected] start: Failed to exec start script
18 verbose stack Error: [email protected] start: electron .
18 verbose stack Exit status 1
18 verbose stack at EventEmitter. (/usr/lib/node_modules/npm/node_modules/npm-lifecycle/index.js:332:16)
18 verbose stack at EventEmitter.emit (events.js:198:13)
18 verbose stack at ChildProcess. (/usr/lib/node_modules/npm/node_modules/npm-lifecycle/lib/spawn.js:55:14)
18 verbose stack at ChildProcess.emit (events.js:198:13)
18 verbose stack at maybeClose (internal/child_process.js:982:16)
18 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:259:5)
19 verbose pkgid [email protected]
20 verbose cwd /home/pi/TeleFrame
21 verbose Linux 4.19.118-v7+
22 verbose argv "/usr/bin/node" "/usr/bin/npm" "restart"
23 verbose node v10.21.0
24 verbose npm v6.14.4
25 error code ELIFECYCLE
26 error errno 1
27 error [email protected] start: electron .
27 error Exit status 1
28 error Failed at the [email protected] start script.
28 error This is probably not a problem with npm. There is likely additional logging output above.
29 verbose exit [ 1, true ]

lightdm/x-0.log

Draw call returned Invalid argument. Expect corruption.

logs/TeleFrame-error.log

Draw call returned Nicht genügend Hauptspeicher verfügbar. Expect corruption.

I can also confirm that this screen is blanking after some time. A touch command recativates it.

I suppose TeleFrame is adding
xserver-command=X -s 0 -dpms
to lightdm config, but this is not enough i could solve this issue by adding

# Disable Screensaver
setterm -blank 0 -powerdown 0s

in rc.local file

However the Freeze behaviour shows no difference with or without this entry.

As described by @nautical-miles I tried to restart lightdm but this ends up in a blank screen without any session.
At the moment only a reboot helps. Howerver terminal access is possible the whole time.

Now I am going to play with Video options in boot/config.txt but I would be glad for any ideas.

from teleframe.

kris711 avatar kris711 commented on May 28, 2024

just to update this issue: I could solve by changing hdmi options in boot/config.txt
As this is very hardware individual I will create a wiki page for my display (Waveshare 10.1inch HDMI LCD (B)).
However for me it is not a TeleFrame issue.

from teleframe.

 avatar commented on May 28, 2024

I was having issues with my teleframe freezing every time when I was showing a particular 12 second video. If I removed every line talking about videos on config.json it begun working again.

Still having other freezing issues tho.
edit:
Oh and the freezing issues happen both on my pi 3b and 4b 2gig.

from teleframe.

kris711 avatar kris711 commented on May 28, 2024

maybe its a good idea to publish your log files? Perhabs someone can help then.

from teleframe.

 avatar commented on May 28, 2024

I know, sadly I don't have the logs easily available right now:/
nor i have a raspi to recreate them around me.

It was quite recreatable tho, I kept using these as my test videos:
https://www.dropbox.com/sh/kl4vpdwrq0d8n4n/AACYdQnhgImRbSupbggayp24a?dl=0

I had everything else as example config, but I had added a reboot admin command. Also the raspbian image was completely stock, except I had ran updates to have the newest versions of everything.

I'm fine running my teleframes on just pics but just thought if my ramblings would be of some help to someone :)

from teleframe.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.