Page 27 of 44 FirstFirst ... 17222324252627282930313237 ... LastLast
Results 521 to 540 of 865
Like Tree6Likes
  1. #521  
    Quote Originally Posted by sancho_sk View Post
    Does anyone know how to create a fifo on pre2? My idea is to actualy write a script, that will periodicaly ask the luna-send for GPS coordinates, write them to the pipe and set such pipe as a source for the navit - that should work as a workaround, shouldn't it?
    Anyhow, I have big trouble find the file source format for navit - I found the NMEA source possibility from rfcomm/tty, also some option to read from file, but, unfortunately, with no description of format
    I don't think that would work properly. In the source code of navit the GPS-drivers are to be found under the term "vehicles". So the location service is queried from vehicle_webos.c. The order is not important there, it just get's a structure containing the result and then uses API functions like "get latitiude", "get longitude" etc. But that's not the part that is failing.
    Code:
    static int
    vehicle_webos_open(struct vehicle_priv *priv)
    {
    	PDL_Err err;
    
    	err = PDL_ServiceCallWithCallback("palm://com.palm.location/startTracking",
    			"{subscribe:true}",
    			(PDL_ServiceCallbackFunc)vehicle_webos_callback,
    			priv,
    			PDL_FALSE);
    	if (err != PDL_NOERROR) {
    		dbg(0,"PDL_ServiceCallWithCallback failed\n");
    		vehicle_webos_close(priv);
    		return 0;
    	}
    
    	return 1;
    }
    It would be interesting if you can subscribe to palm://com.palm.location/startTracking using luna-send. What I could probably do is to output err, maybe that gives some better clue.
  2. sancho_sk
    sancho_sk's Avatar
    #522  
    I wuickly went through the documentation and found this:
    PDK - PDL_EnableLocationTracking - HP Palm Developer Center

    I believe it is called somewhere - this is just to make sure as I can't see the whole source code
    Anyhow, I am not a developer - I am a tester, so be patient with me
  3. PreRunr's Avatar
    Posts
    344 Posts
    Global Posts
    345 Global Posts
    #523  
    Noradtux your new version works but the number is wrong ==> v0.5.0.3832-1

    But the log has these errors
    Sun Dec 26 14:22:16 CST 2010
    Navit log started
    Fontconfig error: Cannot load default config file

    (process:11728): GLib-WARNING **: In call to g_spawn_sync(), exit status of a child process was requested but SIGCHLD action was set to SIG_IGN and ECHILD was received by waitpid(), so exit status can't be returned. This is a bug in the program calling g_spawn_sync(); either don't request the exit status, or don't set the SIGCHLD action.
    Last edited by PreRunr; 12/25/2010 at 09:54 PM.
  4. #524  
    Quote Originally Posted by PreRunr View Post
    Noradtux your new version works but the number is wrong ==> v0.5.0.3832-1
    In fact that is the version that Navit reports internally. 0.2.0 was released upstream a few weeks ago. We already are on the road to 0.5.0
    Quote Originally Posted by PreRunr View Post
    But the log has these errors
    Sun Dec 26 14:22:16 CST 2010
    Navit log started
    Fontconfig error: Cannot load default config file

    (process:11728): GLib-WARNING **: In call to g_spawn_sync(), exit status of a child process was requested but SIGCHLD action was set to SIG_IGN and ECHILD was received by waitpid(), so exit status can't be returned. This is a bug in the program calling g_spawn_sync(); either don't request the exit status, or don't set the SIGCHLD action.
    Yea, that warning keeps coming and going. I guess there is some race-condition. But it doesn't seem to hurt.
  5. PreRunr's Avatar
    Posts
    344 Posts
    Global Posts
    345 Global Posts
    #525  
    What about Fontconfig error: Cannot load default config file?
  6. #526  
    Quote Originally Posted by PreRunr View Post
    What about Fontconfig error: Cannot load default config file?
    The latest version in Preware is 0.5.0 3832. I've now got a new Pre 2 for Christmas (thank you Santa!) and Navit now runs OK on my Pre 2 with no menu or icon issues but the problem other Pre 2 owners have been reporting about not getting a GPS fix persists. I'm not a developer so I'm not sure what I can do to help except test and report back to you guys.
  7. #527  
    Quote Originally Posted by PreRunr View Post
    What about Fontconfig error: Cannot load default config file?
    That's also normal and has been there as long as I've been working on Navit.
  8. #528  
    I pushed a new version (0.5.0.3839-1) which adds an error-number after the "PDL_ServiceCallWithCallback failed" message. Maybe that number tells me a bit about the nature of the problem.

    Mapping of those numbers to error messages:
    PDK - Data Types - HP Palm Developer Center
  9. sancho_sk
    sancho_sk's Avatar
    #529  
    Quote Originally Posted by noradtux View Post
    I pushed a new version (0.5.0.3839-1) which adds an error-number after the "PDL_ServiceCallWithCallback failed" message. Maybe that number tells me a bit about the nature of the problem.

    Mapping of those numbers to error messages:
    PDK - Data Types - HP Palm Developer Center
    I have the latest version available in Preware, but it's only 0.5.0.3832-1 and I am sure I have up-to-date Feed update. Can you advice?
  10. #530  
    In Preware I see:
    v0.2.0.3541-1
    How I get a newer version?
  11. #531  
    Quote Originally Posted by jandc View Post
    In Preware I see:
    v0.2.0.3541-1
    How I get a newer version?
    You need to add the webosinternals testing feed - see:
    Testing Feeds - WebOS Internals
  12. #532  
    Quote Originally Posted by noradtux View Post
    I pushed a new version (0.5.0.3839-1) which adds an error-number after the "PDL_ServiceCallWithCallback failed" message. Maybe that number tells me a bit about the nature of the problem.

    Mapping of those numbers to error messages:
    PDK - Data Types - HP Palm Developer Center
    Here is my navit log after failing to get a GPS fix with a Pre 2 using Navit version 0.5.0.3839-1


    Mon Dec 27 21:39:41 UTC 2010
    Navit log started
    Fontconfig error: Cannot load default config file

    (process:4761): LunaService-CRITICAL **: Error in transport.c:2259

    (process:4761): LunaService-CRITICAL **: Invalid permissions for (null)

    (process:4761): LunaService-CRITICAL **: sh != NULL from mainloop.c:65 @ LSGmainAttach

    (process:4761): LunaService-CRITICAL **: Error in transport.c:2259

    (process:4761): LunaService-CRITICAL **: Invalid permissions for (null)

    (process:4761): LunaService-CRITICAL **: sh != NULL from mainloop.c:65 @ LSGmainAttach
    vehicle_webos:vehicle_webos_open:PDL_ServiceCallWithCallback failed with 2
    map_binfile:map_binfile_zip_setup:num_disk 0
    navit:main_real:Using '/media/internal/appdata/org.webosinternals.navit//navit.xml'
    navitsd_set_std_graphic:accesskey (null)
    navitsd_set_std_graphic:accesskey (null)
    navitsd_set_std_graphic:accesskey (null)
    navitsd_set_std_graphic:accesskey (null)
    navitsd_set_std_graphic:accesskey (null)
    navitsd_set_std_graphic:accesskey (null)
    navitsd_set_std_graphic:accesskey (null)
    gui_internal:gui_internal_set_refresh_callback:cond=(null)
    gui_internal:gui_internal_set_refresh_callback:cond=(null)
    sh: gdb: not found
    config file n is set to `/media/internal/appdata/org.webosinternals.navit//navit.xml'
    map_rect_new_textfile unable to open textfile /media/internal/appdata/org.webosinternals.navit//bookmark.txt

    Does this help?
  13. sancho_sk
    sancho_sk's Avatar
    #533  
    Quote Originally Posted by PreGP View Post
    You need to add the webosinternals testing feed - see:
    Testing Feeds - WebOS Internals
    That's funny.
    I already had the testing feeds within the sources.
    Nothing showed up after update.
    So I turned off all the other sources, reloaded the feeds once again and than the update shows
    I am about to post the log...
  14. sancho_sk
    sancho_sk's Avatar
    #534  
    This is the output:
    Code:
    ------------------------- Start Navit ----------------------------------
    Mon Dec 27 21:54:41 UTC 2010
    Navit log started
    Fontconfig error: Cannot load default config file
    
    (process:14664): LunaService-CRITICAL **: Error in transport.c:2259
    
    (process:14664): LunaService-CRITICAL **: Invalid permissions for (null)
    
    (process:14664): LunaService-CRITICAL **: sh != NULL from mainloop.c:65 @ LSGmainAttach
    
    (process:14664): LunaService-CRITICAL **: Error in transport.c:2259
    
    (process:14664): LunaService-CRITICAL **: Invalid permissions for (null)
    
    (process:14664): LunaService-CRITICAL **: sh != NULL from mainloop.c:65 @ LSGmainAttach
    vehicle_webos:vehicle_webos_open:PDL_ServiceCallWithCallback failed with 2
    map_binfile:map_binfile_zip_setup:num_disk 0
    navit:main_real:Using '/media/internal/appdata/org.webosinternals.navit//navit.xml'
    navit:osd_set_std_graphic:accesskey (null)
    navit:osd_set_std_graphic:accesskey (null)
    navit:osd_set_std_graphic:accesskey (null)
    navit:osd_set_std_graphic:accesskey (null)
    navit:osd_set_std_graphic:accesskey (null)
    navit:osd_set_std_graphic:accesskey (null)
    navit:osd_set_std_graphic:accesskey (null)
    navit:osd_set_std_graphic:accesskey (null)
    Now I need to find out, what the error code 2 means
  15. sancho_sk
    sancho_sk's Avatar
    #535  
    Hmm, error code is not very descriptive, to be honest
    Connection error - Even I knew that.
    noradtux, can you, please, advice? I don't think this helped to you. Did it?
    Can you, please, try to use the function call I suggested before?
  16. #536  
    Quote Originally Posted by sancho_sk View Post
    Hmm, error code is not very descriptive, to be honest
    Connection error - Even I knew that.
    noradtux, can you, please, advice? I don't think this helped to you. Did it?
    Can you, please, try to use the function call I suggested before?
    Hmm, using that API function would require a complete rewrite of the location code. Currently webOS calls us when there is new data. With that function I would have to query every second or so. The messages posted here look like a bug in webOS to me. I guess I should ask in the Palm developer forums.
  17. sancho_sk
    sancho_sk's Avatar
    #537  
    Quote Originally Posted by noradtux View Post
    Hmm, using that API function would require a complete rewrite of the location code. Currently webOS calls us when there is new data. With that function I would have to query every second or so. The messages posted here look like a bug in webOS to me. I guess I should ask in the Palm developer forums.
    I think we have a misunderstanding.
    According what I see in the API description, you just have to call that function once and than the rest of the code should work correctly.
    Did I misunderstanded?
  18. #538  
    Quote Originally Posted by sancho_sk View Post
    I think we have a misunderstanding.
    According what I see in the API description, you just have to call that function once and than the rest of the code should work correctly.
    Did I misunderstanded?
    I think you did. PDL_GetLocation gives me the current location everytime it's called. So the way to use it would be

    - call PDL_EnableLocationTracking to enable the PDL's location handler
    - call PDL_GetLocation every second or so and give the location to Navit

    I asked Palm if that would work at all, since in the end they also "just" use the location service and would probably face the same problem.

    Palm confirmed that we are hitting a permission bug in the PDK Forums webOS • View topic - Using PDL_ServiceCallWithCallback for location service: fail.
    It should be fixed in the next update of webOS.
  19. sancho_sk
    sancho_sk's Avatar
    #539  
    noradux - fantastic job! Thanks a lot - looking forward for the update. Maybe my next journey home will be guided by the palm version of Navit
  20. #540  
    I wonder if HaPe could edit the OP of this thread to add there is currently a bug in WebOs versions 2.00 and 2.01 which prevents Navit from working but this should be fixed by Palm in the next update.

Posting Permissions