| Prev | 3   11     12   13   14     15   | Next | Last
maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Development (https://talk.maemo.org/forumdisplay.php?f=13)
-   -   [Maemo 5] HealthCheck - Pymaemo/Qt - Learning to code (N900) (https://talk.maemo.org/showthread.php?t=44576)

noobmonkey 2010-02-22 14:10

Re: [Maemo 5] HealthCheck - Pymaemo/Qt - Learning to code (N900)
 
Quote:

Originally Posted by mackan1 (Post 541089)
0.4.2-3 still crashed for me. :(

did you try running it from x-term as described in a previous post? would be interested to see if it works :) or chucks out errors

mackan1 2010-02-22 14:12

Re: [Maemo 5] HealthCheck - Pymaemo/Qt - Learning to code (N900)
 
Quote:

Originally Posted by noobmonkey (Post 541091)
just removed all of the cellular info functions (meh - worth a try)

Uploading to autobuilder in 2 mins...

if that doesnt work, the last think i can think off is when i save the front cam image - may need to rethink where i do that....


in what way do u mean "just removed all of the cellular info functions"
as in just uninstall it?

noobmonkey 2010-02-22 14:14

Re: [Maemo 5] HealthCheck - Pymaemo/Qt - Learning to code (N900)
 
Quote:

Originally Posted by mackan1 (Post 541095)
in what would do u mean "just removed all of the cellular info functions"
as in just uninstall it?

Sorry - i just removed the ceullar functions from the code - to see if that will fix the bug :D

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

noobmonkey 2010-02-22 14:14

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

noobmonkey 2010-02-22 14:29

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!

noobmonkey 2010-02-22 14:40

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 :(

attila77 2010-02-22 15:05

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:

Originally Posted by noobmonkey (Post 541010)
No one fancy testing it? - dont fancy removing all the dbus stuff and possibly gtk stuff - just confused as to why it runs ok with warnings locally, but must be erroring out from the utilities menu...
Tis odd :( (It does save a file during the run though - so it could be that erroring out?

Also, can you paste the .desktop file you're using ?

noobmonkey 2010-02-22 15:08

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

noobmonkey 2010-02-22 15:14

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

fatalsaint 2010-02-22 15:18

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
Or add the line above to the top of healthcheck.py.


| Prev | 3   11     12   13   14     15   | Next | Last
All times are GMT. The time now is 19:33.

vBulletin® Version 3.8.8