Jump to content

System.OverflowException: Value was either too large or too small


Recommended Posts

Posted

I have a very large library with over 10,000 folders and files in it. When it was 9000+, it was running fine. 

When I add another 500+ files in it, it seems like it start running into problems.It cannot show more movies/shows and keep scanning the same folder. Right now, the number stopped at 9551.

Here is the log file. Please let me know if you need more information. Thanks.

embyserver.txt

visproduction
Posted

Just some guesses.

When I look up some of the errors, I see people just shutting down and restarting helped.  Obviously, try that first, if you haven't done it already.

 Every 3 seconds you get an error:

2022-03-05 00:19:29.029 Error App: sonos error sending soap request
    *** Error Report ***
    Version: 4.6.7.0
    Command line: C:\Users\fived\AppData\Roaming\Emby-Server\system\EmbyServer.dll
    Operating system: Microsoft Windows 10.0.18363
    Framework: .NET Core 3.1.21
    OS/Process: x64/x64
    Runtime: C:/Users/fived/AppData/Roaming/Emby-Server/system/System.Private.CoreLib.dll
    Processor count: 2
    Data path: C:\Users\fived\AppData\Roaming\Emby-Server\programdata
    Application path: C:\Users\fived\AppData\Roaming\Emby-Server\system
    System.InvalidOperationException: System.InvalidOperationException: There is an error in XML document (1, 235).
     ---> System.OverflowException: Value was either too large or too small for an unsigned byte.
       at System.Number.ThrowOverflowException(TypeCode type)...

===

Programdata/config/system.xml has these settings at the bottom:

  <CollapseVideoFolders>true</CollapseVideoFolders>
  <EnableOriginalTrackTitles>false</EnableOriginalTrackTitles>
  <VacuumDatabaseOnStartup>false</VacuumDatabaseOnStartup>
  <SimultaneousStreamLimit>0</SimultaneousStreamLimit>
  <DatabaseCacheSizeMB>512</DatabaseCacheSizeMB>
  <EnableSqLiteMmio>false</EnableSqLiteMmio>
  <NextUpUpgraded>true</NextUpUpgraded>
  <ChannelOptionsUpgraded>true</ChannelOptionsUpgraded>
  <OptimizeDbOnShutdown>false</OptimizeDbOnShutdown>
  <DatabaseAnalysisLimit>400</DatabaseAnalysisLimit>
===

I would guess DatabaseCacheSizeMB and DatabaseAnalysistLimit values might have something to do with your issue.

I am looking at this code for the first time, so it's quite likely I don't know the real reason.  Back up everything before tweaking anything.

 

 

 

Posted

Please try removing the third party plugins that you've installed, then restart the server and see if the issue persists. Thanks .

Posted
3 hours ago, Luke said:

Please try removing the third party plugins that you've installed, then restart the server and see if the issue persists. Thanks .

Yep. That seems the case. When I removed the sonos third party plug-in and restarted the server, I found that one of the scanning folder is missing from this library. Not sure why it is missing, I dont recall removing any. Anyways, It seems like the server is working fine without the sonos plug-in. All the files have been scanned and discovered. Thanks.

Posted

That's interesting. Thanks for the feedback.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...