PDA

View Full Version : Out of Memory



tobyjug
2008-06-25, 14:20
Not sure whether this is the correct place for this post, but I'm sure someone will let me know if it's not.
I'm currently running squeezecentre 7.0.1 on a freeNAS PC using SlimNAS 1.0.0
My problem is scanning for artwork. The artwork is embedded in the apple lossless file. The scan always seems to get to the same point before stopping. I have looked at the scanner.log file (see below) and seem to be getting an out of memory error. Can anyone help.

(/mnt/Media/slimnas/squeezecenter/scanner.pl line 217)
frame 3: (eval) (/mnt/Media/slimnas/squeezecenter/scanner.pl line 217)
frame 4: main::main (/mnt/Media/slimnas/squeezecenter/scanner.pl line 345)

[08-06-24 23:05:04.3945] Slim::Schema::throw_exception (217) Error: Out of memory during "large" request for 33558528 bytes, total sbrk() is 511506432 bytes at /mnt/Media/slimnas/squeezecenter/Slim/Schema/Track.pm line 297.
[08-06-24 23:05:04.4110] Slim::Schema::throw_exception (217) Backtrace:

frame 0: Slim::Utils::Log::logBacktrace (/mnt/Media/slimnas/squeezecenter/Slim/Schema.pm line 217)
frame 1: Slim::Schema::throw_exception (/mnt/Media/slimnas/squeezecenter/CPAN/DBIx/Class/Schema.pm line 606)
frame 2: DBIx::Class::Schema::txn_do (/mnt/Media/slimnas/squeezecenter/scanner.pl line 217)
frame 3: (eval) (/mnt/Media/slimnas/squeezecenter/scanner.pl line 217)
frame 4: main::main (/mnt/Media/slimnas/squeezecenter/scanner.pl line 345)

[08-06-25 01:27:21.7999] Slim::Schema::throw_exception (217) Error: Out of memory during "large" request for 33558528 bytes, total sbrk() is 517810176 bytes at /mnt/Media/slimnas/squeezecenter/Slim/Schema/Track.pm line 297.
[08-06-25 01:27:21.8160] Slim::Schema::throw_exception (217) Backtrace:

frame 0: Slim::Utils::Log::logBacktrace (/mnt/Media/slimnas/squeezecenter/Slim/Schema.pm line 217)
frame 1: Slim::Schema::throw_exception (/mnt/Media/slimnas/squeezecenter/CPAN/DBIx/Class/Schema.pm line 606)
frame 2: DBIx::Class::Schema::txn_do (/mnt/Media/slimnas/squeezecenter/scanner.pl line 217)
frame 3: (eval) (/mnt/Media/slimnas/squeezecenter/scanner.pl line 217)
frame 4: main::main (/mnt/Media/slimnas/squeezecenter/scanner.pl line 345)

[08-06-25 17:23:42.2312] Slim::Schema::throw_exception (217) Error: Out of memory during "large" request for 33558528 bytes, total sbrk() is 517810176 bytes at /mnt/Media/slimnas/squeezecenter/Slim/Schema/Track.pm line 297.
[08-06-25 17:23:42.2428] Slim::Schema::throw_exception (217) Backtrace:

frame 0: Slim::Utils::Log::logBacktrace (/mnt/Media/slimnas/squeezecenter/Slim/Schema.pm line 217)
frame 1: Slim::Schema::throw_exception (/mnt/Media/slimnas/squeezecenter/CPAN/DBIx/Class/Schema.pm line 606)
frame 2: DBIx::Class::Schema::txn_do (/mnt/Media/slimnas/squeezecenter/scanner.pl line 217)
frame 3: (eval) (/mnt/Media/slimnas/squeezecenter/scanner.pl line 217)
frame 4: main::main (/mnt/Media/slimnas/squeezecenter/scanner.pl line 345)

[08-06-25 18:05:59.3089] Slim::Schema::throw_exception (217) Error: Out of memory during "large" request for 33558528 bytes, total sbrk() is 517808128 bytes at /mnt/Media/slimnas/squeezecenter/Slim/Schema/Track.pm line 297.
[08-06-25 18:05:59.3210] Slim::Schema::throw_exception (217) Backtrace:

