maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   [Announce] Waze for N900/N9/N950 (https://talk.maemo.org/showthread.php?t=79860)

sdpkom 2012-01-23 05:43

Re: [Announce] Waze for N900/N9/N950
 
Quote:

Originally Posted by damagedspline (Post 1154126)
@scarcow & @sdpkom i was still not successful in reproducing the search issue on my n900. it is running stable cssu and overclocked to 850mhz. as such i will prepare a test binary that should log the incoming results from the search server, which you will need to install.
just out of curiosity, when you press the "show on map" after the search, does it show a yellow "pin" in the so-called result location?

yes it does.

another thing, if i long tap on the map, i can successfuly navigate there (e.g bypassing the searchbox).

i think itss related to the searchbox thing, because afterwords, even if i do the same search from my log of last places, it still works.

i use ukeybord to be able to type hebrew characters.

damagedspline 2012-01-23 08:38

Re: [Announce] Waze for N900/N9/N950
 
Quote:

Originally Posted by sdpkom (Post 1154238)
yes it does.

another thing, if i long tap on the map, i can successfuly navigate there (e.g bypassing the searchbox).

i think itss related to the searchbox thing, because afterwords, even if i do the same search from my log of last places, it still works.

i use ukeybord to be able to type hebrew characters.

I use my modified fastsms to write Hebrew characters, but I don't think this is the case as @scarcow doesn't use Hebrew at all.

Anyway, please @sdpkom & @scarcow, if you can, please do the following before running waze - it should provide me with enough info to continue my investigation:
Code:

rm /home/user/MyDocs/.waze/postmortem
cp /home/user/MyDocs/.waze/preferences /home/user/MyDocs/.waze/preferences.bak
echo "General.Log level: 1" >> /home/user/MyDocs/.waze/preferences

This will remove the existing log file and raise the log level to the highest and create a backup of the original preferences file (so that you can easily revert the change).

After that please run waze and redo the search, this time it will produce a very big log file which you might need to zip in order to upload it to the thread. When I tried searching for Jerusalem for example I found the following result in the log which is the expected result:
Code:

AddressCandidate,waze,35.210370296460354,31.78015076092996,,,Jerusalem,,
Thanks.

ScarCow 2012-01-23 19:45

Re: [Announce] Waze for N900/N9/N950
 
Ok, my result for Pannonhalma, Hungary is:
Code:

AddressCandidate,waze,17.754636421738,47.5499188825995,,,Pannonhalma,,
Is this enough, or do you need the whole postmortem? Btw, i think these coordinates are swaped. If i put these into google maps for example, it will show me to somewhere in the Arab peninsula. If i swap them, that's the correct place.

The approximate coordinates of the location waze shows me is something like 47.00,17.00

This gives me an idea...
Yes, seems i was correct. If i test with Debrecen, 47.529974,21.639357, it shows me 47.0, 21.0, so, it seems that it somehow casts it to int, or something when displaying. The actual results in postmortem are correct (even though swapped).

Does this help?

-sc

damagedspline 2012-01-24 11:23

Re: [Announce] Waze for N900/N9/N950
 
Quote:

Originally Posted by ScarCow (Post 1154581)
This gives me an idea...
Yes, seems i was correct. If i test with Debrecen, 47.529974,21.639357, it shows me 47.0, 21.0, so, it seems that it somehow casts it to int, or something when displaying. The actual results in postmortem are correct (even though swapped).

Does this help?

Thanks, thats very helpful & also consistent with what @sdpkom experienced.
I'll start digging to find the bad cast.

damagedspline 2012-01-26 22:07

Re: [Announce] Waze for N900/N9/N950
 
@sdpkom & @scarcow i was not able to find the bad cast as waze is a mess so instead i recompiled with the -Wconversion flag to point out "hidden" casts - i made 4 small changes and the result deb has been uploaded here.

Since i was not able to reproduce your issue, can you please test it?

Note that you must install v0.0.5 before installing this deb. if you already have v0.0.5 installed ignore previous sentence :)

