Ken Self replied to the topic 'indi_sx_ccd crashing' in the forum. 1 week ago

I'm guessing its related to the implementation of the Sky Quality Simulator 3 days ago. XML file missing perhaps?

Read More...

Ken Self replied to the topic 'indi_sx_ccd crashing' in the forum. 1 week ago

Thats the same error I'm getting with the indi_asi_ccd driver. It also crashes straight after the snoop on SQM SKY QUALITY

Read More...

Ken Self created a new topic ' indi_asi_ccd crashing' in the forum. 1 week ago

Tried to start indiserver but it kept failing on loading the indi_asi_ccd driver.. I thought it was working less than a week ago after the upgrade to latest asi driver. I did a sudo apt-get dist-upgrade and sudo apt-get -f install but there was nothing to update. Even tried sudo apt-get --reinstall indi-full to no avail
This is on a Raspberry Pi3 running Ubuntu Mate 16.04
EQMOD and indi_asi_wheel drivers are ok
indiserver -vvv output attached

File Attachment:

File Name: indi_asi_ccderror.txt
File Size: 35 KB


Read More...

Ken Self replied to the topic 'Live Preview - ASI1600MM-Cooled via RPi' in the forum. 1 week ago

Is it a bandwidth problem? May need to set the USB limit lower

Read More...

Ken Self replied to the topic 'Cone Error Correction assistant.' in the forum. 1 week ago

Cone error is fairly easy to measure with any of the polar alignment tools that work in the polar region. Once you identify the centre of rotation; any cone error is the component of the offset of the centre of rotation fom the centre of the sensor that is orthogonal to the declination direction. It is unaffacted by polar alignment. The Static PA module I just added to PHD2 has the functionality to display cone erro but is disabled. Something similar could possibly be added to Ekos polar alignment

Read More...

Greg Beaton thanked Ken Self in topic Polar align with guider? 4 weeks ago
Ken Self replied to the topic 'Polar align with guider?' in the forum. 4 weeks ago

Yes it is. Its the mount that is being aligned after all.

Read More...

Ken Self replied to the topic 'New version of INDI Web Manager' in the forum. 1 month ago

The web manger needs some tidying up. The profile is created when you click the + button. All other settings are saved automatically after that. If you click the save button it tries to create a new profile with the same name which is not allowed. So avoid clicking the save button and it should work.

Read More...

Ken Self replied to the topic 'EQMOD driver causing phd2 to segfault' in the forum. 1 month ago

The continuing segfaulting in PHD2 (without the null property patch) has been bothering me so I've looked more deeply. What is especially odd is that it onlyseems to affect the EQMOD driver. Nevertheless I tracked down the cause to defaultdevice which calls updateProperties on a disconnect even if the device was not connected. I've developed a patch which addresses this but I'm not sure if it is consistent with INDI philosophy and affects all drivers. Raising a Pull Request for your careful consideration.

Read More...

Ken Self replied to the topic 'EQMOD driver causing phd2 to segfault' in the forum. 1 month ago

I did a test and the issue with the SIMULATOR properties has been fixed. But there is still an issue with all the other EQMOD properties which is why I made some other changes. Here is the sequence:
Start Phd2 in a terminal session
Click the Connect button to connect devices
Select INDI camera and INDI Mount
Clcik the setup button for either the camera or mount
Click the INDI button to start INDI control panel
On the EQMOD tab click Disconnect (Note: the mount is already disconnected)
With the latest version of PHD2 there is no issue but I put in a trace to detect when a null property was received. My attached log shows a remove property being received with a null pointer. When I remove the patch for nul pointer I get a segfault.

