Results 1 to 6 of 6

Thread: No items in list boxes in newest svn version

  1. #1
    Newbie
    Join Date
    Mar 2009
    Posts
    6

    No items in list boxes in newest svn version

    Hello,
    I checked out and built the latest svn version of nghost (1687) because I saw that a number of bugs had been fixed and functionality added. Now when I run this version my list boxes for music and videos are empty. It appears to have something to with the event handling stuff but I am not sure. Here is the ouput from nghost when I run it and click on music->library:

    03/26/2009 18:27:13 EDT:ERROR - text.cpp:loadFont(74) - error loading font '/usr/share/fonts/truetype/ttf-liberation/LiberationSans-Regular.ttfDejaVuSansCondensed-Bold.ttf'
    03/26/2009 18:27:13 EDT:WARNING - WARNING: Duplicate Global Command 'name' found: subscribeToProgress
    found: /usr/local/lib/nghost//libnghostdownload.so
    03/26/2009 18:27:17 EDT:WARNING - populate.cpp:SearchDir(70) - Failed to create the artgrabber plugin
    03/26/2009 18:27:17 EDT:WARNING - populate.cpp:SearchDir(70) - Failed to create the artgrabber plugin
    found: /usr/local/lib/nghost//libsqlitedatabase.so
    found: /usr/local/lib/nghost//libsqlitequery.so
    03/26/2009 18:27:20 EDT:ERROR - text.cpp:loadFont(74) - error loading font '/usr/share/fonts/truetype/ttf-liberation/LiberationSans-Regular.ttfDejaVuSansCondensed-Bold.ttf'
    tried to connect to: (nscan) localhost : 6997
    03/26/2009 18:27:24 EDT:ERROR - EventSubscriber: subscribe() - 75:: Error OnStationDataChanged either is not found or is not a valid event
    03/26/2009 18:27:24 EDT:ERROR - EventSubscriber: subscribe() - 75:: Error OnHdRadioSongInfoChanged either is not found or is not a valid event
    03/26/2009 18:27:27 EDT:ERROR - EventSubscriber: subscribe() - 75:: Error OnEngineRPMChanged either is not found or is not a valid event
    03/26/2009 18:27:27 EDT:ERROR - EventSubscriber: subscribe() - 75:: Error OnEngineRPMChanged either is not found or is not a valid event
    03/26/2009 18:27:27 EDT:ERROR - EventSubscriber: subscribe() - 75:: Error OnVehicleSpeedChanged either is not found or is not a valid event
    03/26/2009 18:27:27 EDT:ERROR - EventSubscriber: subscribe() - 75:: Error OnVehicleSpeedChanged either is not found or is not a valid event
    03/26/2009 18:27:27 EDT:ERROR - EventSubscriber: subscribe() - 75:: Error OnCalculatedEngineLoadChanged either is not found or is not a valid event
    03/26/2009 18:27:27 EDT:ERROR - EventSubscriber: subscribe() - 75:: Error OnCalculatedEngineLoadChanged either is not found or is not a valid event
    03/26/2009 18:27:27 EDT:ERROR - EventSubscriber: subscribe() - 75:: Error OnEngineCoolantTemperatureChanged either is not found or is not a valid event
    03/26/2009 18:27:27 EDT:ERROR - EventSubscriber: subscribe() - 75:: Error OnEngineCoolantTemperatureChanged either is not found or is not a valid event
    03/26/2009 18:27:27 EDT:ERROR - EventSubscriber: subscribe() - 75:: Error OnGpsFixChanged either is not found or is not a valid event
    03/26/2009 18:27:27 EDT:ERROR - EventSubscriber: subscribe() - 75:: Error OnGpsSpeedChanged either is not found or is not a valid event
    03/26/2009 18:27:27 EDT:ERROR - EventSubscriber: subscribe() - 75:: Error OnGpsAltitudeChanged either is not found or is not a valid event
    03/26/2009 18:27:27 EDT:ERROR - EventSubscriber: subscribe() - 75:: Error OnGpsHeadingChanged either is not found or is not a valid event
    2009-03-26 18:29:16 :: Query: get_result: prepare query failed: SELECT * FROM ListboxSettings LIMIT 0,1: no such table: ListboxSettings(1)
    03/26/2009 18:29:16 EDT:ERROR - Failed to get listbox settings for: media_list_box
    03/26/2009 18:29:19 EDT:ERROR - EventSubscriber: fireEvent() - 90:: Error OnUpdate_ either is not found or is not a valid event

    Does this have something with new configuration options I might have missed?

    Thanks,
    Scott

  2. #2
    licensed to kill - FKA kev000
    Auto Apps:loading...
    tripzero's Avatar
    Join Date
    Aug 2006
    Location
    16.40618, 120.61106
    Posts
    2,560
    a couple of problems I see from the log:

    1) you need to install the liberation-ttf fonts.

    2) because of all the changes, you'll likely want to copy the new config to ~/.nghost/ and replace your old nghost.conf. Also, delete the file NGhost from ~./nghost/. There have been a number of database changes so you'll want to start fresh with a new database.

    3) because you'll be erasing the old database, you'll want to run nscan again and repopulate the db with your media. Make sure that nghost.conf points to the right media locations on your disk.

    Most of those event errors are because you don't have the obd plugin loaded, which is acceptable.

    The only error that concerns me is:

    03/26/2009 18:29:16 EDT:ERROR - Failed to get listbox settings for: media_list_box
    03/26/2009 18:29:19 EDT:ERROR - EventSubscriber: fireEvent() - 90:: Error OnUpdate_ either is not found or is not a valid event
    if the above doesn't fix your problem, let me know and I'll look into these errors a bit more.

    The only bug I'm aware of in nghost from svn is regarding nweather/nowplaying screens. nghost may segfault if you go back and forth between those screens.

    Let us know if you like the enhancements.
    Former author of LinuxICE, nghost, nobdy.
    Current author of Automotive Message Broker (AMB).
    Works on Tizen IVI. Does not represent anyone or anything but himself.

  3. #3
    Newbie
    Join Date
    Mar 2009
    Posts
    6
    I followed your directions and also looked at some other stuff:

    I installed the liberation fonts and that error message went away.
    I made sure the configuration files were right in /usr/local/etc/nghost.
    I deleted the old database and ran nscan and nghost again.

    The same problem with empty list boxes still persisted so I this time I ran nscan with more debugging output and found the following:

    Nscan starts fine and waits on a connection from nghost.
    When it scans my music collection, it sees every file in the directory tree, but gives an error on every file such as

    03/27/2009 09:25:39 EDTEBUG - i = 1207
    03/27/2009 09:25:39 EDTEBUG - MediaDao: Creating mediaObj entry in db for [/usr/local/mp3/Crosby, Stills & Nash/Greatest Hits/18 - Cathedral (LP Version).mp3]
    03/27/2009 09:25:39 EDT:WARNING - settings.cpp:isMedia(506) - error loading url '/usr/local/mp3/Crosby, Stills & Nash/Greatest Hits/18 - Cathedral (LP Version).mp3'. maybe add the extention to nghost.conf?

    This happens to all music files, not matter if there are spaces, no spaces, parenthesis, etc.

    I checked to make sure that I didn't delete the entry in the config file that said an extension of mp3 meant a music file and it is still there.

    So with the config files pointing to the same directory (/usr/local/mp3) one version loads all the songs fine and one version errors on each song.

    Scott

  4. #4
    licensed to kill - FKA kev000
    Auto Apps:loading...
    tripzero's Avatar
    Join Date
    Aug 2006
    Location
    16.40618, 120.61106
    Posts
    2,560
    i'm not sure, but the extra "," in the directory may cause a SQL error when nscan INSERT it. I'll have to check to make sure those are escaped correctly. But that doesn't seem to be the problem....

    After thinking about it for a while, I do remember this happening to me at one point. The problem was a spelling error in the code/settings that was fixed. "extention" should be "extension" make sure that it's spelled correctly in your config file. And that should fix it.
    Former author of LinuxICE, nghost, nobdy.
    Current author of Automotive Message Broker (AMB).
    Works on Tizen IVI. Does not represent anyone or anything but himself.

  5. #5
    Newbie
    Join Date
    Mar 2009
    Posts
    6
    I changed audioextentions to audioextensions in the config file but it had the opposite effect as desired. Now nscan descends into all of the subdirectories in my mp3 directory but never recognizes any files it should try to load.

    I grepped the source code directories for nghost2 and everywhere I searched for "audioexten" I found "audioextentions" spelled with a 't'. It looks like everything matches if I leave it with a 't' in the config file.

    The first time I ever installed nghost I had an error message very similar to my original one above. Nscan would find the file as a valid media file because it had permissions to get a directory listing and matched the mp3 extension to the config file. The problem was that the files didn't have the right permissions on them to be read by nscan or nghost and therefore when it tried to read the contents of the file (id3 tags?) it would throw the error:
    error loading url blah blah. I fixed the file permissions and everything worked fine. I have confirmed that the files still have wide open permissions (777) on them so I don't understand why nscan finds the file, throws the url error, and doesn't update the database.

    Scott

  6. #6
    licensed to kill - FKA kev000
    Auto Apps:loading...
    tripzero's Avatar
    Join Date
    Aug 2006
    Location
    16.40618, 120.61106
    Posts
    2,560
    From my local nghost.conf:

    #supported media extentions:
    audioextensions=mp3|ogg|flac
    videoextensions=mpg|avi|mp4|mpeg
    This works for me.

    While there are still spelling errors in the code, the most important regarding our issue is this:

    Code:
    void
    nghost::settingsInit()
    {
    	string audioext=getOption("audioextensions");
    	string videoext=getOption("videoextensions");
    	parseExtentions(audioext);
    	audioextentions=templist;
    	templist.clear();
    	parseExtentions(videoext);
    	videoextentions=templist;
    	templist.clear();
    }
    As you can see, it looks for the "audioextensions" option in the config and sets the variable audioextentions which is spelled wrong.

    Could you paste the nscan log when you change it to "audioextensions" ?

    EDIT: I committed some additional debugging information that should help. Please update before you run. Thanks
    Former author of LinuxICE, nghost, nobdy.
    Current author of Automotive Message Broker (AMB).
    Works on Tizen IVI. Does not represent anyone or anything but himself.

Similar Threads

  1. Andi-Mp Alpha 1 Release
    By VBWizz in forum Software & Software Development
    Replies: 14
    Last Post: 10-25-2007, 07:44 PM
  2. [FRONTEND] MMC (Mobile Media Center) Dev Release
    By Bitoholic in forum Mobile Media Center
    Replies: 14
    Last Post: 09-23-2006, 10:14 AM
  3. 1.6 Bugs (sorry)
    By GReeToZ in forum Centrafuse
    Replies: 14
    Last Post: 03-06-2006, 10:08 PM
  4. Release CENTRAFUSE BETA 2 (1.3)
    By veetid in forum Centrafuse
    Replies: 128
    Last Post: 08-01-2005, 03:13 AM
  5. Bugs so far in 1.3 BETA
    By GReeToZ in forum Centrafuse
    Replies: 11
    Last Post: 07-17-2005, 08:00 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •