Le 25 mars 2019 02:26:35 GMT+01:00, Ryan Leavengood <leavengood@xxxxxxxxx> a
écrit :
Badly coded Tracker add-ons can crash Tracker. Tracker can be blamed
for add-ons crashing, such as in this forum post:
https://discuss.haiku-os.org/t/tracker-crashing-in-hrev52989/8364
I suggest a new server, tracker_addon_host (or maybe
tracker_addon_server) which hosts these add-ons, the same way the
media_addon_server does for media_server.
This server could also expose the add-ons through a command-line
interface, turning all add-ons into command-line tools even if they
were not originally coded for that (I know some are also applications
as well as add-ons.)
The benefits are obviously Tracker can't crash from add-on bugs, and
maybe there is a way for Tracker to inspect the stack trace when the
tracker_addon_host crashes and blacklist the offending add-on.
The drawbacks are of course another server running and more memory
usage, though I doubt it would be too bad. Maybe running the add-ons
over IPC will be slightly slower, but I think the Tracker add-on
protocol is fairly simple, and BMessage passing between apps is well
optimized.
I mention it here to get other opinions on the idea.
This would probably be a fairly fun project. Obviously I am interested
in it, though would not get around to it for a while.