sdpkom 2012-01-27 15:13

Re: [Announce] Waze for N900/N9/N950
 
sorry for being unresponsive last week. it was a hecktick week.

installed it.
Now what?, do you still need me to change the logging level? do you need my postmortem file? anything else?

damagedspline 2012-01-27 20:34

Re: [Announce] Waze for N900/N9/N950
 
Quote:

Originally Posted by sdpkom (Post 1156566)
sorry for being unresponsive last week. it was a hecktick week.

installed it.
Now what?, do you still need me to change the logging level? do you need my postmortem file? anything else?

after install just try to do the search again. no need to raise the log level. If it doesnt solve the issue i'll try to find another angle for it.

654321 2012-01-27 21:16

Re: [Announce] Waze for N900/N9/N950
 
1 Attachment(s)
Search still not working ok and last crash:

damagedspline 2012-01-27 21:50

Re: [Announce] Waze for N900/N9/N950
 
Quote:

Originally Posted by 654321 (Post 1156710)
Search still not working ok and last crash:

according to the log you are out of memory and that is why it crashed...

ScarCow 2012-01-28 12:31

Re: [Announce] Waze for N900/N9/N950
 
I can confirm what 654321 said. Search still has the same issue.

-sc

sdpkom 2012-01-29 09:20

Re: [Announce] Waze for N900/N9/N950
 
1 Attachment(s)
Same here. Search does not work, still crashes.



BTW, here is the PM file

NiQ 2012-01-29 16:24

Re: [Announce] Waze for N900/N9/N950
 
1 Attachment(s)
Another crash report - when I try to sign-up to Waze, it crashes as soon as I tap on an input box.
PM attached.

EDIT - OK, found out was the problem is, the library qtquickcompat is needed, damagedspline, please add it as a dependency.

sdpkom 2012-01-29 19:32

Re: [Announce] Waze for N900/N9/N950
 
Quote:

Originally Posted by NiQ (Post 1157428)
Another crash report - when I try to sign-up to Waze, it crashes as soon as I tap on an input box.
PM attached.

EDIT - OK, found out was the problem is, the library qtquickcompat is needed, damagedspline, please add it as a dependency.

for me, updating to cssu solved a similar problem long time ago.

damagedspline 2012-01-31 20:20

Re: [Announce] Waze for N900/N9/N950
 
1 Attachment(s)
Quote:

Originally Posted by NiQ (Post 1157428)
OK, found out was the problem is, the library qtquickcompat is needed, damagedspline, please add it as a dependency.

Thanks, task committed.

That raise the question of whether I have something installed on my N900 that "fixes" the bad cast that causes the mislocation issue. It doesn't make sense that it work OK on some N900s and doesn't on the rest...

I am attaching all of my currently installed apps which is achieved by running:
Code:

dpkg -l | grep '^ii' | sort > apps.txt
So if you have the issue, please try and compare your app list with mine (you can use the diff command) and report any anomalies - maybe its a different qt library version (is it libqtm11? kernel version?) or something...

rudebwoy 2012-01-31 22:02

Re: [Announce] Waze for N900/N9/N950
 
I installed version 0.0.5 on my n900 and found two errors.

1) I'm trying to get directions when calculating route Waze continuously outputs "Could not locate end point."
2) When I try to leave the record about alert I do not see anything on the list to select the type of alert ...

Please, help fix it!

loc69 2012-01-31 22:16

Re: [Announce] Waze for N900/N9/N950
 
First I have to say, sdpkom and Scarcow, you are not alone, unfortunately I encounter the same search - wrong place issue. Even if I try to navigate to a contact. (The comparison of running apps is beyond my skills, I think, sorry).

Aside from that, I want to ask if it is possible in the latest release to report a traffic event. If I try, all I see is a blank screen, with the possibility to go back to the map. A few days ago, waze recognized that I'am stuck in a traffic jam and asked me to classify and send it, what worked pretty fine...

thanks for your help

damagedspline 2012-02-01 07:14

