sketchucation logo sketchucation
    • Login
    Oops, your profile's looking a bit empty! To help us tailor your experience, please fill in key details like your SketchUp version, skill level, operating system, and more. Update and save your info on your profile page today!
    🛣️ Road Profile Builder | Generate roads, curbs and pavements easily Download

    Warning messages in console at start up

    Scheduled Pinned Locked Moved Plugins
    13 Posts 4 Posters 3.1k Views 4 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • thomthomT Offline
      thomthom
      last edited by

      Something is reloading the FileUtils class in Ruby. Something calling load instead of require?

      Thomas Thomassen — SketchUp Monkey & Coding addict
      List of my plugins and link to the CookieWare fund

      1 Reply Last reply Reply Quote 0
      • TIGT Offline
        TIG Moderator
        last edited by

        It it's encrypted it will be a pain to track down.
        But initially use something like Baregrep.
        http://www.baremetalsoft.com/?app=BareGrep%26amp;ver=3.50a%26amp;build=2006-11-02
        Paste your Plugins folder path into it and limit it to look through *.rb
        Search for a string like "fileutils".
        See what comes up if there's a "load 'fileutils'" in the list, then that's the culprit...

        I don't see this error.
        I just grepped all of the zillions of rb's [loading and otherwise] that I have, and there was nothing untoward - but if it's in an rbs it will be un-greppable anyway !

        Have you recently installed some extensions ?

        TIG

        1 Reply Last reply Reply Quote 0
        • PixeroP Offline
          Pixero
          last edited by

          After manually removing the Corona files the warnings are gone.

          1 Reply Last reply Reply Quote 0
          • PixeroP Offline
            Pixero
            last edited by

            Thanks. This is what BareGrip found:

            SketchUcation\Data\Rubyzip\zip.rb	-	1 match in 59 lines.
            SketchUcation\Data\Rubyzip\zip.rb	4	require 'fileutils'
            TT_Lib2\c_extension_manager.rb	-	3 matches in 197 lines.
            TT_Lib2\c_extension_manager.rb	165	        require File.join( path, 'thirdparty', 'fileutils.rb' )
            TT_Lib2\c_extension_manager.rb	168	          require 'fileutils'
            TT_Lib2\c_extension_manager.rb	175	          # This cause the fileutils to fail to load. To work around this the
            TT_Lib2\thirdparty\fileutils.rb	-	21 matches in 1,521 lines.
            TT_Lib2\thirdparty\fileutils.rb	4	# = fileutils.rb
            TT_Lib2\thirdparty\fileutils.rb	602	  # For fileutils.rb, this vulnerability is reported in [ruby-dev;26100].
            TT_Lib2\thirdparty\fileutils.rb	1272	    $fileutils_rb_have_lchmod = nil
            TT_Lib2\thirdparty\fileutils.rb	1276	      if $fileutils_rb_have_lchmod == nil
            TT_Lib2\thirdparty\fileutils.rb	1277	        $fileutils_rb_have_lchmod = check_have_lchmod?
            TT_Lib2\thirdparty\fileutils.rb	1279	      $fileutils_rb_have_lchmod
            TT_Lib2\thirdparty\fileutils.rb	1290	    $fileutils_rb_have_lchown = nil
            TT_Lib2\thirdparty\fileutils.rb	1294	      if $fileutils_rb_have_lchown == nil
            TT_Lib2\thirdparty\fileutils.rb	1295	        $fileutils_rb_have_lchown = check_have_lchown?
            TT_Lib2\thirdparty\fileutils.rb	1297	      $fileutils_rb_have_lchown
            TT_Lib2\thirdparty\fileutils.rb	1382	  @fileutils_output = $stderr
            TT_Lib2\thirdparty\fileutils.rb	1383	  @fileutils_label  = ''
            TT_Lib2\thirdparty\fileutils.rb	1386	    @fileutils_output ||= $stderr
            TT_Lib2\thirdparty\fileutils.rb	1387	    @fileutils_label  ||= ''
            TT_Lib2\thirdparty\fileutils.rb	1388	    @fileutils_output.puts @fileutils_label + msg
            TT_Lib2\thirdparty\fileutils.rb	1450	    @fileutils_output  = $stderr
            TT_Lib2\thirdparty\fileutils.rb	1451	    @fileutils_label   = ''
            TT_Lib2\thirdparty\fileutils.rb	1475	    @fileutils_output  = $stderr
            TT_Lib2\thirdparty\fileutils.rb	1476	    @fileutils_label   = ''
            TT_Lib2\thirdparty\fileutils.rb	1501	    @fileutils_output  = $stderr
            TT_Lib2\thirdparty\fileutils.rb	1502	    @fileutils_label   = ''
            
            

            I don't think it's Thomthoms plugins causing it though.

            I have an idea that it might be the Corona beta but it has a .rbs.
            I'll try to remove it and see what happens.

            Great search tool by the way TIG.

            1 Reply Last reply Reply Quote 0
            • TIGT Offline
              TIG Moderator
              last edited by

              I don't think TT's Lib is to blame either - that 'require' is called using one of two paths, depending on the Ruby version - it comes shipped with SketchUp in newer versions, but is supplied by TT Lib is older SUp's Ruby < 2 ...

              So as you say, I would suspect that this 'Corona' beta RBS generated by the EXE conceals something like a load 'fileutils.rb' [or even a path to a separately shipped version it is requiring without checking it is already loaded...], when a simple loaded/version check and/or replacing it with require 'fileutils' is all that is really needed...

              TIG

              1 Reply Last reply Reply Quote 0
              • TIGT Offline
                TIG Moderator
                last edited by

                Our posts crossed...
                Can you email the Corona developers and tell them of their problem...

                TIG

                1 Reply Last reply Reply Quote 0
                • D Offline
                  driven
                  last edited by

                  @tig said:

                  ... but if it's in an rbs it will be un-greppable anyway !

                  can it not be found by looking for what's loading around it?

                  all = $"
                  all.each_with_index{|path,indx| p all[indx-3..indx+3] if path.include?('fileutils')};nil
                  

                  on mine it shows /SKUI/core.rb just before and /FreeDXF/freedxf.rb just after...

                  john

                  learn from the mistakes of others, you may not live long enough to make them all yourself...

                  1 Reply Last reply Reply Quote 0
                  • TIGT Offline
                    TIG Moderator
                    last edited by

                    @driven

                    Maybe, a clever idea...
                    Perhaps @Pixero can test it...

                    TIG

                    1 Reply Last reply Reply Quote 0
                    • PixeroP Offline
                      Pixero
                      last edited by

                      Not sure how to use that code but its definitely Corona beta since it returned when I moved the files back into plugins folder.
                      I pasted the code in the post above into the console and this is what I got:

                      ["C;/Program Files/SketchUp/SketchUp 2016/Tools/RubyStdLib/delegate.rb", "C;/Program Files/SketchUp/SketchUp 2016/Tools/RubyStdLib/singleton.rb", "C;/Program Files/SketchUp/SketchUp 2016/Tools/RubyStdLib/platform_specific/etc.so", "C;/Program Files/SketchUp/SketchUp 2016/Tools/RubyStdLib/fileutils.rb", "C;/Program Files/SketchUp/SketchUp 2016/Tools/RubyStdLib/tmpdir.rb", "C;/Program Files/SketchUp/SketchUp 2016/Tools/RubyStdLib/tempfile.rb", "C;/Users/Jan/AppData/Roaming/SketchUp/SketchUp 2016/SketchUp/Plugins/SketchUcation/Data/Rubyzip/zip/dos_time.rb"]
                      

                      I'll let them know of the problem.

                      1 Reply Last reply Reply Quote 0
                      • TIGT Offline
                        TIG Moderator
                        last edited by

                        Looks like @driven's cunning-plan didn't work...

                        Tell the authors - it'll be easy enough to correct it...

                        TIG

                        1 Reply Last reply Reply Quote 0
                        • D Offline
                          driven
                          last edited by

                          it shouldn't do any harm as it points the standard library instal both times...

                          [unlike RubyZip that someone hides in their Plugins folder....]

                          @Pixero, did you try that when Corona was installed?

                          it seems odd that it's seen on Start Up and rises an error, but it's not in the loaded files array...

                          john

                          learn from the mistakes of others, you may not live long enough to make them all yourself...

                          1 Reply Last reply Reply Quote 0
                          • PixeroP Offline
                            Pixero
                            last edited by

                            Yes I tried it with Corona installed.
                            Now I've posted on their forum so I guess it's up to them to fix it.

                            1 Reply Last reply Reply Quote 0
                            • 1 / 1
                            • First post
                              Last post
                            Buy SketchPlus
                            Buy SUbD
                            Buy WrapR
                            Buy eBook
                            Buy Modelur
                            Buy Vertex Tools
                            Buy SketchCuisine
                            Buy FormFonts

                            Advertisement