unixer / vtuner

Automatically exported from code.google.com/p/vtuner
0 stars 0 forks source link

Memory allocation error on more than 4 instances #21

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Run 4 instances of vtuner
2. the 5th instance fails with memory allocation error

What is the expected output? What do you see instead?
./vtunerc.i686 -d /dev/vtunerc4 -n 10.10.1.11:39314 -f S
vtunerc: vtuner client (vtunerc), part of vtuner project
Visit http://code.google.com/p/vtuner/ for more information
Copyright (C) 2009-11 Roland Mieslinger
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS
FOR A PARTICULAR PURPOSE.
vtunerc: Revision:b6fa0d2b133b/tip DVB:5.2 allow:5.x NetProto:2 MsgSize:96, 
Debug:3
vtunerc: [2862 ../../vtunerc.c:477]  info: direct connection: host='10.10.1.11' 
port=39314
vtunerc: [2862 ../../vtunerc.c:452]  info: added frontend mode DVB-S as mode 0, 
searching for tuner types 1
vtunerc: [2862 ../../vtunerc.c:533]  info: Created pidfile /var/run/vtunerc4.pid
/dev/vtunerc4: Cannot allocate memory

I'm using evision:b6fa0d2b133b on centos6 with kernel-ml 3.3.2-1.el6.elrepo.i686
Custom kernel with CONFIG_DVB_MAX_ADAPTERS=32
Rest is basic centos 6

Original issue reported on code.google.com by alexcsor...@cnetwork.ro on 18 Apr 2012 at 11:06

GoogleCodeExporter commented 9 years ago
Solved, in vtuner_main.c, line 43
#define VTUNERC_MAX_ADAPTERS    4
replaced with
#define VTUNERC_MAX_ADAPTERS    32

Original comment by alexcsor...@cnetwork.ro on 19 Apr 2012 at 8:17

GoogleCodeExporter commented 9 years ago
Just added compiled-time option for that. You can easily change number of 
supported DVB devices by the following make command:
make VTUNERC_MAX_ADAPTERS=8

Checkout fresh source and test yourself.

Honza

Original comment by jpetrous on 19 Apr 2012 at 8:50