Freebox Jukebox

E-Touch General Category => Support and Bug Reports => Topic started by: g0pkh on October 17, 2011, 11:36:03 PM

Title: Searching for tracks containing "Z" in the name
Post by: g0pkh on October 17, 2011, 11:36:03 PM
Hi.

I have noticed a really strange problem with the search function
This is very difficult to explain but it concerns searching for tracks containing the letter "Z" in the title.
It is as though e-touch remembers any search with Z in the title.

You get more than just Z displayed as soon as you enter Z as the first search letter.
For example when I search for a song called "Zoom"  as soon as I enter the first Z,  I see ZOO shown in the search window. Sometimes e-touch will even hang at this point.


I may need to attach screen shots of this issue, but before I do. Has anyone else seen this behavior.
It only seems to happen when using the letter Z as a first character.

Pete
Title: Re: Searching for tracks containing "Z" in the name
Post by: g0pkh on October 17, 2011, 11:38:30 PM
I forgot to mention.

I noticed this first with version 7.0.6 but also tried the latest V7.0.14 and still see the problem.

In fact e-touch hangs (100% CPU) when I try to search for that particular song.


Title: Re: Searching for tracks containing "Z" in the name
Post by: Barcrest on October 18, 2011, 07:11:30 AM
Odd... I'll take a look at this tonight. I hate these bugs that seem to appear in functions that I have not even changed.
Title: Re: Searching for tracks containing "Z" in the name
Post by: g0pkh on October 18, 2011, 08:02:29 AM
Thanks Barry

It is really weird, this one. If I add just the one album with the song into e-touch, then it searches it fine.
But once I have added my entire collection (about 19,000) songs. When searching for "zoom" e-touch just hangs at 100% CPU after I type the forth character (M) in. I have tried this on a number of different PC's
including my test one and the results are the same, so it doesn't appear hardware related.

A number of other songs which include those search characters appear in the results list as I enter the search characters, until e-touch stops responding of course. I am guessing its something to do with similar search results within the other tracks.

It is so obscure, it really difficult to explain it.

I am not sure its to do with something you have changed recently, since its present in 7.0.6 right through to 7.0.14 beta 24

I will try a much earlier release on my test machine, and let you know if its still present


Pete

Title: Re: Searching for tracks containing "Z" in the name
Post by: Barcrest on October 18, 2011, 10:43:09 AM
It might turn out to be an issue with something in your library causing something to mess up. I assume you see it hanging as you are typing and it displays the 4 quick search results?

A little more info might help me out...

What library are you searching on? I assume audio but it's good to check.
Do you have search set to search all libraries in the options screen or just the current library?

I'm sure we will figure it out, hopefully in time to get a beta out to you later.
Title: Re: Searching for tracks containing "Z" in the name
Post by: g0pkh on October 18, 2011, 10:49:40 AM
Hi Barry

Yes I am searching on Audio. I am only using e-touch for audio.
I didn't know you could turn off search all libraries in the options screen.

Yes I do see it hang as I type into the search field and it displays the 4 quick results.
I do agree that I think it may be something in my library that is causing the problem.

All my files are properly tagged ( I use MP3TAG for this) I am wondering if it may be caused by an illegal or strange character in the either the file name or tag somewhere.

But of course with 860 albums in the library, it is a bit like searching a needle in a haystack  :)

Are there any known characters that could cause search problems either in the file names, directory structures or tags ?

Thanks for you help.

Pete
Title: Re: Searching for tracks containing "Z" in the name
Post by: Barcrest on October 18, 2011, 11:47:05 AM
I don't know of any thing that should cause it to hang tag wise. You could try setting the search to only search the current library.
Title: Re: Searching for tracks containing "Z" in the name
Post by: g0pkh on October 18, 2011, 11:53:26 AM
I don't seem to be able to find that in the option menu.
I am currently trying things on 7.0.6 within a Virtual machine

(while I am at work) :)

I do have a lot of duplicate files (in different compilation albums etc) could this be a problem
while searching ?

At the moment I am continually removing albums from the library, and rebuilding the database
every time, to try to find the bad album. Currently it is hanging after just searching Z and O

Very weird.

