cancel
Showing results for 
Search instead for 
Did you mean: 

DatalayerClientSub segmentation fault

DatalayerClientSub segmentation fault

Andrefs
Established Member

Hello everyone,

I'm having the same issue mentioned in this post: https://github.com/boschrexroth/ctrlx-automation-sdk/issues/16

I can run and debug the other examples with no problem. Someone can give me some help to try to solve the error?

 

Andrefs_0-1705573246616.pngAndrefs_1-1705573255430.png

Andrefs_2-1705573262987.png

 

6 REPLIES 6

nickH
Community Moderator
Community Moderator

Hi @Andrefs 

I just created a fresh App Build Environment with V2.4 of ctrlX Works installed the newest SDK (V2.4) with the install-sdk.sh script and tried to reproduce your error. But I was not able to do so. Everything works for me and I'm able to debug the sample you mentioned. 

Can you tell me with which version you are working? 

Best regards, 

Nick

Andrefs
Established Member

I'm using also v2.4, created this week.

nickH
Community Moderator
Community Moderator

Hi @Andrefs 

I looked again at the issue you reported and was able to reproduce it and found a solution. The reason why I was not able to reproduce the error initially was, that this error only happens when the Client was not able to establish a connection to the Data Layer and is trying to connect again. In this case I can also see the "Segmentation Fault". 

This error can be resolved, when you create the "dataLayerClientSub" outside of the for loop. I attached the main.cpp, where I did the changes. I will also report this bug internally so it can be fixed in the SDK as well. 

Thanks for reporting the issue! 

Best regards, 

Nick

Andrefs
Established Member

Hello @nickH ,

I still have the issue. When the debugger enters the line " auto dataLayerClientSub = new DataLayerClientSub(datalayerSystem);", it gives me the same error. I already tried that solution yesterday but with no success. 

nickH
Community Moderator
Community Moderator

Sorry. But now I really don't know how to reproduce your error. 

CodeShepherd
Community Moderator
Community Moderator

Are there any news? Could the issue been solved?

Icon--AD-black-48x48Icon--address-consumer-data-black-48x48Icon--appointment-black-48x48Icon--back-left-black-48x48Icon--calendar-black-48x48Icon--center-alignedIcon--Checkbox-checkIcon--clock-black-48x48Icon--close-black-48x48Icon--compare-black-48x48Icon--confirmation-black-48x48Icon--dealer-details-black-48x48Icon--delete-black-48x48Icon--delivery-black-48x48Icon--down-black-48x48Icon--download-black-48x48Ic-OverlayAlertIcon--externallink-black-48x48Icon-Filledforward-right_adjustedIcon--grid-view-black-48x48IC_gd_Check-Circle170821_Icons_Community170823_Bosch_Icons170823_Bosch_Icons170821_Icons_CommunityIC-logout170821_Icons_Community170825_Bosch_Icons170821_Icons_CommunityIC-shopping-cart2170821_Icons_CommunityIC-upIC_UserIcon--imageIcon--info-i-black-48x48Icon--left-alignedIcon--Less-minimize-black-48x48Icon-FilledIcon--List-Check-grennIcon--List-Check-blackIcon--List-Cross-blackIcon--list-view-mobile-black-48x48Icon--list-view-black-48x48Icon--More-Maximize-black-48x48Icon--my-product-black-48x48Icon--newsletter-black-48x48Icon--payment-black-48x48Icon--print-black-48x48Icon--promotion-black-48x48Icon--registration-black-48x48Icon--Reset-black-48x48Icon--right-alignedshare-circle1Icon--share-black-48x48Icon--shopping-bag-black-48x48Icon-shopping-cartIcon--start-play-black-48x48Icon--store-locator-black-48x48Ic-OverlayAlertIcon--summary-black-48x48tumblrIcon-FilledvineIc-OverlayAlertwhishlist