Re: [Announce] Waze for N900/N9/N950
 
Quote:

Originally Posted by loc69 (Post 1158648)
Aside from that, I want to ask if it is possible in the latest release to report a traffic event. If I try, all I see is a blank screen, with the possibility to go back to the map.

Quote:

Originally Posted by rudebwoy (Post 1158642)
2) When I try to leave the record about alert I do not see anything on the list to select the type of alert ...
Please, help fix it!

Thanks, for the feedback.
The "report events" is actually a hidden browser and I am targeting it to v0.0.6 (still work in progress). I currently freezed are development until I fix the mislocation issue which is affecting a lot of users.

(project roadmap link - http://code.google.com/p/waze-qt/#TO...by_priority%29)

PS.
foursquare account integration has been committed last week - and should be available if you install the test binary i provided last week (should be installed on top of existing v0.0.5) :)

gianko 2012-02-02 12:04

Re: [Announce] Waze for N900/N9/N950
 
im very upset with my phone, i installed the latest version 0.0.5 and the same problem again, dont start. from terminal the same error message "segmentation fault"

what is the problem with my phone?
i have also CSSU Stable now with the latest qt, but nothing, still not working...

any suggestions?

damagedspline 2012-02-02 14:15

Re: [Announce] Waze for N900/N9/N950
 
@loc69 @sdpkom @scarcow:
I have made a new test binary available here - it does not fix the search issue but it add some more logging info - this will assist me further more to locate the bad cast. Please install the following on top of v0.0.5 to the previous test binary. After installing please try to perform a search and look in the postmortem file. Search for "Read double from string" + "Double that was read from from string" & "longitude before" / "longitude after" & "latitude before" / "latitude after" (note that the after in both lon & lat cases is multiplied by 1000000).

@gianko
Please don't be upset with your phone. I have added the dependency that @NiQ suggested to the test binary listed above. Please try and install it on top of v0.0.5 and see if it solve your crash.

654321 2012-02-02 19:43

Re: [Announce] Waze for N900/N9/N950
 
1 Attachment(s)
This is my log:

damagedspline 2012-02-02 20:59

Re: [Announce] Waze for N900/N9/N950
 
Quote:

Originally Posted by 654321 (Post 1159627)
This is my log:

bine... i was afraid of this:
what fails is the atof() system function. I'll fix it tomorrow and probably release a proposed fixed binary either tomorrow or Saturday - i'll replace the atof with the QString equivalent

Edit: it coud also be a locale thing that atof assumes ',' as a decimal separator while waze assumes '.' in the strings that are retrievd from the server. What does settings -> Languages & region tells you about the decimal separator?

damagedspline 2012-02-02 21:44

Re: [Announce] Waze for N900/N9/N950
 
FInally amanged to reproduce - just as i thought , atof is locale specific.

in the meanwhile (until the fix) to make it work correctly, change the format in settings->language&region->regional settings->united kingdom (reboot).

i will fix it by replacing atof with atof_l so that you will not have to change the regional settings.

Thanks for everyone that assisted in finding this issue!

sdpkom 2012-02-03 12:49

Re: [Announce] Waze for N900/N9/N950
 
Quote:

Originally Posted by damagedspline (Post 1159688)
FInally amanged to reproduce - just as i thought , atof is locale specific.

in the meanwhile (until the fix) to make it work correctly, change the format in settings->language&region->regional settings->united kingdom (reboot).

i will fix it by replacing atof with atof_l so that you will not have to change the regional settings.

Thanks for everyone that assisted in finding this issue!

switchuted from italy to uk.
i cant notice any difference. will try the new binary on sunday on my way to work.

strange thing i noticed. it crashes at fixed places, driving the same route from home to work. always in the same position.
but it does not crash in the same position on the reverse direction.
must try it without navigation on once.

damagedspline 2012-02-03 16:38

Re: [Announce] Waze for N900/N9/N950
 
Proposed fix attempt #1 for the mislocation issue is available for download here

Notes:
1) Must be installed on top of v0.0.5
2) N900 only

