UnicodeDecodeError

55 views
Skip to first unread message

robert....@btinternet.com

unread,
Aug 23, 2014, 7:05:05 AM8/23/14
to brute...@googlegroups.com
I'm trying to set up Brutefir on Wandboard which uses Arch Linux SoA (which has replaced the squeezebox CSOS project)

I get the following error in 'brutefir.log' and LMS gives a 'can't open file' error.

[code]
======== brutefirwrapper rev 12 starting at 1408785425 2014-08-23 09:17:05
Traceback (most recent call last):
File "/opt/logitechmediaserver/Plugins/BrutefirDrc/Bin/brutefirwrapper", line 579, in <module>
main()
File "/opt/logitechmediaserver/Plugins/BrutefirDrc/Bin/brutefirwrapper", line 93, in main
header = sys.stdin.read(44)
File "/usr/lib/python3.4/encodings/ascii.py", line 26, in decode
return codecs.ascii_decode(input, self.errors)[0]
UnicodeDecodeError: 'ascii' codec can't decode byte 0xdc in position 4: ordinal not in range(128)
[/code]

I can't find out the cause of the error - any help appreciated.

TIA

Bob

Toby Dickenson

unread,
Aug 23, 2014, 8:33:35 AM8/23/14
to brute...@googlegroups.com
brutefirdrc was written for python 2, but your system is running it
with python 3. Try changing the first line from
#!/usr/bin/python
to
#!/usr/bin/python2

On 23 August 2014 12:05, robert....@btinternet.com
> --
> You received this message because you are subscribed to the Google Groups "BrutefirDRC" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to brutefirdrc...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

Olav Sunde

unread,
Aug 23, 2014, 8:48:33 AM8/23/14
to brute...@googlegroups.com
I was just typing when I saw Toby answered your post. He wrote brutefirwrapper so he will know how to help you. Nice to see you here Toby!

Olav

robert....@btinternet.com

unread,
Aug 23, 2014, 1:57:36 PM8/23/14
to brute...@googlegroups.com

Thank you Toby.

I did as you suggested and it has changed the error. Files appear to play but there is no sound and brutefir.log now shows the following on each track.

Any suggestions...


======== brutefirwrapper rev 12 starting at 1408808980 2014-08-23 15:49:40
Resampling brutefir filter from 48000 to 44100

BruteFIR v1.0m (November 2013) (c) Anders Torger

Traceback (most recent call last):

File "/opt/logitechmediaserver/Plugins/BrutefirDrc/Bin/brutefirwrapper", line 466, in read_tail
Internal resolution is 32 bit floating point.
age = time.time()-os.stat(tail_filename).st_mtime
OSError: [Errno 2] No such file or directory: '/tmp/.BrutefirDrc-996/tail-00_04_20_1e_d9_47.pcm'
Output follows (0.044s)
Creating 4 FFTW plans of size 32768...finished.
Loading coefficient set...finished.
Failed to open module "eq" in "/usr/lib/brutefir/eq.bflogic": /usr/lib/brutefir/eq.bflogic: undefined symbol: __aeabi_idiv.
Output complete (0.089s)

Olav Sunde

unread,
Aug 23, 2014, 4:11:09 PM8/23/14
to brute...@googlegroups.com
Which filter are you using? The log is talking about "eq". If you select a filter with no eq you may get sound,  as what is in the log up to "Failed to open module "eq"" seems OK.

Olav

robert....@btinternet.com

unread,
Aug 24, 2014, 9:48:07 AM8/24/14
to brute...@googlegroups.com
I've only been trying to use the sample filters. The error I showed previously was from 'sample_eq.txt".

The following is from 'sample_filter_no_eq.txt' ...

======== brutefirwrapper rev 12 starting at 1408885628 2014-08-24 13:07:08


Resampling brutefir filter from 48000 to 44100

Patching brutefir input format from S24_LE to S16_LE
Patching brutefir output format from S24_LE to S16_LE

BruteFIR v1.0m (November 2013) (c) Anders Torger

Traceback (most recent call last):
File "/opt/logitechmediaserver/Plugins/BrutefirDrc/Bin/brutefirwrapper", line 466, in read_tail

age = time.time()-os.stat(tail_filename).st_mtime
OSError: [Errno 2] No such file or directory: '/tmp/.BrutefirDrc-996/tail-00_04_20_1e_d9_47.pcm'

Output follows (1.022s)


Internal resolution is 32 bit floating point.

Creating 4 FFTW plans of size 32768...finished.

Loading 3 coefficient sets...Memory allocation failure (0 bytes), terminating program.
Output complete (1.072s)

The following is from 'sample_filter_and_eq' ...

======== brutefirwrapper rev 12 starting at 1408885309 2014-08-24 13:01:49


Resampling brutefir filter from 48000 to 44100

Patching brutefir input format from S24_LE to S16_LE
Patching brutefir output format from S24_LE to S16_LE

BruteFIR v1.0m (November 2013) (c) Anders Torger

Traceback (most recent call last):
File "/opt/logitechmediaserver/Plugins/BrutefirDrc/Bin/brutefirwrapper", line 466, in read_tail

age = time.time()-os.stat(tail_filename).st_mtime
OSError: [Errno 2] No such file or directory: '/tmp/.BrutefirDrc-996/tail-00_04_20_1e_d9_47.pcm'

Output follows (1.824s)


