Opened 10 years ago

Closed 10 years ago

Last modified 10 years ago

#4017 closed bug (fixed)

media_addon_server error during Shutdown\Reboot.

Reported by: HaikuBot Owned by: mmlr
Priority: normal Milestone: R1
Component: Kits/Device Kit Version: R1/pre-alpha1
Keywords: Cc:
Blocked By: Blocking:
Has a Patch: no Platform: All

Description

Always when I shutdown or reboot laptop with Haiku, I getting error(see attachments).

Attachments (5)

msa_error1.JPG (264.2 KB) - added by HaikuBot 10 years ago.
msa_error2.jpg (289.8 KB) - added by HaikuBot 10 years ago.
msa_error3.jpg (228.8 KB) - added by HaikuBot 10 years ago.
listdev.txt (3.4 KB) - added by HaikuBot 10 years ago.
syslog.txt (81.8 KB) - added by HaikuBot 10 years ago.

Download all attachments as: .zip

Change History (11)

Changed 10 years ago by HaikuBot

Attachment: msa_error1.JPG added

Changed 10 years ago by HaikuBot

Attachment: msa_error2.jpg added

Changed 10 years ago by HaikuBot

Attachment: msa_error3.jpg added

Changed 10 years ago by HaikuBot

Attachment: listdev.txt added

Changed 10 years ago by HaikuBot

Attachment: syslog.txt added

comment:1 Changed 10 years ago by korli

Component: Servers/media_addon_serverKits/Device Kit
Owner: changed from marcusoverhagen to mmlr

Michael, could you have a look please ?

comment:2 Changed 10 years ago by axeld

I doubt it has anything to do with USB, I would rather assume a problem in the media add-on server recently revealed by stippi's changes. I guess the add-on is unloaded early or something.

comment:3 Changed 10 years ago by stippi

The changes I did have the effect that (reader and decoder) add-ons, which are no longer needed by the application, are indeed free'd. Before, any add-ons that the application actually used (i.e. more than for sniffing) would stay loaded even if a BMediaTrack/BMediaFile is released/deleted. So maybe it's something in that direction. The code in the plugin manager inside of libmedia (I think media_addon_server uses the same code) is very clean and not complex. I would not expect an error to come from there. It does little more than reference counting. I didn't have a close look a the media_addon_server code, though, I don't know if all plugin management there goes through the plugin manager. I did check libmedia, though, and there it's the case.

comment:4 Changed 10 years ago by mmlr

It's a misuse of BUSBRoster. You have to Stop() the roster before deleting it, as it otherwise can't properly call the DeviceRemoved() hook. So before deleting the roster in the WebCamMediaAddOn destructor you simply call fRoster->Stop() first.

comment:5 Changed 10 years ago by mmlr

Resolution: fixed
Status: newclosed

Should be fixed in hrev31013. Please reopen if it still exists as I can't test it here.

comment:6 Changed 10 years ago by HaikuBot

Thanks. All fine now.

Note: See TracTickets for help on using tickets.