gianko 2012-02-03 17:12

Re: [Announce] Waze for N900/N9/N950
 
1 Attachment(s)
installed the fix. no more segmentation fault but other errors. read the file attached

ScarCow 2012-02-03 19:20

Re: [Announce] Waze for N900/N9/N950
 
Just came by to say that changing the regional settings of the phone solved the search issue for me. Thanks damagedspline.

I will test that fix attempt later on. Is that compatible with the earlier attempt?

-sc

654321 2012-02-03 20:07

Re: [Announce] Waze for N900/N9/N950
 
Quote:

Originally Posted by damagedspline (Post 1159991)
Proposed fix attempt #1 for the mislocation issue is available for download here

Search is ok now.
Thanks,

damagedspline 2012-02-04 08:57

Re: [Announce] Waze for N900/N9/N950
 
@gianko maybe another dependency is missing. I suspect it's the qtmobility.
try to install the following packages and retry:
libqtm-location libqtm-contacts libqtm-mutimedia libqtm-systeminfo
i will add those packages as dependencies.

@scarcow it is compatible with the prev attempt so u can install it on top of that. v0.0.5 preinstalled is still a requirement which is inherited from the previous attempt.

sdpkom 2012-02-05 07:54

Re: [Announce] Waze for N900/N9/N950
 
1 Attachment(s)
Search now works fine - great, thanks.

Still crashes at the same positions.

Regional settings are now UK, did not test it with other locations.

Postmortem file attached (many crashes in it, just the last one with the latest version).

damagedspline 2012-02-05 08:58

Re: [Announce] Waze for N900/N9/N950
 
Quote:

Originally Posted by sdpkom (Post 1160712)
Search now works fine - great, thanks.

Still crashes at the same positions.

Regional settings are now UK, did not test it with other locations.

Postmortem file attached (many crashes in it, just the last one with the latest version).

Thanks, but it is missing some info - can you please raise the log level by adding:
Code:

General.Log level: 1
to the ~/MyDocs/.waze/preferences file (It is being removed each time waze reinstalled), delete the postmortem file, retry & resend?
That would be extremely helpful! :)

v0.0.6 will be coming in about two weeks with the following features:
1) Finally groups support - Done
2) Finally report events is working - Done
3) Fix for the mislocation issue ( obvisously :) ) - Done
4) Fix multitouch zoom on N9 - TODO
5) Phone camera integration - TODO
6) Add to the Maemo/Meego repositories - Meego=Done, Maemo=TODO
7) Other fixes as time allows

damagedspline 2012-02-05 09:19

Re: [Announce] Waze for N900/N9/N950
 
On another note, 2 versions from now (v0.0.8), I would like to rewrite the UI layer to be QML based. As such I get the ability to reshape the UI. Since I am not tied to Waze and their 3.0 is now closed sourced - I would like to know how would you have it.

I am scheduling v0.0.8 to ~3-5 months from now so its plenty of time for you to convey your thoughts and ideas on how do you feel that the UI should be like. Rough mockups will be gladly accepted!

gianko 2012-02-05 12:31

Re: [Announce] Waze for N900/N9/N950
 
[QUOTE=damagedspline;1160279]@gianko maybe another dependency is missing. I suspect it's the qtmobility.
try to install the following packages and retry:
libqtm-location libqtm-contacts libqtm-mutimedia libqtm-systeminfo
i will add those packages as dependencies.

i have all these packages installed already with cssu.
what else can be?
some times i got another error:

/opt/waze/bin $ ./waze
terminate called after throwing an instance of 'std::bad_alloc'
what(): std::bad_alloc
Aborted

damagedspline 2012-02-05 13:17

Re: [Announce] Waze for N900/N9/N950
 
Quote:

Originally Posted by gianko (Post 1160802)
/opt/waze/bin $ ./waze
terminate called after throwing an instance of 'std::bad_alloc'
what(): std::bad_alloc
Aborted

:O

