![]() |
Re: [Maemo 5] HealthCheck - Pymaemo/Qt - Learning to code (N900)
Quote:
|
Re: [Maemo 5] HealthCheck - Pymaemo/Qt - Learning to code (N900)
Quote:
in what way do u mean "just removed all of the cellular info functions" as in just uninstall it? |
Re: [Maemo 5] HealthCheck - Pymaemo/Qt - Learning to code (N900)
Quote:
Trying to locate where it is crashing, so stripping out all code that could be doing it. I'm aware that it then has less functionality - but will re-build it back in :D |
Re: [Maemo 5] HealthCheck - Pymaemo/Qt - Learning to code (N900)
New version 0.4.2-4 is in the build queue - so should be about 10 mins
|
Re: [Maemo 5] HealthCheck - Pymaemo/Qt - Learning to code (N900)
Ok.... so not the dbus calls, and not the threading.
Still crashing. Getting no errors or warnings now my end. Changed the file save location to store the Front cam test image to \home\user\MyDocs\ New version -5 going into the auto builder! |
Re: [Maemo 5] HealthCheck - Pymaemo/Qt - Learning to code (N900)
Ok well i'm now baffled.....
No errors my side, no threading, no dbus, and changed the image location... what would cause it to just crash out? :( v -5 doesnt work either :( |
Re: [Maemo 5] HealthCheck - Pymaemo/Qt - Learning to code (N900)
This might sound confusing at first, but do you have object you're not the owner of ? I.e. a Qt object that you use from Python, but which is created/owned/destroyed by a native Qt object ? Most of the times I oops myself with PyQt is when an object implicitly gets destroyed behind the scenes and I call upon it not realizing it's gone. It would be great if you could strace the app (or get a traceback) to see where exactly is it crashing.
EDIT: Quote:
|
Re: [Maemo 5] HealthCheck - Pymaemo/Qt - Learning to code (N900)
ooo strace - any quick hints on how to do that ? (Assuming a terminal call?)
will check the code when i get back to a big pc... more confused as it's running fine locally with no errors, so maybe a file or path error? But not helpful with no bug reports/feedback |
Re: [Maemo 5] HealthCheck - Pymaemo/Qt - Learning to code (N900)
.desktop code as follows
[Desktop Entry] Version=1.0.0 Encoding=UTF-8 Name=HealthCheck Comment=N900 Health Check, test the front camera, GPS, battery and more Exec=/opt/healthcheck/healthcheck.py Icon=healthcheck X-Icon-path=/usr/share/icons Path to the icon X-Window-Icon=healthcheck Type=Application X-Osso-Service=com.nokia.healthcheck X-Osso-Type=application/x-executable StartupWMClass=HealthCheck |
Re: [Maemo 5] HealthCheck - Pymaemo/Qt - Learning to code (N900)
If the code you gave me earlier is what you are running..
Don't you need a: #!/usr/bin/python Or whatever the appropriate path is for python on the N900 at the beginning? That could by why the desktop icon isn't working. You want either: Code:
Exec=python /opt/healthcheck/healthcheck.py |
Re: [Maemo 5] HealthCheck - Pymaemo/Qt - Learning to code (N900)
Quote:
Got the (hashkey not working)! /usr/bin/env python at the beginning assuming the Exec=python /opt/healthcheck/healthcheck.py is for the .desktop file? (replace current line?) (the icon loads, and it looks like the application loads, so not sure the error is there.) |
Re: [Maemo 5] HealthCheck - Pymaemo/Qt - Learning to code (N900)
Quote:
Adding #!/usr/bin/env python to the top of healthcheck.py will allow you to either: Code:
/opt/healthcheck/healthcheck.pyCode:
python /opt/healthcheck/healthcheck.py |
Re: [Maemo 5] HealthCheck - Pymaemo/Qt - Learning to code (N900)
Ok, tried again with the exec python part - doesnt make a difference :(
So to confirm, .desktop has Exec=python /opt/healthcheck/healthcheck.py and the healthcheck.py file has #!/usr/bin/env python as it's first line. The icon installs, it starts to run, and then just crashes out and dissapears.... |
Re: [Maemo 5] HealthCheck - Pymaemo/Qt - Learning to code (N900)
Quote:
If the problem is that it crashes after some seconds when starting it from the menu (starting it from the terminal shouldn't cause it to crash) you need to initialize an osso.Context since you're using X-Osso-Service. Try something like: Code:
import ossoIf that also fails, comment out the X-Osso-Service line in your desktop file. Of course, only try all this if your program doesn't crash when started from the terminal. |
Re: [Maemo 5] HealthCheck - Pymaemo/Qt - Learning to code (N900)
Quote:
does run fine from terminal. |
Re: [Maemo 5] HealthCheck - Pymaemo/Qt - Learning to code (N900)
Quote:
|
Re: [Maemo 5] HealthCheck - Pymaemo/Qt - Learning to code (N900)
Okey dokey, trying the osso stuff and will see how it goes :)
|
Re: [Maemo 5] HealthCheck - Pymaemo/Qt - Learning to code (N900)
Well
Quote:
|
Re: [Maemo 5] HealthCheck - Pymaemo/Qt - Learning to code (N900)
Just realised, not actually using python-osso.....
So removing traces of it from my code and the .desktop / build_app files.... Does that mean i can remove the lines Quote:
|
Re: [Maemo 5] HealthCheck - Pymaemo/Qt - Learning to code (N900)
Just installed and same results as rest starts and then crashes just before launch. Getting there though Noob keep churning that code :)
|
Re: [Maemo 5] HealthCheck - Pymaemo/Qt - Learning to code (N900)
Cheers Casper - i'ma trying - have to admit, learnt how to upload to extras-dev pretty well today!!!
|
Re: [Maemo 5] HealthCheck - Pymaemo/Qt - Learning to code (N900)
Holy whohoooooooooooooooooooooo!!!!
Removed the osso stuff and it's working!!! Qwerty - how many beers do i owe you now? :D OK quick update - the code is the extremely slow cut down version! - will re-add everything and see where i get!! edit - omfg.... that took a while!! ... and.......... relax! edit * 2 - version in extras dev now is working 0.4.2-8 |
Re: [Maemo 5] HealthCheck - Pymaemo/Qt - Learning to code (N900)
Version 0.4.2-9 - Going through autobuilder now :D
Re-enabled threading and Dbus Calls as well as cell info |
Re: [Maemo 5] HealthCheck - Pymaemo/Qt - Learning to code (N900)
I can confirm ver 0.4.2-8 is up and running. Loaded GPS Camera ect. Just looking through it now will report laters. Well done Noob.
|
Re: [Maemo 5] HealthCheck - Pymaemo/Qt - Learning to code (N900)
Quote:
|
Re: [Maemo 5] HealthCheck - Pymaemo/Qt - Learning to code (N900)
noobmonkey, did you do an apt-get update first?
|
Re: [Maemo 5] HealthCheck - Pymaemo/Qt - Learning to code (N900)
Quote:
Just waiting for it to get through autobuilder :) - but 8 works - so big step forward! |
Re: [Maemo 5] HealthCheck - Pymaemo/Qt - Learning to code (N900)
ok 0.4.2-9 Works fine, everything re-enabled...
Does do a weird vanishing act for a second after running, but i have been beasting my poor n900 today! Ready for an annouce i feel! :D |
Re: [Maemo 5] HealthCheck - Pymaemo/Qt - Learning to code (N900)
1 Attachment(s)
Just installed, looks great.
I am not seeing front camera image should this be working now? |
Re: [Maemo 5] HealthCheck - Pymaemo/Qt - Learning to code (N900)
Quote:
Point it near a bright lightbulb when you start or press update! (really bad camera quality!) It also only collects 1 frame, so not sure of the aperture. edit - thank you for the screeny! great to see it on someone elses device!! |
Re: [Maemo 5] HealthCheck - Pymaemo/Qt - Learning to code (N900)
Have created an annouce thread! - so any bugs etc can go in there until i get a bugs account :D
But happy to keep this thread alive about the learning to code aspect etc :D Announce Thread - http://talk.maemo.org/showthread.php...457#post541457 |
Re: [Maemo 5] HealthCheck - Pymaemo/Qt - Learning to code (N900)
I can confirm the front camera does load but it is very very dark. everything else is working perfect so far.
Also confirm the disappearing just after launch but thats no biggy. |
Re: [Maemo 5] HealthCheck - Pymaemo/Qt - Learning to code (N900)
thanks casp, i think i can fix the front camera a bit by polling it for 50+ shots (only saves the last one), but i can't improve the quality unfortunately.
Will add the random reload to the bugs list. Could you tell me roughly how many seconds it takes to load, and for an update please? (Button goes disabled then re-enabled when done)? |
Re: [Maemo 5] HealthCheck - Pymaemo/Qt - Learning to code (N900)
I have tried pointing the camera directly at a light bulb, still no picture.
Tried runing gstreamer code directly in xterm, get "sh: gst-launch: not found". Something very strange here. |
Re: [Maemo 5] HealthCheck - Pymaemo/Qt - Learning to code (N900)
Quote:
it does need gstreamer, but thought all n900's had that? might have found it's first fault? edit - in x-term you could try Quote:
|
Re: [Maemo 5] HealthCheck - Pymaemo/Qt - Learning to code (N900)
Takes 8.3 secs to load rom cold and 4.4 secs for a reload. I have Gstreamer from the extras-decoders app.
At the time of loading I only have the app and browser open. |
Re: [Maemo 5] HealthCheck - Pymaemo/Qt - Learning to code (N900)
Apparently not
apt-get install gstreamer-tools is mentioned in this article http://tomch.com/wp/?p=116 |
Re: [Maemo 5] HealthCheck - Pymaemo/Qt - Learning to code (N900)
Just a random thought:
If stackable windows are too complicated to implement right now, what about having each "tab" listed as an option in the app menu (that shows up when you click on the titlebar)? |
Re: [Maemo 5] HealthCheck - Pymaemo/Qt - Learning to code (N900)
Quote:
|
Re: [Maemo 5] HealthCheck - Pymaemo/Qt - Learning to code (N900)
Quote:
hmmm does take a while doesn't it... if i take out the GPS part it cuts it down to about 3 seconds.... - just takes a little bit of time to warm it up.... |
| All times are GMT. The time now is 19:07. |
vBulletin® Version 3.8.8