Title: Re: Searching for tracks containing "Z" in the name
Post by: Barcrest on October 18, 2011, 12:49:37 PM
Quote from: g0pkh on October 18, 2011, 11:53:26 AM
I don't seem to be able to find that in the option menu.
I am currently trying things on 7.0.6 within a Virtual machine

(while I am at work) :)

I do have a lot of duplicate files (in different compilation albums etc) could this be a problem
while searching ?

At the moment I am continually removing albums from the library, and rebuilding the database
every time, to try to find the bad album. Currently it is hanging after just searching Z and O

Very weird.



Duplicate files will not be an issue, I have used it with 100,000 albums without a problem so it won't be that.
Title: Re: Searching for tracks containing "Z" in the name
Post by: g0pkh on October 18, 2011, 02:29:57 PM
Hi Barry

I have found my problem (or at least one) I think.

I have the Coldplay Album X & Y on my Juke.

The crashing bug is reproduceable by having an mp3 file with the track title in the tag as
X & Y ( as in track 6 on that album).

If I use MP3TAG and edit the tag of that one track so that the track title is (X & Y) note the brackets.
All is fine,  If I change the track title to simply X & Y then when I search for a track title using Z then another character e-touch hangs.

Can you reproduce this ?

For now I have simply changed the tag to show the title as (X & Y)

This has taken hours of removing content from my library and retesting, until I came to this one album.

Very , very weird.

Pete

Title: Re: Searching for tracks containing "Z" in the name
Post by: g0pkh on October 18, 2011, 02:54:23 PM
After further checking.

It would appear that if any track title starts with an X then searching for Z and another character causes e-touch to hang.

I tried changing this particular track title in the tag to W & Y for instance, and all seemed to be ok when searching.

if would be great if someone else could confirm these findings, just as a check for my sanity  :)

Pete
Title: Re: Searching for tracks containing "Z" in the name
Post by: Barcrest on October 18, 2011, 03:18:45 PM
Just loading it up now to check, i have the cold play album so we will wee if it happens for me.
Title: Re: Searching for tracks containing "Z" in the name
Post by: Barcrest on October 18, 2011, 03:38:48 PM
Seems to work ok here ???
Title: Re: Searching for tracks containing "Z" in the name
Post by: g0pkh on October 18, 2011, 03:49:41 PM
The album plays ok for me too.

I just get these weird hangs when searching for other titles.
Particularly noticeable when searching for tracks beginning with "Z"



Title: Re: Searching for tracks containing "Z" in the name
Post by: Barcrest on October 18, 2011, 03:53:12 PM
I was able to search for zoom without an issue...  I have just implimented a faster search and i'm just making a release now. Not sure if it will fix your issue or not... Hmm just had a thought, you don't have a track with no title in the track tag field do you?

EDIT: Just changed the DB Loading code to exclude tracks that do not have a title in the tag. Maybe I could dump out a list of untagged tracks to a file?
Title: Re: Searching for tracks containing "Z" in the name
Post by: Barcrest on October 18, 2011, 04:02:57 PM
Was there anything in the error log?
Title: Re: Searching for tracks containing "Z" in the name
Post by: g0pkh on October 18, 2011, 04:38:06 PM
Hi Barry

Havn't checked the error log. I will have a look on my live system tonight and let you know.

I don't have any files with a null track title, I have just checked

I can now work around my problem however.

What I did was this.

Load all my tracks into MP3TAG and look for any which had an X as the first character
I surrounded the title in () as I indicated above

X & Y becomes (X & Y)

Xanadu becomes (Xanadu)

I only found 3 tracks in my entire library that had a title beginning in "X"

This appears to have fixed the searching problems I was having.

I will have to remember not to have any track with X as the first letter in the track Title  :)

Thanks for you help.

Pete
Title: Re: Searching for tracks containing "Z" in the name
Post by: Barcrest on October 19, 2011, 07:02:26 AM
Well that isn't a fix it's more a work around, I don't know why you are getting that error.
Title: Re: Searching for tracks containing "Z" in the name
Post by: g0pkh on October 19, 2011, 11:43:56 AM
Hi Barry

I tried the same workaround last night on the live Juke, in our conservatory.
And all is well with searching now.

