Opened 18 years ago
Closed 17 years ago
#731 closed bug (fixed)
[Cortex] media_addon_server start to eat cpu
Reported by: | diver | Owned by: | marcusoverhagen |
---|---|---|---|
Priority: | normal | Milestone: | R1 |
Component: | Kits/Media Kit | Version: | |
Keywords: | Cc: | jackburton, stippi | |
Blocked By: | Blocking: | ||
Platform: | All |
Description (last modified by )
If you run Cortex under vmware (which i suspect is the same under real hw with unsupported sound card) will trigger media_addon_server to load cpu 100%. Closing Cortex doesn't help, i have to kill Cortex to fix it. Tested under vmware with hrev18486, but this bug was here from beginning, after Cotex was added to the image, but i suspect it's media_addon_server to blame here.
Attachments (1)
Change History (11)
comment:1 by , 17 years ago
Description: | modified (diff) |
---|---|
Platform: | → All |
comment:3 by , 17 years ago
According to the code in src/kits/media/DataExchange.cpp, it looks like either the MediaServer or the MediaAddonServer port are not found or some other write_port_etc() problem. Maybe run the media servers from the command line to get some helpful printf debug messages? (I will also try to investigate, but I can't until tomorrow.)
comment:8 by , 17 years ago
Cc: | added |
---|---|
Component: | - General → Kits/Media Kit |
I started debugging this issue in July 2007, but I was unable to find a correct solution at that time due to other work.
The problem is this:
Cortex seems to call SetTimeSource for each node during startup.
When no supported soundcard exists, as in VMware, it will call SetTimeSource on the system time source, giving the system time source as parameter.
At some later place it calls BTimeSource::SetRunMode on all nodes, which triggers an infinite loop of 0x204 (NODE_SET_RUN_MODE) messages.
I don't think the Cortex behaviour of changing run modes and time sources is correct. I believe it should not touch the configuration.
Until the root cause of this bug in the media kit is fixed, please do not modify Cortex.
I checked in some debugging instrumentation with hrev22029 which at least turnes the various lockups caused by this issue into a debugger call.
comment:10 by , 17 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Now I also get a media_addon_server crash.