This seems like a really cool addon, but for me it crashes the media_addon_server on boot (it didn’t work before boot either)
In syslog I have a traceback:
KERN: malloc() of 1841829962 bytes asked KERN: vm_soft_fault: va 0x85dc9000 not covered by area in address space KERN: vm_page_fault: vm_soft_fault returned error 'Bad address' on fault at 0x85dc905a, ip 0x1ad6f1f, write 0, user 1, thread 0x376 KERN: vm_page_fault: thread "media_addon_server" (886) in team "media_addon_server" (886) tried to read address 0x85dc905a, ip 0x1ad6f1f ("???" +0x1ad6f1f) KERN: debug_server: Thread 886 entered the debugger: Segment violation KERN: stack trace, current PC 0x1ad6f1f _PrintToStream__C8BMessagePCc + 0x1bb: KERN: (0x727b0318) 0x1ad72d2 _PrintToStream__C8BMessagePCc + 0x56e KERN: (0x727b07d8) 0x1ad6d4e PrintToStream__C8BMessage + 0x26 KERN: (0x727b0808) 0x5774f5 _LoadSettings__15MultiAudioAddOn + 0xed KERN: (0x727b08c8) 0x576a49 __15MultiAudioAddOnl + 0x71 KERN: (0x727b08f8) 0x57698d make_media_addon + 0x31 KERN: (0x727b0938) 0x13fc20d _LoadAddOn__Q38BPrivate5media18DormantNodeManagerPCclPP11BMediaAddOnPl + 0xad KERN: (0x727b0968) 0x13fb3f5 GetAddOn__Q38BPrivate5media18DormantNodeManagerl + 0xa9 KERN: (0x727b0a08) 0x15e40dc _AddOnAdded__16MediaAddonServerPCcx + 0x64 KERN: (0x727b0ac8) 0x15e2d55 AddOnEnabled__Q216MediaAddonServer14MonitorHandlerPCQ38BPrivate7Storage17add_on_entry_info + 0xd9 KERN: (0x727b0b58) 0x15ea532 _EntryCreated__Q38BPrivate7Storage19AddOnMonitorHandlerRQ38BPrivate7Storage17add_on_entry_info + 0x14a KERN: (0x727b0b98) 0x15ea373 _HandlePendingEntries__Q38BPrivate7Storage19AddOnMonitorHandler + 0x227 KERN: (0x727b0dc8) 0x15e8658 MessageReceived__Q38BPrivate7Storage19AddOnMonitorHandlerP8BMessage + 0x2c KERN: (0x727b0df8) 0x1ad34b7 DispatchMessage__7BLooperP8BMessageP8BHandler + 0x5b KERN: (0x727b0e28) 0x1ac8e45 DispatchMessage__12BApplicationP8BMessageP8BHandler + 0x4e9 KERN: (0x727b1028) 0x1ad4d39 task_looper__7BLooper + 0x205 KERN: (0x727b1068) 0x1ac77be Run__12BApplication + 0x6e KERN: (0x727b10a8) 0x15e5b36 main + 0x7e KERN: (0x727b10d8) 0x15e2b23 _start + 0x5b KERN: (0x727b1108) 0x22c5b98 runtime_loader + 0x134 KERN: debug_server: Killing team 886 (/system/servers/media_addon_server)
If I try to run the server manually after boot I get:
MediaAddonServer::InstantiatePhysialInputsAndOutputs GetFlavorAt failed for index 0! started node 0 fSettings BMessage('mfil') { type items = BMessage(0x0) { type = string("Sounds", 7 bytes) item[0] = string("Beep", 5 bytes) item[1] = string("Error notification", 19 bytes) item[2] = string("Important notification", 23 bytes) item[3] = string("Information notification", 25 bytes) item[4] = string("Key down", 9 bytes) item[5] = string("Key repeat", 11 bytes) item[6] = string("Key up", 7 bytes) item[7] = string("Mouse down", 11 bytes) item[8] = string("Mouse up", 9 bytes) item[9] = string("Progress notification", 22 bytes) item[10] = string("Startup", 8 bytes) item[11] = string("Window activated", 17 bytes) item[12] = string("Window close", 13 bytes) item[13] = string("Window minimized", 17 bytes) item[14] = string("Window open", 12 bytes) item[15] = string("Window restored", 16 bytes) item[16] = string("Window zoomed", 14 bytes) Kill Thread