Can you please set the log level to 1 (adding "General.Log level: 1" to the ~/MyDocs/.waze/preferences without the quotes) , try to run and post the generated ~/MyDocs/.waze/postmortem

It will assist me in isolating the problem.

gianko 2012-02-05 14:40

Re: [Announce] Waze for N900/N9/N950
 
1 Attachment(s)
this is my preferences but i cannot find General.Log level

gianko 2012-02-05 14:53

Re: [Announce] Waze for N900/N9/N950
 
1 Attachment(s)
ok added the general.log line to preferences

after launching waze this is the postmortem

damagedspline 2012-02-05 16:49

Re: [Announce] Waze for N900/N9/N950
 
Quote:

Originally Posted by gianko (Post 1160870)
ok added the general.log line to preferences

after launching waze this is the postmortem

odd, it looks as if you are out of memory.

try and run:
Code:

cat /proc/meminfo | grep Free
it will show you have much free memory you got. you should see 2 types of free memory by running the command above: Swap & Mem. If you do not have Swap it might explain the issue.

gianko 2012-02-05 17:42

Re: [Announce] Waze for N900/N9/N950
 
is this memory enough?
Code:


BusyBox v1.10.2 (Debian 3:1.10.2.legal-1osso30+0m5) built-in shell (ash)
Enter 'help' for a list of built-in commands.

~ $ cat /proc/meminfo | grep Free
MemFree:          22376 kB
SwapFree:        661212 kB
~ $ cd /opt/waze/bin/
/opt/waze/bin $ ./waze
18:40:30.985 s..debug.. qt/roadmap_device.cc, line 50 roadmap_backlight_initialize() - Current setting : no    [File: 'qt/roadmap_device.cc'; Line: 50]
18:40:31.000 s..debug.. qt/roadmap_device.cc, line 78 roadmap_set_backlight() - Current setting : no    [File: 'qt/roadmap_device.cc'; Line: 78]
18:40:31.002 s..debug.. roadmap_power.c, line 97 Starting the periodic for power. Period: 30000.        [File: 'roadmap_power.c'; Line: 97]
18:40:31.003 s..debug.. roadmap_map_settings.c, line 116 intialiazing map settings        [File: 'roadmap_map_settings.c'; Line: 116]
18:40:31.007 s..debug.. roadmap_download_settings.c, line 85 intialiazing map settings        [File: 'roadmap_download_settings.c'; Line: 85]
Segmentation fault
/opt/waze/bin $ cat /proc/meminfo | grep Free
MemFree:          19440 kB
SwapFree:        661212 kB
/opt/waze/bin $


654321 2012-02-05 19:15

Re: [Announce] Waze for N900/N9/N950
 
Quote:

Originally Posted by gianko (Post 1160919)
is this memory enough?

Do you have map in 3D mode?

If I put map in 3D mode after a few seconds it crash because out of memory.

Map in 2D mode: http://uploadimage.ro/images/87756538321152868829.png

Map in 3D mode: http://uploadimage.ro/images/84805632462538189300.png

gianko 2012-02-06 12:35

Re: [Announce] Waze for N900/N9/N950
 
Quote:

Originally Posted by 654321 (Post 1160954)
Do you have map in 3D mode?

i don't know, i never saw anything about this app, because when i click on waze to start it, it crashes after few seconds of loading. i can only see the maemo gps white icon flashing and disappearing.

damagedspline 2012-02-06 14:11

Re: [Announce] Waze for N900/N9/N950
 
Quote:

Originally Posted by gianko (Post 1161203)
i don't know, i never saw anything about this app, because when i click on waze to start it, it crashes after few seconds of loading. i can only see the maemo gps white icon flashing and disappearing.

To make sure the configuration is reset, you should delete the /home/user/MyDocs/.waze directory.

Is your N900 overclocked?

Edit: btw, it does seems that you have enough memory

Edit 2: I totally forgot, you should copy /opt/waze/data as /home/user/MyDocs/.waze after removing it - Sorry.


All times are GMT. The time now is 08:13.

vBulletin® Version 3.8.8