Home
JAQForum Ver 20.06
Log In or Join  
Active Topics
Local Time 20:20 19 May 2024 Privacy Policy
Jump to

Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.

Forum Index : Microcontroller and PC projects : IMAGE ROTATE

     Page 4 of 4    
Author Message
lizby
Guru

Joined: 17/05/2016
Location: United States
Posts: 3027
Posted: 01:49pm 13 Jan 2021
Copy link to clipboard 
Print this post

Very encouraging here.

Lew--can you re-post the pi image or link to the post that contains it?
PicoMite, Armmite F4, SensorKits, MMBasic Hardware, Games, etc. on fruitoftheshed
 
JohnS
Guru

Joined: 18/11/2011
Location: United Kingdom
Posts: 3678
Posted: 02:00pm 13 Jan 2021
Copy link to clipboard 
Print this post

  lew247 said  I also tried it on a new install on a clean SD card with the latest Pi OS lite on my Pi 4 but it didn't run
pi@Pi4:~ $ sudo ./mmbasic
./mmbasic: error while loading shared libraries: libncurses.so.5: cannot open shared object file: No such file or directory


If curses is installed, there should be a file of similar name (libncurses.so or libncurses.so.6 or whatever), probably in /usr/lib but have a look.

You can then make a link (or symbolic link) with the missing name to the one that does exist.

Slightly naughty but will usually then let you run the program (mmbasic in this case).

The reason why is that one of the points of shared libraries is that they don't (as in: must not!) break existing APIs.

John
Edited 2021-01-14 00:01 by JohnS
 
lew247

Guru

Joined: 23/12/2015
Location: United Kingdom
Posts: 1676
Posted: 02:10pm 13 Jan 2021
Copy link to clipboard 
Print this post

Thanks John, but probably best if I stick to the Pi 3 for the moment with the version of Stretch Peter said to use at least until it's working properly first.
 
lew247

Guru

Joined: 23/12/2015
Location: United Kingdom
Posts: 1676
Posted: 03:29pm 13 Jan 2021
Copy link to clipboard 
Print this post

Sorry to report failed again
It ran for 117 minutes before crashing with the time
 
JohnS
Guru

Joined: 18/11/2011
Location: United Kingdom
Posts: 3678
Posted: 04:52pm 13 Jan 2021
Copy link to clipboard 
Print this post

11 is SIGSEGV i.e. a bad pointer

John
 
lew247

Guru

Joined: 23/12/2015
Location: United Kingdom
Posts: 1676
Posted: 05:56pm 13 Jan 2021
Copy link to clipboard 
Print this post

Lasted longer this time  127 minutes
However Peter if you're watching this, I remembered to run Screen this time and once I reopened the console and did the -D -r it came back up with this with the same flashing cursor

No mention of parsing error or crashing because of it

I wonder if the processor is getting too hot and bugs out?




Edit: in case anyone is wondering, the numbers before the amount of minutes is the Lunar day
Edited 2021-01-14 03:57 by lew247
 
lew247

Guru

Joined: 23/12/2015
Location: United Kingdom
Posts: 1676
Posted: 09:03pm 13 Jan 2021
Copy link to clipboard 
Print this post

129 minutes this time
I had a fan attached as well
Is there a way to monitor the temperature of the core while MM is running?
 
lew247

Guru

Joined: 23/12/2015
Location: United Kingdom
Posts: 1676
Posted: 05:29am 14 Jan 2021
Copy link to clipboard 
Print this post

it's Definitely not the JSON parsing that's making it crash
It stopped after 164 minutes and 56 seconds into the minute
I Set it to print the time every second as well as letting me know it received the data and parsed it ok.

It collects the weather data at 57 seconds into the minute and crashed at 56 so it can't be the data collection/parsing

Definitely seems to be Pigpio issue withy memory
I found this if you happen to see this Peter and didn't actually know it, but you probably did know



link to article
Edited 2021-01-14 16:27 by lew247
 
lew247

Guru

Joined: 23/12/2015
Location: United Kingdom
Posts: 1676
Posted: 08:00am 14 Jan 2021
Copy link to clipboard 
Print this post

Peter
If you happen to see this I've got the Pi 4 working with 5.05.04 from here  and pigpio V71
I'm going to leave it running and see if it crashes or not.
The display works properly, the only thing not working is triangles there's nothing on the screen where they should be but I'm not worried about that at all for now
I'll leave it running and see how it goes, hopefully it will carry on
Edited 2021-01-14 18:05 by lew247
 
lew247

Guru

Joined: 23/12/2015
Location: United Kingdom
Posts: 1676
Posted: 11:20am 14 Jan 2021
Copy link to clipboard 
Print this post

Hi Peter
I know you're an extremely busy person, but if you ever get time could you take a look at this version of pi-cromite 5.05.04 please?
Everything I've tested seems to be working properly other than triangles, they aren't being drawn at all, so I can't test Blit either but I suspect if triangles worked then Blit would also.

I've had it running now for 195 minutes with no issues whatsoever, the temperature of both the GPU and CPU is 65C - I set the program to report both core temperatures once a minute

I also installed the exact same on the Pi 3 and the results are the same other than the GPU and CPU temperatures are 59C so slightly lower.

HDMI works on both versions but I can't test touch.

I used the latest Buster Lite latest version released on both the Pi 3 and Pi 4 from here Then installed sudo apt-get install python3-distutils then
Pigpio V71 from here
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 8607
Posted: 11:29am 14 Jan 2021
Copy link to clipboard 
Print this post

  Quote  but if you ever get time could you take a look at this version of pi-cromite 5.05.04 please?


Looking at it achieves nothing since I don't have an archive of the V5.05.04 source. I di have 5.05.03 source and this is what I used to build the current versions with just some MMBasic internal fixes and the addition of Rotate and fix to triangle.

If you want to move this forward you need to slowly strip your program until you find what functionality is causing the crash. Alternatively you can send me the full program but first you will need to modify it so I can run it without any connected devices assuming it still errors when you have done this
 
lew247

Guru

Joined: 23/12/2015
Location: United Kingdom
Posts: 1676
Posted: 12:31pm 14 Jan 2021
Copy link to clipboard 
Print this post

Sorry, I thought you might be able to decompi9le 5.05.04 and just see why triangles didn't work.
I've sent you the full code including the icons and it will run without anything attached
Edit the reason I thought that is it's now been running for 281 minutes with no issues on both pi 3 and 4 and Buster not stretch
Edited 2021-01-14 22:39 by lew247
 
lew247

Guru

Joined: 23/12/2015
Location: United Kingdom
Posts: 1676
Posted: 01:59pm 14 Jan 2021
Copy link to clipboard 
Print this post

Arghh sorry it eventually crashed after 357 minutes with the sigHandled signal 11

It's probably simpler for me just to go back to having the Esp32 parse the data and picromite display it.

Sorry Peter for taking up so much of your time.
 
     Page 4 of 4    
Print this page


To reply to this topic, you need to log in.

© JAQ Software 2024