View Issue Details

IDProjectCategoryView StatusLast Update
0005547MMW v4Install/Configpublic2009-05-15 18:57
ReporterBex Assigned To 
PriorityimmediateSeveritymajorReproducibilityalways
Status closedResolutionfixed 
Product Version3.1 
Fixed in Version3.1 
Summary0005547: MediaMonkey.ini problems. (Regression)
DescriptionAll of a sudden one of my MM installations can't open up with correct MediaMonkey.ini file. It has a custom location in the MM directory where also the DB is located. The ini file is correctly updated with the full DB-part.
When opening this MM, it strangely enough finds the DB and copies it to the Application\Mediamonkey folder where it also creates a brand new ini file. MM then opens up and acts as if it is a first install/use.

If I move the ini to the Application\Mediamonkey folder before opening MM same thing happens.

If a try to force MM to use the correct ini file by using the /INIFILE=fullpath command line option, a strange error occurs "There was a problem downloading the following files" see attached image.

Tested with 1240. Log, two problematic ini files and two images attached.
TagsNo tags attached.
Attached Files
MM3log&ini.rar (99,523 bytes)
Fixed in build1241

Relationships

related to 0005575 assignedpetr If database specified in DBName not handled correctly 
related to 0005578 closedjiri On restart of MM, library sometimes is completely empty 
related to 0006672 new When DB becomes unavailable MediaMonkey hangs 

Activities

Bex

2009-04-26 16:57

updater   ~0017594

Ok, think i know why this is happening. I've been developing scripts and needed to change some trivial ini values during testing, some of these changes makes the ini "corrupt" and triggers the described behavior.

Bex

2009-04-26 17:07

updater   ~0017595

This is a regression. It is not reproducible in 1237.

petr

2009-04-27 17:16

developer   ~0017602

Bex. I've tried INI you sent to open using INIFILE parameter and didn't work. Then i've tried to open and save it in PSPad (text editor) with default setting (UTF-8) and now it's working fine so INI you sent us is not fully UTF8 compatible and MM can't read it (size before saving in PSPad was 104 136 bytes and after save 104 133 bytes).

Bex

2009-04-27 23:01

updater   ~0017605

I used notepad. Surely ini changes made in notepad should be accepted by MM, otherwise we'll have a lot of problems. What am I missing?

petr

2009-04-27 23:11

developer   ~0017606

It will be accepted until you write any non-ASCII code (or when any of that character is already in INI file and you'll edit that using notepad) because of Notepad is using Windows codepage for saving files.
That's not a bug in MM (MM must be able to read/save INI with unicode so we're using UTF8 standard), but it's notepad 'problem' because it doesn't supporting UTF8.

Bex

2009-04-27 23:16

updater   ~0017607

Ok then, but we need to update all help files etc with this info, otherwise users will fail in updating their ini files,

petr

2009-04-27 23:47

developer   ~0017609

I've just checked and Windows XP SP3 already have UTF8 support in Notepad, but it's using special 'sign' at the beginning of the file (EF BB BF .. known as BOM we're not using) and this could be our problem.

For details see http://en.wikipedia.org/wiki/UTF8#Byte-order_mark

Bex

2009-04-28 12:07

updater   ~0017614

Interesting, I wonder if this can explain why some users have this problem from time to time?
Is it possible to make MM ignore this special sign if it exists?

petr

2009-04-28 12:16

developer   ~0017615

Just working on it.

petr

2009-04-28 12:34

developer   ~0017616

Fixed in 1241

peke

2009-05-02 01:17

developer   ~0017663

Last edited: 2009-05-02 01:21

Reopenned Tested in 1242

There is big Difference how /INIFILE= is handled in these two cases:
1. /INIFILE="f:\?ekanje žreba\MediaMonkey.ini"
2. /INIFILE=f:\?ekanje žreba\MediaMonkey.ini

Second Instance Throw an error. Solution for that would be that PARAMSTR is checks if First Char Of Param STR is "/" and if not Append all until "/" is found as First Char Of ParamStr or ParamCount is reached.

Additionally adding Adding MM.DB to same Folder MediaMonkey.ini Resulted in two Exception Bug Reports (sent with "BUG 5547" in description) MediaMonkey.ini is save as ASCII/ANSI But text font was set to Arial/Central European

Library used to test and MediaMonkey.ini uploaded to FTP

peke

2009-05-02 01:24

developer   ~0017664

Re uploaded files to FTP as An archive due the fact that mantis do not handle foreign chars good.

petr

2009-05-02 18:57

developer   ~0017668

This is how Windows working with parameters. Parameter with space _must_ me in commas. It's not a MM bug.
Second issue ... MM's trying to find database in location specified in INI file and then in our default folder. Probably this could be added as new mantis entry with low priority.

peke

2009-05-02 20:55

developer   ~0017669

I know that is how windows do, it is not too hard to make simple function that will go thru all ParamStr and Create small Array of Strings as it will save us lots user reports. But I agree with that we best way it would be to update TODOC and clear things like this even it is commonly known.

RE BOM: NotePad++ have great Text Format Converter. Am I right that MediaMonkey.ini in My Archive is plain ANSI without BOM?