I have not tried the latest beta yet. But certainly on all the test environments I have tried have responded in the same way.

There must be something obscure in one of my library files, but to find it would be near impossible.

Strange that no else has seen this. Particularly since I can now reproduce it faithfully on any environment.

I guess I will just have to remember to check any new music I add, and ensure that no title begins with an "X"



Pete

Title: Re: Searching for tracks containing "Z" in the name
Post by: g0pkh on October 19, 2011, 12:00:45 PM
For info.

I checked the error log from my virtual machine that I was playing with yesterday, when I found the workaround.

It is full of the following messages, nothing else.

#2011-10-18 15:47:35#,"9","Subscript out of range","Form1","Label31_Change","E-Touch v7.0.6","pete","TEST-7D1FD99209"
#2011-10-18 15:47:35#,"9","Subscript out of range","Form1","Label31_Change","E-Touch v7.0.6","pete","TEST-7D1FD99209"
#2011-10-18 15:47:35#,"9","Subscript out of range","Form1","Label31_Change","E-Touch v7.0.6","pete","TEST-7D1FD99209"
#2011-10-18 15:47:35#,"9","Subscript out of range","Form1","Label31_Change","E-Touch v7.0.6","pete","TEST-7D1FD99209"
#2011-10-18 15:47:35#,"9","Subscript out of range","Form1","Label31_Change","E-Touch v7.0.6","pete","TEST-7D1FD99209"
#2011-10-18 15:47:35#,"9","Subscript out of range","Form1","Label31_Change","E-Touch v7.0.6","pete","TEST-7D1FD99209"
#2011-10-18 15:47:35#,"9","Subscript out of range","Form1","Label31_Change","E-Touch v7.0.6","pete","TEST-7D1FD99209"
#2011-10-18 15:47:35#,"9","Subscript out of range","Form1","Label31_Change","E-Touch v7.0.6","pete","TEST-7D1FD99209"
#2011-10-18 15:47:35#,"9","Subscript out of range","Form1","Label31_Change","E-Touch v7.0.6","pete","TEST-7D1FD99209"
#2011-10-18 15:47:35#,"9","Subscript out of range","Form1","Label31_Change","E-Touch v7.0.6","pete","TEST-7D1FD99209"
#2011-10-18 15:49:06#,"5","Invalid procedure call or argument","Form1","Label31_Change","E-Touch v7.0.6","pete","TEST-7D1FD99209"
#2011-10-18 15:49:07#,"5","Invalid procedure call or argument","Form1","Label31_Change","E-Touch v7.0.6","pete","TEST-7D1FD99209"
#2011-10-18 15:49:08#,"5","Invalid procedure call or argument","Form1","Label31_Change","E-Touch v7.0.6","pete","TEST-7D1FD99209"
#2011-10-18 17:29:14#,"5","Invalid procedure call or argument","Form1","Label31_Change","E-Touch v7.0.6","pete","TEST-7D1FD99209"
#2011-10-18 17:29:16#,"5","Invalid procedure call or argument","Form1","Label31_Change","E-Touch v7.0.6","pete","TEST-7D1FD99209"
#2011-10-18 17:29:17#,"5","Invalid procedure call or argument","Form1","Label31_Change","E-Touch v7.0.6","pete","TEST-7D1FD99209"
#2011-10-18 17:29:18#,"5","Invalid procedure call or argument","Form1","Label31_Change","E-Touch v7.0.6","pete","TEST-7D1FD99209"
#2011-10-18 17:29:31#,"5","Invalid procedure call or argument","Form1","Label31_Change","E-Touch v7.0.6","pete","TEST-7D1FD99209"
#2011-10-18 17:29:32#,"5","Invalid procedure call or argument","Form1","Label31_Change","E-Touch v7.0.6","pete","TEST-7D1FD99209"
#2011-10-18 17:29:32#,"5","Invalid procedure call or argument","Form1","Label31_Change","E-Touch v7.0.6","pete","TEST-7D1FD99209"
#2011-10-18 17:29:33#,"5","Invalid procedure call or argument","Form1","Label31_Change","E-Touch v7.0.6","pete","TEST-7D1FD99209"
#2011-10-18 17:29:33#,"5","Invalid procedure call or argument","Form1","Label31_Change","E-Touch v7.0.6","pete","TEST-7D1FD99209"
Title: Re: Searching for tracks containing "Z" in the name
Post by: Barcrest on October 19, 2011, 03:15:46 PM
Trying to replicate now based on what you posted...
Title: Re: Searching for tracks containing "Z" in the name
Post by: Barcrest on October 19, 2011, 03:37:14 PM
Found the bug...