frame 0: Slim::Utils::Log::logBacktrace (/mnt/Media/slimnas/squeezecenter/Slim/Schema.pm line 217)
frame 1: Slim::Schema::throw_exception (/mnt/Media/slimnas/squeezecenter/CPAN/DBIx/Class/Schema.pm line 606)
frame 2: DBIx::Class::Schema::txn_do (/mnt/Media/slimnas/squeezecenter/scanner.pl line 217)
frame 3: (eval) (/mnt/Media/slimnas/squeezecenter/scanner.pl line 217)
frame 4: main::main (/mnt/Media/slimnas/squeezecenter/scanner.pl line 345)

[08-06-25 19:18:23.9292] Slim::Schema::throw_exception (217) Error: Out of memory during "large" request for 33558528 bytes, total sbrk() is 517806080 bytes at /mnt/Media/slimnas/squeezecenter/Slim/Schema/Track.pm line 297.
[08-06-25 19:18:23.9441] Slim::Schema::throw_exception (217) Backtrace:

frame 0: Slim::Utils::Log::logBacktrace (/mnt/Media/slimnas/squeezecenter/Slim/Schema.pm line 217)
frame 1: Slim::Schema::throw_exception (/mnt/Media/slimnas/squeezecenter/CPAN/DBIx/Class/Schema.pm line 606)
frame 2: DBIx::Class::Schema::txn_do (/mnt/Media/slimnas/squeezecenter/scanner.pl line 217)
frame 3: (eval) (/mnt/Media/slimnas/squeezecenter/scanner.pl line 217)
frame 4: main::main (/mnt/Media/slimnas/squeezecenter/scanner.pl line 345)

[08-06-25 20:17:01.9960] Slim::Schema::throw_exception (217) Error: Out of memory during "large" request for 33558528 bytes, total sbrk() is 517799936 bytes at /mnt/Media/slimnas/squeezecenter/Slim/Schema/Track.pm line 297.
[08-06-25 20:17:02.0133] Slim::Schema::throw_exception (217) Backtrace:

frame 0: Slim::Utils::Log::logBacktrace (/mnt/Media/slimnas/squeezecenter/Slim/Schema.pm line 217)
frame 1: Slim::Schema::throw_exception (/mnt/Media/slimnas/squeezecenter/CPAN/DBIx/Class/Schema.pm line 606)
frame 2: DBIx::Class::Schema::txn_do (/mnt/Media/slimnas/squeezecenter/scanner.pl line 217)
frame 3: (eval) (/mnt/Media/slimnas/squeezecenter/scanner.pl line 217)
frame 4: main::main (/mnt/Media/slimnas/squeezecenter/scanner.pl line 345)

[08-06-25 20:45:57.1795] Slim::Utils::OSDetect::initSearchPath (128) Warning: Use of uninitialized value in split at /mnt/Media/slimnas/squeezecenter/Slim/Utils/OSDetect.pm line 128.
[08-06-25 21:25:36.4944] Slim::Schema::throw_exception (217) Error: Out of memory during "large" request for 33558528 bytes, total sbrk() is 517812224 bytes at /mnt/Media/slimnas/squeezecenter/Slim/Schema/Track.pm line 297.
[08-06-25 21:25:36.5079] Slim::Schema::throw_exception (217) Backtrace:

frame 0: Slim::Utils::Log::logBacktrace (/mnt/Media/slimnas/squeezecenter/Slim/Schema.pm line 217)
frame 1: Slim::Schema::throw_exception (/mnt/Media/slimnas/squeezecenter/CPAN/DBIx/Class/Schema.pm line 606)
frame 2: DBIx::Class::Schema::txn_do (/mnt/Media/slimnas/squeezecenter/scanner.pl line 217)
frame 3: (eval) (/mnt/Media/slimnas/squeezecenter/scanner.pl line 217)
frame 4: main::main (/mnt/Media/slimnas/squeezecenter/scanner.pl line 345)

[08-06-25 21:27:50.1830] Slim::Utils::OSDetect::initSearchPath (128) Warning: Use of uninitialized value in split at /mnt/Media/slimnas/squeezecenter/Slim/Utils/OSDetect.pm line 128.
[08-06-25 22:07:24.8372] Slim::Schema::throw_exception (217) Error: Out of memory during "large" request for 33558528 bytes, total sbrk() is 517814272 bytes at /mnt/Media/slimnas/squeezecenter/Slim/Schema/Track.pm line 297.
[08-06-25 22:07:24.9519] Slim::Schema::throw_exception (217) Backtrace:

