sketchucation logo sketchucation
    • Login
    1. Home
    2. Hooch
    โ„น๏ธ Licensed Extensions | FredoBatch, ElevationProfile, FredoSketch, LayOps, MatSim and Pic2Shape will require license from Sept 1st More Info
    H
    Offline
    • Profile
    • Following 0
    • Followers 0
    • Topics 3
    • Posts 15
    • Groups 1

    Hooch

    @Hooch

    10
    Reputation
    1
    Profile views
    15
    Posts
    0
    Followers
    0
    Following
    Joined
    Last Online

    Hooch Unfollow Follow
    registered-users

    Latest posts made by Hooch

    • RE: Mac and Materials (with textures)

      @tt_su said:

      I'll try again with some very large textures on my machine and see if I can reproduce it. If I can't I'll forward it to the QA team and see if they can reproduce it in the lab.

      hi,

      could you reproduce it? Is there anything new that you can tell me about this problem?

      Greetings
      Alex

      posted in Developers' Forum
      H
      Hooch
    • RE: Mac and Materials (with textures)

      @tt_su said:

      Have you tried, just for the sake of it, a smaller size. If that makes a difference we will have a clue.

      Yes, I tried it some minutes ago with a resolution of 260x512 and it worked even with two times "texture.size" (of course it needed a lot of time, but worked).

      posted in Developers' Forum
      H
      Hooch
    • RE: Mac and Materials (with textures)

      @tt_su said:

      And everything in your Plugins folder implements the SketchupExtension interface? There is a good number of older extensions that doesn't do this.

      You can use Sketchup.plugins_disabled = true and restart SketchUp to prevent everything from loading - that way be 100% sure of a clean environment.

      I cleared the complete plugin folder so that nothing can load, but it didn't help. The Mac has 4gb DDR 3 RAM, that should be enough. The texture has 186kb. May this problem occur due to the high resolution of the image? It is 1920x1024px.

      posted in Developers' Forum
      H
      Hooch
    • RE: Mac and Materials (with textures)

      @slbaumgartner said:

      What version of Mac, what os version, what version of SU (please fill out your profile so we can tell without having to ask!). I just tried your code on my MBP Retina, OS X 10.9.4, SU 2014 Pro, and it added all 1000 textures just fine (though slowly).

      Steve

      Sorry I always forget to say which system I use (it's always another one ๐Ÿ˜„ ) It is a Mac Mini (2012 Version), Mac OS X 10.9.2 and SU Pro 2014 (Version 14.0.4899).

      I also disabled all Extensions and tested the ruby code again, it stops after 257 materials without any warning, error or anything else.

      @tt_su said:

      Why do you need to create 1000 materials? Currently SketchUp will become quite slow when scripts add a high volume of materials - at least under Windows the Material Browser isn't scaled for such numbers. Just a warning.

      This code was only for testing and give an example. I don't need that much materials, but on some elements there could a lot of different textures (especially same texture with different scalings to fit on components).

      PS: I made an update of SU to Ver. 14.1.1283, but the problem also occurs on this version

      posted in Developers' Forum
      H
      Hooch
    • Mac and Materials (with textures)

      Hi everyone,

      I have another problem with SketchUp, but this times its with Mac and materials(textures). I have a lot of textures which I'm adding via the API. But it seems that Sketchup on Mac stops the execution before it is finished without showing a warning or an error.

      An simple example code (only adding a new material with a texture)

      @unknownuser said:

      materials = Sketchup.active_model.materials matname = "set a custom matfile here" rnd_width = 3 rnd_height = 2 begin for i in 0..1000 puts "test texture"+i.to_s mat = materials.add "test"+i.to_s mat.texture = matname texture = mat.texture end rescue => e puts "something interrupted"+e.to_s end

      this ends after inserting "test texture 257", but it isn't catched by the rescue method, it only stops. Now for example, if I'm adding a scaling to the materials texture ..

      @unknownuser said:

      materials = Sketchup.active_model.materials matname = "set a custom matfile here" rnd_width = 3 rnd_height = 2 begin for i in 0..1000 puts "test texture"+i.to_s mat = materials.add "test"+i.to_s mat.texture = matname texture = mat.texture texture.size = [(1.m/rnd_width),(1.m/rnd_height)] rnd_width += 0.01 rnd_height += 0.01 end rescue => e puts "something interrupted"+e.to_s end

      .. it stops already after texture 104. I can now do more and more resizing of the texture and it will always stops earlier (with 2 texture.size it stops after 65 textures and so on)
      Is there anything I'm doing wrong on adding materials? Or is this simply a bug on Mac (On windows I can add the 1000 materials without any problems)?

      Greetings
      Alex

      posted in Developers' Forum
      H
      Hooch
    • RE: Sketchup Crash Webdialog

      Hey ho,

      are there any news for this topic? we could reproduce the error on IE 11 in the mean time .. i think there are some random java script errors on the website, but nevertheless this shouldn't cause SketchUp to a bug splat ..

      Greetings

      posted in Developers' Forum
      H
      Hooch
    • RE: Sketchup Crash Webdialog

      Hi,

      Chris, could you reproduce the bugsplat with the sended website in the private message? If you can't, than I also have a video showing the crash, but I think it's more helpful for you if you can reproduce it by yourself.

      Greetings
      Alex

      posted in Developers' Forum
      H
      Hooch
    • RE: Sketchup Crash Webdialog

      @chris fullmer said:

      I've been trying to reproduce this, and so far no luck. I'm on Win 7, IE 9, SU 2014. Running this from the ruby console:

      dlg = UI::WebDialog.new("Titel", true, "VS_REG", 739, 641, 150, 150, true); dlg.set_url "http://github.com" dlg.show

      Any other hints or ideas on how to reproduce it?

      I have thing you could try to do, to see if it helps. Go to:

      C:\Users<user>\AppData\Roaming\SketchUp\SketchUp 2014\SketchUp

      and delete the session.dat and the cookiejar.xml file. Probably best to save them though, so move them somewhere like your desktop to keep them safe. That way, if we determine it is something in one of those files, we will still have them around to look into.

      Anyhow, try removing those files and then try your script again and see if it works.

      Chris

      I've sended you a private message with a link and login where you can (hopefully) reproduce the bugsplat. I think its a problem with the bunch of java script used on this side, but nevertheless should Sketchup not bugsplat ..

      I've tried also to move the files away (session.dat wasn't there), but it didn't help.

      posted in Developers' Forum
      H
      Hooch
    • RE: Sketchup Crash Webdialog

      @tt_su said:

      @hooch said:

      I've now sended a bugsplat with a short description and the link to this forum-topic

      What did the description include? What can I search for to find it?

      "http://sketchucation.com/forums/viewtopic.php?f=180&t=58598" should be included, i've copied this link inside the description window

      posted in Developers' Forum
      H
      Hooch
    • RE: Sketchup Crash Webdialog

      I've now sended a bugsplat with a short description and the link to this forum-topic

      I hope this will help to figure out the problem ..

      posted in Developers' Forum
      H
      Hooch