Internal resolution is 32 bit floating point.

Creating 4 FFTW plans of size 32768...finished.

Loading 3 coefficient sets...Memory allocation failure (0 bytes), terminating program.
Output complete (1.872s)


In all cases I've set player preferences to PCM but have tried FLAC as well with same results.

On Wandboard the path fo LMS is '/opt/logitechmediaserver' so I've had to edit all references to 'squeezeboxsererver' paths in;

'/opt/logitechmediaserver/Plugins/BrutefirDrc/Bin/brutefirwrapper' (First line set to #!/usr/bin/python2)
'/opt/logitechmediaserver/Plugins/BrutefirDrc/Plugin.pm'
'/opt/logitechmediaserver/BrutefirDrc/Filters/..all filters.. (where I keep filters!)

Maybe I've missed some of the path edits but I've search through everything several times over. Have tried setting all files to chmod 777, owner to logitechms and group to logitechms (default LMS owner and group).

brutefir convolver is in /usr/bin set as root:root
brutefir convolver modules are in /usr/lib/brutefir set as root:root
.BrutefirDrc-996 in /tmp set as logitechms:logitechms (logitechms is user 996)
.BrutefirDrc-0 doesn't exist

Some owners, groups and chmods reset themselves to their defaults if I attempt to change them.

Hope this helps to find the problem

Bob


Olav Sunde

unread,
Aug 24, 2014, 12:57:17 PM8/24/14
to brute...@googlegroups.com
Here is the output to brutefir.log on my system using 'sample_filter_no_eq.txt' :

======== brutefirwrapper rev 12 starting at 1408894504 2014-08-24 15:35:04

Resampling brutefir filter from 48000 to 44100
Patching brutefir input format from S24_LE to S16_LE
Patching brutefir output format from S24_LE to S16_LE
Traceback (most recent call last):
  File "/c/.squeezeboxserver/Plugins/BrutefirDrc/Bin/brutefirwrapper", line 466, in read_tail
    age = time.time()-os.stat(tail_filename).st_mtime
OSError: [Errno 2] No such file or directory: '/tmp/.BrutefirDrc-0/tail-00_04_20_22_28_3a.pcm'
Output follows (0.232s)

BruteFIR v1.0k (March 2009)                                   (c) Anders Torger


Internal resolution is 32 bit floating point.
SSE capability detected -- optimisation enabled.

Creating 4 FFTW plans of size 32768...finished.
Loading 2 coefficient sets...finished.
Estimated CPU clock rate is 1800.122 MHz. CPU count is 4.
Filters in process 0: 0
Filters in process 1: 1
Audio processing starts now
Readahead complete (0.674s)

It's the same as yours (or similar, but correct) until after the line with FFTW. Your installation tries to load 3 coefficient sets, not 2 - hence the 'Memory allocation failure' I believe. I do not know what causes this. Did you look inside the sample_*.txt files to check paths? All correct? .BrutefirDrc-996 in /tmp is correct. Seems like some brutefir error. Does brutefir seem to run if you start from the prompt?

Olav

robert....@btinternet.com

unread,
Aug 25, 2014, 6:25:23 PM8/25/14
to brute...@googlegroups.com
Have tried recompiling brutefir and double checked filters. Essentially get the same errors in all cases although only 2 coefficient sets are trying to load now.

Don't know where to go from here. Processor architecture is ARM and Arch Linux Is the OS.

Bob

Olav Sunde

unread,
Aug 26, 2014, 8:15:48 AM8/26/14
to brute...@googlegroups.com
Then I believe this is a brutefir problem. Brutefir tries to allocate memory, but is blocked. You've made some progress as it now tries to load 2 coefficient sets.  Look here for info on this: http://www.ludd.luth.se/~torger/brutefir.html search for 'shared_mem' or just 'mem'. This is set to 'false' in default config. You can try to set it to 'true' (in the sample_* files) and see.. Also 'lock_memory' is a setting I would look at.
I do not have an ARM device to test on so I can not be of further help other than to suggest you get in touch with the maintainer(s) of  Arch if you can not get it to run.

Regards Olav

robert....@btinternet.com

unread,
Aug 26, 2014, 11:23:47 AM8/26/14
to brute...@googlegroups.com
Thank you Olav. Brutefir is working on the now lapsed CSOS project on Wandboard so I've asked on the squeezebox forum if anyone there has access the the working binaries from that project. It uses Fedora but it's still compiled for ARM so I thought it was worth a try. I found references about the 'eq' error on the internet which suggest the libgcc.a needs to be used in the compile to get rid of the errors!

Thanks

Bob

Message has been deleted

robert....@btinternet.com

unread,
Aug 26, 2014, 11:27:26 AM8/26/14
to brute...@googlegroups.com

Olav Sunde

unread,
Aug 26, 2014, 12:51:03 PM8/26/14
to brute...@googlegroups.com
Very good to know! It is a real pity that CSOS disappeared.

Olav

robert....@btinternet.com

unread,
Sep 1, 2014, 8:13:55 AM9/1/14
to brute...@googlegroups.com
It seems as if the SoA Arch Linux compile isn't working. Compiling brutefir on the CSOS platform (Fedora) it all works as expected. So I may have it try making the CSOS compile available to those who want to use brutefir on the SoA platform.

Many thanks

Bob

Reply all
Reply to author
Forward
0 new messages