Opened 14 years ago
Closed 14 years ago
#9013 closed defect (Invalid)
Running a custom command in mainmenu cannot allocate memory
Reported by: | Owned by: | ||
---|---|---|---|
Priority: | minor | Milestone: | unknown |
Component: | MythTV - General | Version: | Master Head |
Severity: | medium | Keywords: | |
Cc: | Ticket locked: | no |
Description
I'm trying to run a command 'free' from frontend's mainmenu, this worked fine in 0.23.1. In 0.24 problem occurs after I have watched a livetv channel (no matter what channel). There is no problem if I run command from menu before I start livetv.
Error message (full frontend's log attached):
2010-09-26 19:36:44.311 Launching: /usr/bin/free >/tmp/loki 2010-09-26 19:36:44.314 myth_system('/usr/bin/free >/tmp/loki'): Error: fork() failed because Cannot allocate memory
Attachments (3)
Change History (8)
Changed 14 years ago by
Attachment: | mythfrontend.log added |
---|
Changed 14 years ago by
Attachment: | mainmenu.xml added |
---|
comment:1 Changed 14 years ago by
Milestone: | 0.24 → unknown |
---|
comment:2 Changed 14 years ago by
If fork is failing with this error, this means the system is telling you you do not have enough memory to do the fork, which creates a complete copy of the current process. Your best bet is to create a swapfile, and activate swap. Running with no swap is not a very wise choice, especially with 1.5G (it seems). MythTV is a memory-hungry application, and the in-memory footprint may well be larger than your available memory.
I suggest also that you read the manpage for fork. At the bottom, it indicates the error returns. If you are running with resource limits, you may need to tweak.
comment:3 Changed 14 years ago by
Ok, I'll add a swap as a first thing. I have tried to avoid all disk writing until now because this frontend's hardware is quite low-end (dedicated htpc without a hard disk, just a usb key).
comment:4 Changed 14 years ago by
You are right, after utilizing a swap the problem went away. Thank you.
comment:5 Changed 14 years ago by
Resolution: | → Invalid |
---|---|
Status: | new → closed |
mediacentermenu's mainmenu.xml