[haiku-development] Re: Need help in GSoC Project : TrackGit

  • From: Rene Gollent <anevilyak@xxxxxxxxx>
  • To: haiku-development@xxxxxxxxxxxxx
  • Date: Wed, 16 May 2018 11:35:28 -0400

On Wed, May 16, 2018 at 10:59 AM Hrishi Hiraskar <hrishihiraskar@xxxxxxxxx>
wrote:

I'm getting Segmentation violation while running my Tracker addon.
This is while creating and showing CloneWindow.
The fault occurs in some function of BWindow.

Just realized why: Looking at the crash report, your add-on has been
unloaded, thus the CloneWindow code is no longer available to be executed,
which leads to a crash when trying to call its MessageReceived from the
window looper. The reason for this is that when Tracker goes to process
refs, it currently loads the add-on, calls its process_refs hook, then
unloads it again [1]. Most tracker add-ons handle situations like this
where they need to display a UI to act on a ref by loading an external app
to do so, which should be adequate for things like the various basic git
actions, but a different approach probably needs to be figured out for
later stages when trackgit needs to be able to do things like show status
icons on files.

Regards,

Rene

[1]
https://git.haiku-os.org/haiku/tree/src/kits/tracker/ContainerWindow.cpp#n224

Other related posts: