Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Problem importing Ninjascript add ons

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Problem importing Ninjascript add ons

    Hi, I just updated to version 8.0.28.0 64-bit and the platform give me this error message, then crashes when I try to import a Ninjascript add on. Everything else seems to work fine.
    Thanks.

    Click image for larger version

Name:	image.png
Views:	1039
Size:	7.9 KB
ID:	1250541


    #2
    You would need more information that this - what add-on are you trying to import? Does it give any details in the log or trace files? Have you emailed the log and trace files to support?
    Bruce DeVault
    QuantKey Trading Vendor Services
    NinjaTrader Ecosystem Vendor - QuantKey

    Comment


      #3
      Crashes before I can upload any indicator.
      Last edited by NinjaTrader_Jesse; 05-09-2023, 07:35 AM. Reason: please dont attach whole log or trace files but only copy the relevant info

      Comment


        #4
        I deleted this indicator but continue to get the error message.

        05-08 17:07:29:490 ERROR: Failed to restore Indicator 'NinjaTrader.NinjaScript.Indicators.AB.ABToolbarBu ttons'. Most likely (a) the implementation changed or (b) one or more properties have been renamed or removed or (c) the custom assembly which implements this Indicator no longer is there.

        Looks like this is the problem actually.

        2023-05-08 17:20:26:735 *************** unhandled exception trapped ***************
        2023-05-08 17:20:26:735 Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
        2023-05-08 17:20:26:742 System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
        at System.Data.SQLite.UnsafeNativeMethods.sqlite3_ope n_interop(Byte[] utf8Filename, Int32 flags, IntPtr& db)
        at System.Data.SQLite.SQLite3.Open(String strFilename, SQLiteConnectionFlags connectionFlags, SQLiteOpenFlagsEnum openFlags, Int32 maxPoolSize, Boolean usePool)
        at System.Data.SQLite.SQLiteConnection.Open()
        at STCommonShellIntegration.DataShellManagement.Creat eNewConnection(SQLiteConnection& newConnection)
        at STCommonShellIntegration.DataShellManagement.InitC onfiguration(Dictionary`2 targetSettings)
        at DBROverlayIcon.DBRBackupOverlayIcon.initComponent( )

        Comment


          #5
          What version did you update from? If it's prior to 8.0.27, could be some incompatible indicators because that version change the ninja internal sql database

          Comment


            #6
            Hello manraygun,

            The error mentions an AccessViolation with the database. This could also be a database corruption or something external to NinjaTrader is accessing the database file. Please make sure you do not have any sync or file scanning software running on the documents directory while the platform is running. If you do close those apps and restart NinjaTrader if you did have anything running, does that correct the error?

            You can also try recreating the db by doing the following:
            1. With NinjaTrader closed open the folder Documents\NinjaTrader 8\db
            2. Rename NinjaTrader.sqlite to NinjaTrader.Old.sqlite
            3. Then start the platform

            Comment


              #7
              Thanks, Jesse. I tried your suggestions with no luck. I wound up installing Version 8.0.28.0 despite hearing some negatives about it. The good news is the platform no longer crashes but I still get the error message below when trying to import an add on. Also, now some of my indicators are missing. How can I get the old indicator errors fixed and bring new ones in?

              Click image for larger version

Name:	error.jpg
Views:	988
Size:	16.8 KB
ID:	1250777

              Comment


                #8
                These are the new errors. I would think I could re-import the two problem indicators but I have to resolve the errors before I can import anything. Confused.

                2023-05-09 16:24:22:421 ERROR: Failed to restore Indicator 'NinjaTrader.NinjaScript.Indicators.MACrossBuilder '. Most likely (a) the implementation changed or (b) one or more properties have been renamed or removed or (c) the custom assembly which implements this Indicator no longer is there.
                2023-05-09 16:24:22:463 ERROR: Failed to restore Indicator 'NinjaTrader.NinjaScript.Indicators.T3Color'. Most likely (a) the implementation changed or (b) one or more properties have been renamed or removed or (c) the custom assembly which implements this Indicator no longer is there.
                2023-05-09 16:24:22:467 ERROR: Failed to restore Indicator 'NinjaTrader.NinjaScript.Indicators.T3Color'. Most likely (a) the implementation changed or (b) one or more properties have been renamed or removed or (c) the custom assembly which implements this Indicator no longer is there.
                2023-05-09 16:24:22:859 ERROR: Failed to restore Indicator 'NinjaTrader.NinjaScript.Indicators.T3Color'. Most likely (a) the implementation changed or (b) one or more properties have been renamed or removed or (c) the custom assembly which implements this Indicator no longer is there.
                2023-05-09 16:24:22:863 ERROR: Failed to restore Indicator 'NinjaTrader.NinjaScript.Indicators.T3Color'. Most likely (a) the implementation changed or (b) one or more properties have been renamed or removed or (c) the custom assembly which implements this Indicator no longer is there.
                2023-05-09 16:24:24:765 ERROR: Failed to restore Indicator 'NinjaTrader.NinjaScript.Indicators.MACrossBuilder '. Most likely (a) the implementation changed or (b) one or more properties have been renamed or removed or (c) the custom assembly which implements this Indicator no longer is there.
                2023-05-09 16:24:24:863 ERROR: Failed to restore Indicator 'NinjaTrader.NinjaScript.Indicators.T3Color'. Most likely (a) the implementation changed or (b) one or more properties have been renamed or removed or (c) the custom assembly which implements this Indicator no longer is there.
                2023-05-09 16:24:24:870 ERROR: Failed to restore Indicator 'NinjaTrader.NinjaScript.Indicators.T3Color'. Most likely (a) the implementation changed or (b) one or more properties have been renamed or removed or (c) the custom assembly which implements this Indicator no longer is there.​

                Comment


                  #9
                  Hello manraygun,

                  The error you are seeing is because NinjaScript is not compiled, you need to use the NinjaScript editor to compile and check for errors. The other errors in the log are because NinjScript is not compiled, the custom items are removed when NinjaScript is not compiled.

                  Comment


                    #10
                    Every indicator when compiled, including all the native ones, gives the same CS0006 error message. What do you think?
                    Thanks.

                    Click image for larger version

Name:	compile errors.jpg
Views:	970
Size:	34.2 KB
ID:	1250975

                    Comment


                      #11
                      It certainly looks like you have some files in Documents -> NinjaTrader 8 -> bin -> Custom that maybe don't belong there. In the screenshot all we can see are PJSF and Book but neither of those come with NinjaTrader. If they're part of a third-party add-on they may not be installed correctly. I would suggest to get rid of those, and then do a repair installation.
                      Bruce DeVault
                      QuantKey Trading Vendor Services
                      NinjaTrader Ecosystem Vendor - QuantKey

                      Comment


                        #12
                        Hello manraygun,

                        Those seem to be referenced dlls that are missing. If you removed those items but still have the reference that would cause that error. Please check the path listed for each item in the picture and see if the file exists. If the file does not exist use the NinjaScript editor to Right click -> References and then remove those items from the list.

                        Comment


                          #13
                          What a disaster. I got rid of the dlls reference issue and now I'm back to the original error message from my first post.
                          I've restored my computer to where it was before I upgraded and now would like to install version 8.0.27.1 which is the last version that an important indicator I use can run with.
                          Can you tell me where to download 8.0.27.1? I don't see it available on the download page.
                          Thanks.

                          Comment


                            #14
                            You have the attempted to read/write protected memory error with no custom DLLs and no custom NinjaScript? That doesn't seem possible... have you tried removing all of the custom DLLs and custom NinjaScript to get the platform running in a stable situation before you put those back one at a time?
                            Bruce DeVault
                            QuantKey Trading Vendor Services
                            NinjaTrader Ecosystem Vendor - QuantKey

                            Comment


                              #15
                              Thanks for the suggestion.
                              How do I distinguish the custom DLLs and custom NinjaScripts from non-custom? Also, I have a couple of custom drawing tools.
                              I'll delete everything custom if I know which are which.

                              Comment

                              Latest Posts

                              Collapse

                              Topics Statistics Last Post
                              Started by argusthome, 03-08-2026, 10:06 AM
                              0 responses
                              85 views
                              0 likes
                              Last Post argusthome  
                              Started by NabilKhattabi, 03-06-2026, 11:18 AM
                              0 responses
                              48 views
                              0 likes
                              Last Post NabilKhattabi  
                              Started by Deep42, 03-06-2026, 12:28 AM
                              0 responses
                              29 views
                              0 likes
                              Last Post Deep42
                              by Deep42
                               
                              Started by TheRealMorford, 03-05-2026, 06:15 PM
                              0 responses
                              32 views
                              0 likes
                              Last Post TheRealMorford  
                              Started by Mindset, 02-28-2026, 06:16 AM
                              0 responses
                              67 views
                              0 likes
                              Last Post Mindset
                              by Mindset
                               
                              Working...
                              X