It was if there was a quick search result but it was in the last 4 songs of the library. I have fixed it and i'm compiling a new release for you now.

I didn't see it because of the size of my library but i was able to replicate it from the error log as i worked out what was going on and then searched for a song that i thought would do it. Also the last song in the library never showed up in quick search results this is also fixed....

I will also work on speeing up the quick search as i see some ways i can improve that. I will work on that later in the week.
Title: Re: Searching for tracks containing "Z" in the name
Post by: g0pkh on October 20, 2011, 08:12:36 AM
Excellent news Barry.

So the posting of the error log did help.
Glad you could replicate it in the end.

I will have upgrade soon now to V7.0.15

Great work.

Pete

Title: Re: Searching for tracks containing "Z" in the name
Post by: Barcrest on October 20, 2011, 09:12:29 AM
Yes the error log got me looking at the right bit of code and then I realised what was going on. I was then able to replicate the issue and resolve it. While I was doing this I noticed that the quick search code could be improved to make it quicker which is what I will be working on over the next few days.
Title: Re: Searching for tracks containing "Z" in the name
Post by: g0pkh on October 20, 2011, 10:16:10 AM
Hi Barry

I hate to be the bearer of bad news. But the bug still appears to be present.

I changed back the Track titles using MP3TAG removing the () so that the track titles again begin with X.

Uninstalled the previous 7.0.6, completely deleted the install directory, and then installed

7.0.15 onto my test VM machine. And built the database fresh.

I get the same hang from searching for a title ZOOM.  In fact I get as far as typing in Z O O then e-touch stops responding.  Running XP SP3 on my VM.

Here is a section from the errorlog.


