TBC Macros and Extensions

 View Only
Expand all | Collapse all

Object reference not set to an instance of an object

  • 1.  Object reference not set to an instance of an object

    Posted 15 days ago

    Hi,

    I´m getting sometimes the following error message even withtout loading any macro, and I am not able to replicate it as it happens sometimes and under different circumstances:

    Exception Count:       2
    Exception Source:      Trimble.Sdk
    Exception Type:        System.NullReferenceException
    Exception Message:     Object reference not set to an instance of an object.
    Exception Target Site: 脺

    Does anyone know why it can happen and how to fix it? or is it a TBC issue for some reason?

    Thanks a lot.

    Regards,

    Fernando



    ------------------------------
    Fernando Calvo
    calvo@calvo-geospatial.com
    ------------------------------


  • 2.  RE: Object reference not set to an instance of an object

    Posted 11 days ago

    I've been seeing it since 5.40 ~2020. Still happens in 5.90. Always with chinese character as "target site".



    ------------------------------
    Marian
    ------------------------------



  • 3.  RE: Object reference not set to an instance of an object

    Posted 11 days ago

    Hi Marian,

    thanks for your feedback. Yes, I have also seen it for a while now on different versions, but not sure since when.

    Also still happening with TBac v2023 and 2024.

    Can anyone from the TBC development team help please?

    Thanks

    Fernando



    ------------------------------
    Fernando Calvo
    calvo@calvo-geospatial.com
    ------------------------------



  • 4.  RE: Object reference not set to an instance of an object

    Posted 9 days ago

    Hi Fernando, 

    We cannot reproduce this issue locally.

    Please attach the steps to reproduce and the team can take a look and see where the issue is coming from. 

    Thanks!



    ------------------------------
    Bryce Haire
    ------------------------------



  • 5.  RE: Object reference not set to an instance of an object

    Posted 5 days ago

    Hi Bryce,

    thanks a lot for your reply and sorry for my late answer, as there were 2 days bank holidays last week.

    The issue is that it´s not easy to reproduce. It happens sometimes, independently on the function you are launching even without using any macro but internal TBC functions. In the most of the cases, the only way to keep working on TBC is restarting it.

    I thought it would be known on the TBC development side, as it has been happening for a few years now and I heard it also from customers and partners worldwide.

    If I´m able to replicate it with a fix combination of steps or similar, I´ll let you know.

    Thanks.

    Regards,

    Fernando



    ------------------------------
    Fernando Calvo
    calvo@calvo-geospatial.com
    ------------------------------



  • 6.  RE: Object reference not set to an instance of an object

    Posted 5 days ago

    Hi again Bryce,

    I had it again when trying to create a standard new project getting this:

    Exception Count:       1
    Exception Source:      Trimble.Vce.UI.BaseCommands
    Exception Type:        System.NullReferenceException
    Exception Message:    The object reference was not set to an instance of an object.
    Exception Target Site: gzz

    ---- Stack Trace ----
        Trimble.Vce.UI.BaseCommands.ViewFilters.ViewFilterCmdUI.gzz(IProject a)
        Trimble.Vce.UI.BaseCommands.DLL : N 00476
        Trimble.Vce.UI.BaseCommands.ViewFilters.ViewFilterCmdUI.ja(IProject a, UIEventArgs b)
        Trimble.Vce.UI.BaseCommands.DLL : N 00414
        Trimble.Sdk.UI.UIProjectEventHandler.Invoke(IProject Project, UIEventArgs e)
        Trimble.Sdk.UI.DLL : N 00000
        Trimble.Vce.UI.UIManager.UIEvents.RaiseUIProjectLoaded(IProject Project, UIEventArgs e)
        Trimble.Vce.UI.UIManager.DLL : N 00053
        Trimble.Vce.UI.BaseCommands.FileNewProjectFromDefaultTemplate.Execute(Object[] Parameters)
        Trimble.Vce.UI.BaseCommands.DLL : N 01561
        Trimble.Vce.UI.UIManager.CommandAdapter.Execute(Object parameter)
        Trimble.Vce.UI.UIManager.DLL : N 00822
        Trimble.Sdk.UI.UiCommandProcessor.c(String a, Boolean b, Boolean c, Object[] d)
        Trimble.Sdk.UI.DLL : N 02008

    Date and Time:      13.05.2024 15:17:36
    Machine Name:       XXX-YYYYYYY (name changed)
    IP Address:         XXX (changed) 
    Current User:       XXX (changed) 
    Application Domain: TrimbleBusinessCenter.exe
    Thread Name:        Office UI Thread

    ---- Assemblies in AppDomain ----

    Assembly Full Name:  mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
    Assembly Codebase:   file:///C:/Windows/Microsoft.NET/Framework64/v4.0.30319/mscorlib.dll

    Assembly Full Name:  TrimbleBusinessCenter, Version=1.0.0.0, Culture=neutral, PublicKeyToken=551d74244f0db52e
    Assembly Codebase:   file:///C:/Program Files/Trimble/Trimble Business Center/TrimbleBusinessCenter.exe

    Assembly Full Name:  Trimble.Vce.UI.Controls, Version=1.0.0.0, Culture=neutral, PublicKeyToken=551d74244f0db52e
    Assembly Codebase:   file:///C:/Program Files/Trimble/Trimble Business Center/Trimble.Vce.UI.Controls.DLL

    ...

    and many more rows with Assembly Full Name and Assembly Codebase

    Does it help?

    Thanks.

    Regards,

    Fernando



    ------------------------------
    Fernando Calvo
    calvo@calvo-geospatial.com
    ------------------------------



  • 7.  RE: Object reference not set to an instance of an object

    Posted 5 days ago

    Hi again,

    and another one right after I imported a TDX file with some scans onto a new standard project:

    (Inner Exception)
    Exception Count:       2
    Exception Source:      Trimble.Sdk
    Exception Type:        System.NullReferenceException
    Exception Message:     Der Objektverweis wurde nicht auf eine Objektinstanz festgelegt.
    Exception Target Site: b

    ---- Stack Trace ----
        Trimble.Vce.Core.Concordance.b(UInt32 a)
        Trimble.Sdk.DLL : N 00037
        Trimble.Vce.Core.Components.Project.GetMemberContainer(MandatoryContainers requestedContainer)
        Trimble.Sdk.Core.DLL : N 00379
        Trimble.Vce.Core.SingleInstanceManager`1.TryGetInstance(InstanceType& instance)
        Trimble.Sdk.Core.DLL : N 00220
        Trimble.Vce.Core.SingleInstanceManager`1.CreateInstanceAsNeeded()
        Trimble.Sdk.Core.DLL : N 00034
        Trimble.Vce.Coordinates.CoordinateSystemDefinition.CSDContainer.ProvideCSDContainer(IProject prj)
        Trimble.Sdk.Coordinates.DLL : N 00110
        Trimble.Vce.UI.Controls.ViewBase.UpdateGridAxis()
        Trimble.Vce.UI.Controls.DLL : N 00042
        Trimble.Vce.UI.HoopsControls.HoopsPlanView.ProjectSettingsChanged(Boolean needsRegen, Boolean zoomToExtents)
        Trimble.Vce.Hoops.DLL : N 00040
        Trimble.Sdk.UI.UIEventHandler.Invoke(Object sender, UIEventArgs e)
        Trimble.Sdk.UI.DLL : N 00000
        Trimble.Vce.UI.UIManager.UIEvents.RaiseProjectSettingsChanged(Object Sender, UIEventArgs e)
        Trimble.Vce.UI.UIManager.DLL : N 00053
        Trimble.Vce.Coordinates.CoordinateSystemDefinition.CSDContainer.u(CSDefinition a, ICoordinateSystemUI b)
        Trimble.Sdk.Coordinates.DLL : N 03762
        Trimble.Vce.Coordinates.CoordinateSystemDefinition.CSDContainer.Message(NotificationMessage Msg, Object obj)
        Trimble.Sdk.Coordinates.DLL : N 01355
        Trimble.Vce.Core.ConcordanceEntry.a(NotificationMessage a, ReasonForCalculate& b)
        Trimble.Sdk.DLL : N 00472
        Trimble.Vce.Core.ConcordanceEntry.CalculateAsNeeded(EventRaiser a, ReasonForCalculate& b)
        Trimble.Sdk.DLL : N 00098
        Trimble.Vce.Core.Concordance.a(EventRaiser a, Boolean b, ReasonForCalculate c)
        Trimble.Sdk.DLL : N 00295


    (Outer Exception)
    Exception Count:       2
    Exception Source:      Trimble.Sdk
    Exception Type:        Trimble.Vce.Interfaces.Client.CalculationException
    Exception Message:     The entity with serial 1044 threw when sent a NM_Calculate message. [Trimble.Vce.Coordinates.CoordinateSystemDefinition.CSDContainer]
    Exception Target Site: a

    ---- Stack Trace ----
        Trimble.Vce.Core.Concordance.a(EventRaiser a, Boolean b, ReasonForCalculate c)
        Trimble.Sdk.DLL : N 01030
        Trimble.Vce.Core.Components.a.Calculate(Boolean a, ReasonForCalculate b)
        Trimble.Sdk.Core.DLL : N 00588
        Trimble.Vce.Core.TransactionManager.s(ReasonForCalculate a)
        Trimble.Sdk.DLL : N 00526
        Trimble.Vce.Core.TransactionManager.a(CommandGranularity a, String b, String c)
        Trimble.Sdk.DLL : N 00092
        Trimble.Vce.UI.BaseCommands.ComputeProjectCmd.ComputeProject(Object caller, Boolean addBeginMark, Boolean addSubStepByDefault)
        Trimble.Vce.UI.BaseCommands.DLL : N 02365
        Trimble.Vce.UI.UIManager.CommandAdapter.Execute(Object parameter)
        Trimble.Vce.UI.UIManager.DLL : N 00823
        Trimble.Sdk.UI.UiCommandProcessor.c(String a, Boolean b, Boolean c, Object[] d)
        Trimble.Sdk.UI.DLL : N 02009

    Date and Time:      13.05.2024 15:38:07
    Machine Name:       XXXXXXXX
    IP Address:         XXXXXXX
    Current User:       XXXXXXXXX
    Application Domain: TrimbleBusinessCenter.exe
    Thread Name:        Office UI Thread

    ---- Assemblies in AppDomain ----



    ------------------------------
    Fernando Calvo
    calvo@calvo-geospatial.com
    ------------------------------



  • 8.  RE: Object reference not set to an instance of an object

    Posted 2 days ago

    Hi Fernando,

    Are you able to share the specific TDX file that caused an issue for you? Importing a TDX file into a new project did not cause an error on our side.

    Thank you!



    ------------------------------
    Virginia Hutchinson
    TBC Development Team
    ------------------------------



  • 9.  RE: Object reference not set to an instance of an object

    Posted 2 days ago

    We experience that error daily. Just start using TBC day-in and day-out and it will pop up.

    Exception Count:       2

    Exception Source:      Infragistics4.Win.UltraWinToolbars.v22.2

    Exception Type:        System.NullReferenceException

    Exception Message:     Object reference not set to an instance of an object.

    Exception Target Site: PositionChildElements

    ---- Stack Trace ----

        Infragistics.Win.UltraWinToolbars.GalleryPreviewItemAreaUIElement.PositionChildElements()

        Infragistics4.Win.UltraWinToolbars.v22.2.DLL : N 00405

        Infragistics.Win.UIElement.VerifyChildElements(ControlUIElementBase controlElement, Boolean recursive)

        Infragistics4.Win.v22.2.DLL : N 00161

        Infragistics.Win.UIElement.VerifyChildElements(ControlUIElementBase controlElement, Boolean recursive)

        Infragistics4.Win.v22.2.DLL : N 00343

        Infragistics.Win.UIElement.VerifyChildElements(ControlUIElementBase controlElement, Boolean recursive)

        Infragistics4.Win.v22.2.DLL : N 00343

        Infragistics.Win.UIElement.VerifyChildElements(ControlUIElementBase controlElement, Boolean recursive)

        Infragistics4.Win.v22.2.DLL : N 00343

        Infragistics.Win.UIElement.VerifyChildElements(ControlUIElementBase controlElement, Boolean recursive)

        Infragistics4.Win.v22.2.DLL : N 00343

        Infragistics.Win.UIElement.VerifyChildElements(ControlUIElementBase controlElement, Boolean recursive)

        Infragistics4.Win.v22.2.DLL : N 00343

        Infragistics.Win.UIElement.VerifyChildElements(ControlUIElementBase controlElement, Boolean recursive)

        Infragistics4.Win.v22.2.DLL : N 00343

        Infragistics.Win.UIElement.VerifyChildElements(ControlUIElementBase controlElement, Boolean recursive)

        Infragistics4.Win.v22.2.DLL : N 00343

        Infragistics.Win.UIElement.VerifyChildElements(ControlUIElementBase controlElement, Boolean recursive)

        Infragistics4.Win.v22.2.DLL : N 00343

        Infragistics.Win.UIElement.VerifyChildElements(ControlUIElementBase controlElement, Boolean recursive)

        Infragistics4.Win.v22.2.DLL : N 00343

        Infragistics.Win.UIElement.DrawHelper(Graphics graphics, Rectangle invalidRectangle, Boolean doubleBuffer, AlphaBlendMode alphaBlendMode, Boolean clipText, Boolean forceDrawAsFocused, Boolean preventAlphaBlendGraphics, Nullable`1 zoomFactor)

        Infragistics4.Win.v22.2.DLL : N 00555

        Infragistics.Win.ControlUIElementBase.Draw(Graphics graphics, Rectangle invalidRectangle, Boolean doubleBuffer, AlphaBlendMode alphaBlendMode, Size elementSize, Boolean preventAlphaBlendGraphics)

        Infragistics4.Win.v22.2.DLL : N 00832

        Infragistics.Win.ControlUIElementBase.Draw(Graphics graphics, Rectangle invalidRectangle, Boolean doubleBuffer, AlphaBlendMode alphaBlendMode)

        Infragistics4.Win.v22.2.DLL : N 00113

        Infragistics.Win.UltraControlBase.OnPaint(PaintEventArgs pe)

        Infragistics4.Win.v22.2.DLL : N 00237

        Infragistics.Win.UltraWinToolbars.UltraToolbarsDockArea.OnPaint(PaintEventArgs pe)

        Infragistics4.Win.UltraWinToolbars.v22.2.DLL : N 00146

        System.Windows.Forms.Control.PaintWithErrorHandling(PaintEventArgs e, Int16 layer)

        System.Windows.Forms.dll : N 00102

        System.Windows.Forms.Control.WmPaint(Message& m)

        System.Windows.Forms.dll : N 00977

        System.Windows.Forms.Control.WndProc(Message& m)

        System.Windows.Forms.dll : N 00799

        System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

        System.Windows.Forms.dll : N 00193



    ------------------------------
    Marian
    ------------------------------



  • 10.  RE: Object reference not set to an instance of an object

    Posted 14 hours ago

    Hi Virginia,

    thanks for your answer and efforts !

    Sure, I could do it, however the linked TZF files are many and the whole data are around 6 GB and it happend after I got the error message in another project, and I created a new empty project using the Buildings template (attached) and after that, I drag&dropped the TDX file and I got the error.

    As once you get the mentioned error, the only way to get rid of it is restarting TBC, after a restart, I could import the TDX file without any error message, so unfortunately, you would not be able to replicate the error by importing my TDX file as it does not depend on the TDX file but on some other internal thing or combination of things inside TBC, that are difficult to replicate, and I fully ackowledge that it is extremely difficult on your side, if you are not able to replicate it.

    As Marian Plucinski also reported, it happens on a daily basis and the only possible way to find out why on your side, could be via the full error messages that some of us provide.

    Thanks a lot.

    Regards,

    Fernando



    ------------------------------
    Fernando Calvo
    calvo@calvo-geospatial.com
    ------------------------------