frame 0: Slim::Utils::Log::logBacktrace (/mnt/Media/slimnas/squeezecenter/Slim/Schema.pm line 217)
frame 1: Slim::Schema::throw_exception (/mnt/Media/slimnas/squeezecenter/CPAN/DBIx/Class/Schema.pm line 606)
frame 2: DBIx::Class::Schema::txn_do (/mnt/Media/slimnas/squeezecenter/scanner.pl line 217)
frame 3: (eval) (/mnt/Media/slimnas/squeezecenter/scanner.pl line 217)
frame 4: main::main (/mnt/Media/slimnas/squeezecenter/scanner.pl line 345)

radish
2008-06-25, 20:31
Sounds like you're out of memory :) What does top say?

pfarrell
2008-06-25, 20:42
tobyjug wrote:
> [08-06-24 23:05:04.3945] Slim::Schema::throw_exception (217) Error: Out
> of memory during "large" request for 33558528 bytes, total sbrk() is
> 511506432 bytes at
> /mnt/Media/slimnas/squeezecenter/Slim/Schema/Track.pm line 297.

If we put some commas in the number so humans can read them.
33558528 bytes
33,558,528 bytes

33 or so megabytes. That may be a lot depending on how much you have free.

total sbrk() is 511506432 bytes
total sbrk() is 511,506,432 bytes

Do those NAS boxes have 512 MB of ram? As you are running at redline
if that's all you got.

--
Pat Farrell
http://www.pfarrell.com/

mherger
2008-06-25, 21:00
> I'm currently running squeezecentre 7.0.1 on a freeNAS PC using SlimNAS

Did you enable swapping in FreeNAS?

Michael

tobyjug
2008-06-26, 01:23
I'm sure I have more that 512MB in the machine - i'll have to check. And no I haven't created a swap file. Sounds like i'll need to. Have you got some simple instruction on how to do this, please :-)

mherger
2008-06-26, 01:59
> I'm sure I have more that 512MB in the machine - i'll have to check. And
> no I haven't created a swap file. Sounds like i'll need to. Have you got
> some simple instruction on how to do this, please :-)

If you really have 1GB or similar, than you'd probably not need it. But it doesn't hurt. You'll find it somewhere in the FreeNAS settings (sorry, I'm away from my machine).

--

Michael

tobyjug
2008-06-26, 10:18
OK I've checked the memory and it's 1GB and I have a 1GB swap file. But it's still sticking at the same place. I have 1800 albums and it's getting about 940 or there abouts. I deleted the log file before I started the scan and it's shown below.

[08-06-26 18:09:23.5624] Slim::Schema::throw_exception (217) Error: Out of memory during "large" request for 33558528 bytes, total sbrk() is 517806080 bytes at /mnt/Media/slimnas/squeezecenter/Slim/Schema/Track.pm line 297.
[08-06-26 18:09:23.5632] Slim::Schema::throw_exception (217) Backtrace:

frame 0: Slim::Utils::Log::logBacktrace (/mnt/Media/slimnas/squeezecenter/Slim/Schema.pm line 217)
frame 1: Slim::Schema::throw_exception (/mnt/Media/slimnas/squeezecenter/CPAN/DBIx/Class/Schema.pm line 606)
frame 2: DBIx::Class::Schema::txn_do (/mnt/Media/slimnas/squeezecenter/scanner.pl line 217)
frame 3: (eval) (/mnt/Media/slimnas/squeezecenter/scanner.pl line 217)
frame 4: main::main (/mnt/Media/slimnas/squeezecenter/scanner.pl line 345)

radish
2008-06-26, 13:00
Like I said, what does top say? You can still run out with 2GB if there's something eating it all...

tobyjug
2008-06-26, 23:27
OK i finally figured out what was wrong. When the scan stopped it was indicating a directory which I then deleted and rescaned. However the problem directory must have been the one before the displayed directory which I found by checking the file sizes. The offending directory was on containg files where the artwork embedded in the files was about 20Mb. Removing the artwork from the files fixed the problem. Thanks for your help.

Peter