INTERACT FORUM

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1]   Go Down

Author Topic: JRiver Fails to Import FLAC file But Won't Say Why  (Read 942 times)

sarcanon

  • Recent member
  • *
  • Posts: 36
JRiver Fails to Import FLAC file But Won't Say Why
« on: April 06, 2021, 08:10:50 pm »

I've tried repeatedly to import an album of individual FLAC files, and JRiver consistently fails to import one of the 17 tracks.

The import summary says the following:

Quote
Library now has 224878 files. Search and update took 0:00.

Imported 0 new files.
Failed to import 1 file.

In-depth details:
Failed to import:
    P:\makdelart-split\Bach-Sacred Vocal Works-Bach 2000\B2000-ScrdVcl-11-14\CD13 - Psalm 51, Arias\Bach - Sacred Vocal Works (Bach2000 - Vol.6 CD13 - Psalm 51, Arias - Gunar Letzbor, Peter Schreier (17 - BWV0245c - Ach windet euch nicht so, geplagte Seelen-).flac

I've looked the log file, but there is nothing there indicating any kind of error or warning about this track.

The relevant portion of the log file is as follows:

Quote
...
0049048: 31260: Import: GetNewFiles: Searching: P:\makdelart-split\Bach-Sacred Vocal Works-Bach 2000\B2000-ScrdVcl-11-14\CD13 - Psalm 51, Arias\
0049050: 31260: Import: GetNewFiles: Importing (1 files)
0049050: 31260: Import: ImportNewFiles: Start
0049050: 31260: Import: ImportNewFiles: Adding: P:\makdelart-split\Bach-Sacred Vocal Works-Bach 2000\B2000-ScrdVcl-11-14\CD13 - Psalm 51, Arias\Bach - Sacred Vocal Works (Bach2000 - Vol.6 CD13 - Psalm 51, Arias - Gunar Letzbor, Peter Schreier (17 - BWV0245c - Ach windet euch nicht so, geplagte Seelen-).flac
0049050: 31260: Database: CMediaDatabase::AddFile: JRAnalyzer: 0x2757b179fc0
0049050: 31260: Database: CMediaDatabase::AddFile: Calling JRAnalyzer::Open
0049050: 31260: Import: JRAnalyzer::Open: Start
0049050: 31260: Import: JRAnalyzer::AddFile: Start
0049050: 31260: Import: JRAnalyzer::AddFile: Filename: P:\makdelart-split\Bach-Sacred Vocal Works-Bach 2000\B2000-ScrdVcl-11-14\CD13 - Psalm 51, Arias\Bach - Sacred Vocal Works (Bach2000 - Vol.6 CD13 - Psalm 51, Arias - Gunar Letzbor, Peter Schreier (17 - BWV0245c - Ach windet euch nicht so, geplagte Seelen-).flac
0049050: 31260: Import: JRAnalyzer::AddFile: Start
0049050: 31260: Import: JRAnalyzer::AddFile: Filename: P:\makdelart-split\Bach-Sacred Vocal Works-Bach 2000\B2000-ScrdVcl-11-14\CD13 - Psalm 51, Arias\Bach - Sacred Vocal Works (Bach2000 - Vol.6 CD13 - Psalm 51, Arias - Gunar Letzbor, Peter Schreier (17 - BWV0245c - Ach windet euch nicht so, geplagte Seelen-).flac
0049050: 31260: Import: JRAnalyzer::AddFileMJ: Start
0049050: 31260: General: CFileInfo::CFileInfo: Start
0049050: 31260: General: CFileInfo::CFileInfo: Finish (0 ms)
0049050: 31260: General: CFileInfo::~CFileInfo: Start
0049050: 31260: General: CFileInfo::Close: Start
0049050: 31260: General: CFileInfo::Close: Finish (0 ms)
0049050: 31260: General: CFileInfo::~CFileInfo: Finish (0 ms)
0049051: 31260: Import: JRAnalyzer::AddFileMJ: Finish (0 ms)
0049051: 31260: Import: JRAnalyzer::AddFile: Finish (0 ms)
0049051: 31260: Import: JRAnalyzer::AddFile: Finish (1 ms)
0049051: 31260: Import: JRAnalyzer::Open: Finish (1 ms)
0049051: 31260: Database: CMediaDatabase::AddFile: JRAnalyzer::Open returned
0049051: 31260: Import: ImportNewFiles:     Failed to analyze / add (changed recently)
0049051: 31260: Import: ImportNewFiles: Finish (1 ms)
0049051: 31260: Import: ImportNewFiles: Finish (1 ms)
0049051: 31260: Import: GetNewFiles: Finish (40 ms)
0049051: 31260: Import: GetMissingAndUpdateFiles: Start
0049051: 31260: Import: GetMissingAndUpdateFiles: Getting files
0049054: 31260: Import: GetMissingAndUpdateFiles: Sorting files
0049054: 31260: Import: GetMissingAndUpdateFiles: Looping 0 files
0049054: 31260: Import: GetMissingAndUpdateFiles: Finish (3 ms)
0049057: 31260: Import: Process: Finish (46 ms)
0049074: 31672: Import: Finish: Updating view schemes
0049092: 31672: Import: Finish: Showing summary
0049100: 31672: General: CMainUIWnd::Resize: Start
...

I've tried this repeatedly and get the same result each time. JRiver just doesn't like this one file, but gives no information about why it fails to import it.

Running latest version (27.0.79 64-bit) on Windows 10 Pro.

Any ideas about what I am doing wrong?

Thank you.

Logged

tij

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 1559
Re: JRiver Fails to Import FLAC file But Won't Say Why
« Reply #1 on: April 07, 2021, 12:47:03 am »

Under Tools > Options > General > Advanced, try checking the option to support long filenames.
Logged
HTPC: Win11 Pro, MC: latest 31(64b), NV Driver: v425.31, CPU: i9-12900K, 32GB RAM, GeForce: 2080ti
Screen: LG 2016 E6
NAS: FreeNAS 11.1, SuperMicro SSG-5048R-E1CR36L, E5-1620v4, 64GB ECC RAM, 18xUltrastar He12-SAS3 drives, 2x240GB SSD (OS)

sarcanon

  • Recent member
  • *
  • Posts: 36
Re: JRiver Fails to Import FLAC file But Won't Say Why
« Reply #2 on: April 07, 2021, 04:08:26 pm »

Under Tools > Options > General > Advanced, try checking the option to support long filenames.

Thank you for the suggestion, but that option was already enabled.
Logged

BigSpider

  • Galactic Citizen
  • ****
  • Posts: 350
Re: JRiver Fails to Import FLAC file But Won't Say Why
« Reply #3 on: April 07, 2021, 04:11:55 pm »

Does the file play if you right click it in windows explorer and select JRiver MC as the playing device?
Logged
English spiders are kind of small, but when I was living in the African rain forest well ......

Dawgincontrol

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 664
  • We have met the enemy and he is us.
Re: JRiver Fails to Import FLAC file But Won't Say Why
« Reply #4 on: April 07, 2021, 08:52:48 pm »

Try copying the file, make a duplicate and rename it.  Don't delete it, copy it.  See what that does.

Also, will it play in other prgrams?
Logged

sarcanon

  • Recent member
  • *
  • Posts: 36
Re: JRiver Fails to Import FLAC file But Won't Say Why
« Reply #5 on: April 09, 2021, 08:04:58 am »

Does the file play if you right click it in windows explorer and select JRiver MC as the playing device?

Try copying the file, make a duplicate and rename it.  Don't delete it, copy it.  See what that does.

Also, will it play in other prgrams?

So, it did play in JRiver when right-clicking in File Explorer. However, the same failed in VLC.

I did a little experimentation and renamed the file to something shorter, and lo and behold, JRiver successfully imported it. So, despite the longer file name support being enabled, it turns out JRiver still chokes on files with longer names. At least this one.

Quickly trying to guess at what the magic file length is, the full file path that JRiver objected to was 260 chars, while the shortened length that successfully imported was 214. So, I'm guessing it's going to be 255 (or 256) characters.

In any event, it would be much appreciated if JRiver could provide a meaningful error message in the results window when this sort of thing happens. Just failing without explanation is suboptimal. :-)

Logged

Matt

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 41968
  • Shoes gone again!
Re: JRiver Fails to Import FLAC file But Won't Say Why
« Reply #6 on: April 09, 2021, 08:16:22 am »

Could you test an APE or MP3 with the same long filename?  I think our FLAC plugin might not be handling long paths nicely.

Let me know and thanks.
Logged
Matt Ashland, JRiver Media Center

sarcanon

  • Recent member
  • *
  • Posts: 36
Re: JRiver Fails to Import FLAC file But Won't Say Why
« Reply #7 on: April 09, 2021, 09:07:55 am »

Could you test an APE or MP3 with the same long filename?  I think our FLAC plugin might not be handling long paths nicely.

Let me know and thanks.

I'm not familiar with APE files. But I did rename an existing MP3 to have a 274-character file path and it was successfully imported.
Logged

Matt

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 41968
  • Shoes gone again!
Re: JRiver Fails to Import FLAC file But Won't Say Why
« Reply #8 on: April 09, 2021, 09:28:43 am »

I think I just figured out the problem with the FLAC file you posted the filename to.

It was exactly the MAX_PATH length.  We do the special stuff if the name is longer, but it looks like we also need to do it if the name is equal.

Thanks for the help!
Logged
Matt Ashland, JRiver Media Center

sarcanon

  • Recent member
  • *
  • Posts: 36
Re: JRiver Fails to Import FLAC file But Won't Say Why
« Reply #9 on: April 09, 2021, 05:32:48 pm »

I think I just figured out the problem with the FLAC file you posted the filename to.

It was exactly the MAX_PATH length.  We do the special stuff if the name is longer, but it looks like we also need to do it if the name is equal.

Ah, off-by-one errors. You can't call yourself an experienced programmer until you've been tripped up by these at least once. :-)
Logged

dtc

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 3019
Re: JRiver Fails to Import FLAC file But Won't Say Why
« Reply #10 on: April 09, 2021, 06:46:49 pm »

Ah, off-by-one errors. You can't call yourself an experienced programmer until you've been tripped up by these at least once. :-)

Always test the end cases, even if they seem extreme.
Logged

Matt

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 41968
  • Shoes gone again!
Re: JRiver Fails to Import FLAC file But Won't Say Why
« Reply #11 on: April 14, 2021, 01:54:27 pm »

Logged
Matt Ashland, JRiver Media Center
Pages: [1]   Go Up