Jump to content

DataRefTool incompatibility fix


Recommended Posts

I experienced a crash, so I looked at the forum to find many such instances involving the DRT.  I removed it and sure enough, no crash.

Poking through the log, I found the following line:

2024-03-15 11:04:29 CL650[dr.c:553]: assertion "dr->value != ((void*)0)" failed: CL650/glass/heat_on

 

So I added that dataref to Resources/plugins/drt_ignore.txt.  Sure enough, no more crash on load and DRT works with the CL650.  According to DRT FAQ, that could point to some bug in CL650:

FAQ: Using DRT causes X-Plane to crash
DRT reads every dataref published by every aircraft and plugin, on every frame of the simulation. Sometimes, they haven't fully been debugged, and may crash. (If you're a developer, the best way to do this is to run X-Plane in a debugger and look at the backtrace of the crash- if you see RefRecords::update() in the backtrace, this is likely what happened.)

 

In any case, I find DRT is much more useful than the official Data Ref Editor, so I'm happy to be able to use it now.

  • Like 1
Link to comment
Share on other sites

18 hours ago, spearlman said:

I experienced a crash, so I looked at the forum to find many such instances involving the DRT.  I removed it and sure enough, no crash.

Poking through the log, I found the following line:

2024-03-15 11:04:29 CL650[dr.c:553]: assertion "dr->value != ((void*)0)" failed: CL650/glass/heat_on

 

So I added that dataref to Resources/plugins/drt_ignore.txt.  Sure enough, no more crash on load and DRT works with the CL650.  According to DRT FAQ, that could point to some bug in CL650:

FAQ: Using DRT causes X-Plane to crash
DRT reads every dataref published by every aircraft and plugin, on every frame of the simulation. Sometimes, they haven't fully been debugged, and may crash. (If you're a developer, the best way to do this is to run X-Plane in a debugger and look at the backtrace of the crash- if you see RefRecords::update() in the backtrace, this is likely what happened.)

 

In any case, I find DRT is much more useful than the official Data Ref Editor, so I'm happy to be able to use it now.

Thanks for the tip! I will try that at my end too, as I also think that DRT is much more useful than the native one.

  • Like 1
Link to comment
Share on other sites

  • 3 weeks later...
On 4/4/2024 at 6:19 AM, spearlman said:

Hey @RonMont,

Did this fix work for you?

I haven't tried it yet, as I have no idea how to exclude that dataref in the drt_ignore.txt (i.e. what is the format of the entry should be), plus, you are saying that that txt file should be in /resources/plugins.

I kind of suspect it should be in the /resources/plugins/datarefTool_v... folder, no?

I didn't want to mess with it without being sure.

Thanks for inquiring!

Link to comment
Share on other sites

It's simple.  The file drt_ignore.txt goes inside the plugins directory, not inside the DRT installation directory.  For me (on Mac), that is:

/Users/Shared/X-Plane 12/Resources/plugins/drt_ignore.txt


The file should contain a line-separated list of datarefs to ignore.  The dataref in this case is:

CL650/glass/heat_on

 

You can find some examples in the DataRefTool FAQ at https://datareftool.com/faq

Link to comment
Share on other sites

On 3/16/2024 at 8:58 AM, RonMont said:

Poking through the log, I found the following line:

2024-03-15 11:04:29 CL650[dr.c:553]: assertion "dr->value != ((void*)0)" failed: CL650/glass/heat_on

Thanks a lot for the information; one last question, as you did mention running X-Plane through a debugger: did you find that line above in the X-Plane log, or through the debugger?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...