#2011-10-20 11:05:40#,"8018","Operation valid only when the port is open","Module1","led_Sign","E-Touch v7.0.15","pete","TEST-7D1FD99209"
#2011-10-20 11:05:40#,"8012","The device is not open","Module1","led_Sign","E-Touch v7.0.15","pete","TEST-7D1FD99209"
#2011-10-20 11:06:12#,"9","Subscript out of range","Form1","Label31_Change","E-Touch v7.0.15","pete","TEST-7D1FD99209"
#2011-10-20 11:06:12#,"9","Subscript out of range","Form1","Label31_Change","E-Touch v7.0.15","pete","TEST-7D1FD99209"
#2011-10-20 11:06:12#,"9","Subscript out of range","Form1","Label31_Change","E-Touch v7.0.15","pete","TEST-7D1FD99209"
#2011-10-20 11:06:12#,"9","Subscript out of range","Form1","Label31_Change","E-Touch v7.0.15","pete","TEST-7D1FD99209"
#2011-10-20 11:06:12#,"9","Subscript out of range","Form1","Label31_Change","E-Touch v7.0.15","pete","TEST-7D1FD99209"
#2011-10-20 11:06:12#,"9","Subscript out of range","Form1","Label31_Change","E-Touch v7.0.15","pete","TEST-7D1FD99209"
#2011-10-20 11:06:12#,"9","Subscript out of range","Form1","Label31_Change","E-Touch v7.0.15","pete","TEST-7D1FD99209"
#2011-10-20 11:06:12#,"9","Subscript out of range","Form1","Label31_Change","E-Touch v7.0.15","pete","TEST-7D1FD99209"
#2011-10-20 11:06:12#,"9","Subscript out of range","Form1","Label31_Change","E-Touch v7.0.15","pete","TEST-7D1FD99209"
#2011-10-20 11:06:12#,"9","Subscript out of range","Form1","Label31_Change","E-Touch v7.0.15","pete","TEST-7D1FD99209"
#2011-10-20 11:06:12#,"9","Subscript out of range","Form1","Label31_Change","E-Touch v7.0.15","pete","TEST-7D1FD99209"
#2011-10-20 11:06:12#,"9","Subscript out of range","Form1","Label31_Change","E-Touch v7.0.15","pete","TEST-7D1FD99209"
#2011-10-20 11:06:12#,"9","Subscript out of range","Form1","Label31_Change","E-Touch v7.0.15","pete","TEST-7D1FD99209"
#2011-10-20 11:06:12#,"9","Subscript out of range","Form1","Label31_Change","E-Touch v7.0.15","pete","TEST-7D1FD99209"
#2011-10-20 11:06:12#,"9","Subscript out of range","Form1","Label31_Change","E-Touch v7.0.15","pete","TEST-7D1FD99209"
#2011-10-20 11:06:12#,"9","Subscript out of range","Form1","Label31_Change","E-Touch v7.0.15","pete","TEST-7D1FD99209"
#2011-10-20 11:06:12#,"9","Subscript out of range","Form1","Label31_Change","E-Touch v7.0.15","pete","TEST-7D1FD99209"
#2011-10-20 11:06:12#,"9","Subscript out of range","Form1","Label31_Change","E-Touch v7.0.15","pete","TEST-7D1FD99209"
#2011-10-20 11:06:12#,"9","Subscript out of range","Form1","Label31_Change","E-Touch v7.0.15","pete","TEST-7D1FD99209"
#2011-10-20 11:06:12#,"9","Subscript out of range","Form1","Label31_Change","E-Touch v7.0.15","pete","TEST-7D1FD99209"
#2011-10-20 11:06:12#,"9","Subscript out of range","Form1","Label31_Change","E-Touch v7.0.15","pete","TEST-7D1FD99209"
#2011-10-20 11:06:12#,"9","Subscript out of range","Form1","Label31_Change","E-Touch v7.0.15","pete","TEST-7D1FD99209"
#2011-10-20 11:06:12#,"9","Subscript out of range","Form1","Label31_Change","E-Touch v7.0.15","pete","TEST-7D1FD99209"
#2011-10-20 11:06:12#,"9","Subscript out of range","Form1","Label31_Change","E-Touch v7.0.15","pete","TEST-7D1FD99209"
#2011-10-20 11:06:12#,"9","Subscript out of range","Form1","Label31_Change","E-Touch v7.0.15","pete","TEST-7D1FD99209"
#2011-10-20 11:06:12#,"9","Subscript out of range","Form1","Label31_Change","E-Touch v7.0.15","pete","TEST-7D1FD99209"
#2011-10-20 11:06:12#,"9","Subscript out of range","Form1","Label31_Change","E-Touch v7.0.15","pete","TEST-7D1FD99209"
#2011-10-20 11:06:12#,"9","Subscript out of range","Form1","Label31_Change","E-Touch v7.0.15","pete","TEST-7D1FD99209"
#2011-10-20 11:06:12#,"9","Subscript out of range","Form1","Label31_Change","E-Touch v7.0.15","pete","TEST-7D1FD99209"
#2011-10-20 11:06:12#,"9","Subscript out of range","Form1","Label31_Change","E-Touch v7.0.15","pete","TEST-7D1FD99209"
#2011-10-20 11:06:12#,"9","Subscript out of range","Form1","Label31_Change","E-Touch v7.0.15","pete","TEST-7D1FD99209"
#2011-10-20 11:06:12#,"9","Subscript out of range","Form1","Label31_Change","E-Touch v7.0.15","pete","TEST-7D1FD99209"
#2011-10-20 11:06:12#,"9","Subscript out of range","Form1","Label31_Change","E-Touch v7.0.15","pete","TEST-7D1FD99209"
#2011-10-20 11:06:12#,"9","Subscript out of range","Form1","Label31_Change","E-Touch v7.0.15","pete","TEST-7D1FD99209"
#2011-10-20 11:06:12#,"9","Subscript out of range","Form1","Label31_Change","E-Touch v7.0.15","pete","TEST-7D1FD99209"
#2011-10-20 11:06:12#,"9","Subscript out of range","Form1","Label31_Change","E-Touch v7.0.15","pete","TEST-7D1FD99209"
#2011-10-20 11:06:12#,"9","Subscript out of range","Form1","Label31_Change","E-Touch v7.0.15","pete","TEST-7D1FD99209"
#2011-10-20 11:06:12#,"9","Subscript out of range","Form1","Label31_Change","E-Touch v7.0.15","pete","TEST-7D1FD99209"
#2011-10-20 11:06:12#,"9","Subscript out of range","Form1","Label31_Change","E-Touch v7.0.15","pete","TEST-7D1FD99209"
#2011-10-20 11:06:12#,"9","Subscript out of range","Form1","Label31_Change","E-Touch v7.0.15","pete","TEST-7D1FD99209"
#2011-10-20 11:06:12#,"9","Subscript out of range","Form1","Label31_Change","E-Touch v7.0.15","pete","TEST-7D1FD99209"
#2011-10-20 11:06:12#,"9","Subscript out of range","Form1","Label31_Change","E-Touch v7.0.15","pete","TEST-7D1FD99209"
#2011-10-20 11:06:12#,"9","Subscript out of range","Form1","Label31_Change","E-Touch v7.0.15","pete","TEST-7D1FD99209"
#2011-10-20 11:06:12#,"9","Subscript out of range","Form1","Label31_Change","E-Touch v7.0.15","pete","TEST-7D1FD99209"
#2011-10-20 11:06:12#,"9","Subscript out of range","Form1","Label31_Change","E-Touch v7.0.15","pete","TEST-7D1FD99209"
#2011-10-20 11:06:12#,"9","Subscript out of range","Form1","Label31_Change","E-Touch v7.0.15","pete","TEST-7D1FD99209"
#2011-10-20 11:06:12#,"9","Subscript out of range","Form1","Label31_Change","E-Touch v7.0.15","pete","TEST-7D1FD99209"
#2011-10-20 11:06:12#,"9","Subscript out of range","Form1","Label31_Change","E-Touch v7.0.15","pete","TEST-7D1FD99209"
#2011-10-20 11:06:12#,"9","Subscript out of range","Form1","Label31_Change","E-Touch v7.0.15","pete","TEST-7D1FD99209"
#2011-10-20 11:06:12#,"9","Subscript out of range","Form1","Label31_Change","E-Touch v7.0.15","pete","TEST-7D1FD99209"
#2011-10-20 11:06:12#,"9","Subscript out of range","Form1","Label31_Change","E-Touch v7.0.15","pete","TEST-7D1FD99209"
#2011-10-20 11:06:12#,"9","Subscript out of range","Form1","Label31_Change","E-Touch v7.0.15","pete","TEST-7D1FD99209"
#2011-10-20 11:06:12#,"9","Subscript out of range","Form1","Label31_Change","E-Touch v7.0.15","pete","TEST-7D1FD99209"
#2011-10-20 11:06:12#,"9","Subscript out of range","Form1","Label31_Change","E-Touch v7.0.15","pete","TEST-7D1FD99209"
#2011-10-20 11:06:12#,"9","Subscript out of range","Form1","Label31_Change","E-Touch v7.0.15","pete","TEST-7D1FD99209"
#2011-10-20 11:06:12#,"9","Subscript out of range","Form1","Label31_Change","E-Touch v7.0.15","pete","TEST-7D1FD99209"
#2011-10-20 11:06:12#,"9","Subscript out of range","Form1","Label31_Change","E-Touch v7.0.15","pete","TEST-7D1FD99209"
#2011-10-20 11:06:12#,"9","Subscript out of range","Form1","Label31_Change","E-Touch v7.0.15","pete","TEST-7D1FD99209"

Nothing else shown.

Pete

P.S Did I uninstall everything, or is there a possibility that I left some wreckage behind, maybe in the user profile or registry. I did first use the uninstall shortcut.

Title: Re: Searching for tracks containing "Z" in the name
Post by: g0pkh on October 21, 2011, 06:51:20 AM
Hi Barry

Re my above post about the bug still appearing to be present.
Did I do something wrong in the re-installation ?

Regards

Pete
Title: Re: Searching for tracks containing "Z" in the name
Post by: Barcrest on October 21, 2011, 08:55:20 AM
Well the error log is different than the last one, seems like there might be another issue that I have somehow overlooked.