Opened 15 years ago

Closed 15 years ago

Last modified 15 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:
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 15 years ago.
msa_error2.jpg (289.8 KB ) - added by HaikuBot 15 years ago.
msa_error3.jpg (228.8 KB ) - added by HaikuBot 15 years ago.
listdev.txt (3.4 KB ) - added by HaikuBot 15 years ago.
syslog.txt (81.8 KB ) - added by HaikuBot 15 years ago.

Download all attachments as: .zip

Change History (11)

by HaikuBot, 15 years ago

Attachment: msa_error1.JPG added

by HaikuBot, 15 years ago

Attachment: msa_error2.jpg added

by HaikuBot, 15 years ago

Attachment: msa_error3.jpg added

by HaikuBot, 15 years ago

Attachment: listdev.txt added

by HaikuBot, 15 years ago

Attachment: syslog.txt added

comment:1 by korli, 15 years ago

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

Michael, could you have a look please ?

comment:2 by axeld, 15 years ago

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 by stippi, 15 years ago

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 by mmlr, 15 years ago

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 by mmlr, 15 years ago

Resolution: fixed
Status: newclosed

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

comment:6 by HaikuBot, 15 years ago

Thanks. All fine now.

Note: See TracTickets for help on using tickets.