his happens because in the align.cpp, scope-limits.cpp and eqmod.cpp clicking the disconnect button before connecting calls updateProperties(). In each case it only defines the properties if the mount is connected (which it isn't yet). Instead they then check one of the pointers to the skeleton file proeprties and if set they then invokedeleteProperty (in the case of eqmod.cpp this is unconditional) But at this point the properties have not yet been defined as this only happens after a connect.
Furthermore, the pointer that is checked is ALWAYS set in initProperties so the deleteProperty may as well be invoked unconditionally.

The use case is unusual (user clicks disconnect when the mount is already disconnected) but is inevitable and the resulting segfault is not graceful.
Attached log from the terminal sessions shows first the result of clicking Disconnect with the Phd2 null property patch in place along with some trace messages I added. The multitude of null properties are quite obvious. After connecting and then disconnecting the null properties are gone. Following that I removed the null property patch from Phd2 (which I think we all agree should not be necessary) and the Disconnect causes a segfault.

File Attachment:

File Name: phd2_indi-test.log
File Size: 31 KB


Read More...

Ken Self replied to the topic 'EQMOD driver causing phd2 to segfault' in the forum. 1 month ago

Some more new tricks for this old dog to learn :)
Pull request submitted.

Read More...

Ken Self replied to the topic 'EQMOD driver causing phd2 to segfault' in the forum. 1 month ago

I've made some changes to my local copy of simulator.h and simulator.cpp
Added a property isEnabled to hold the enablement state of the simulator so that in updateProperties, properties are only removed if they had been previously defined
Made equivalent changes to eqmod, align and scope-limits to hold connection status.
With these changes phd2 no longer receives removal of properties that have not been defined.
Whats the best way to supply the changes? Do I just git push?

Read More...

Ken Self replied to the topic 'EQMOD driver causing phd2 to segfault' in the forum. 2 months ago

The horizon and alignment properties are also not being created (or rather broadcast) as well. What I found is that my trace for those sets of properties (in EQMod::loadProperties() )show up as a popup in Ekos rather than being logged. So I suspect they are being set up before the interface is ready. If that makes any sense

Read More...

Ken Self replied to the topic 'EQMOD driver causing phd2 to segfault' in the forum. 2 months ago

I believe you are right. I've been putting some traces through the driver and phd2 code and it is looking that way.

Read More...

Ken Self replied to the topic 'EQMOD driver causing phd2 to segfault' in the forum. 2 months ago

I just downloaded PHD2 2.6.3dev7 (without Patricks fix) and it has the same issue with the INDI button. So its looking pretty clear its the EQMOD driver. Is ther anything I can do to help? I've pulled the indi driver code to have a look but I'm not familiar with how it all hangs together.

Read More...

Ken Self replied to the topic 'EQMOD driver causing phd2 to segfault' in the forum. 2 months ago

Could it be related to the 6 SIMULATORxxx properties it is trying to delete? I have no idea where those are cming from

Read More...

Ken Self created a new topic ' EQMOD driver causing phd2 to segfault' in the forum. 2 months ago

I posted over at the phd2 forum about a crash when the button for the INDI control panel is pressed. After investigating its looking more like something in the eqmod driver.
If I connect only to the camera in PHD2 then click the INDI button to open the control panel it works fine. Once I connect to the EQMOD driver the same button causes a segfault. Running phd2 in a terminal shows some strange messages when connecting to EQMOD - see the attachment.Also attached is the output from gdb after rebuilding with debugging. It shows the segfault occurring in a call to removeProperty
Third attachment is indi driver log
The same issue occurs on both Raspberry Pi 3 Ubuntu Mate 16.04 and 17.04 and on Ubuntu VM on x64 16.04. I've updated all software to the latest verions.

File Attachment:

File Name: phd2_indi2.txt
File Size: 4 KB

File Attachment:

File Name: phd2_gdb_vm.txt
File Size: 8 KB

File Attachment:

File Name: indi_eqmod_telescope_12_32_20.log
File Size: 10 KB


Read More...

Login



3rd Party

Choose from the numerous 3rd party INDI drivers to suit your needs!

Got Problem?

Check out the FAQ, the forum, and the bug tracking system to resolve any issues you might have!
You can also subscribe to INDI newsletter and development mailing lists to get the latest updates on INDI!