Anyone have the slightest idea what this warning means on SketchUp startup?
I should explain that (probably uniquely among SCF members) I sometime run SketchUp on Ubuntu Linux. Yep, it works just dandy if you tweak the WINE registry settings in a minor way...it just started working, quite suddenly, a few weeks ago with some major updates to Ubuntu and WINE. I'm told that Google has been contributing a great deal of code to the WINE runtime environment, which allows one to run Windows software on Linux (sometimes). Perhaps this is the result.
The only problem is that certain Rubies will not load properly...I get an error like this or else warnings about syntax. Usually it is completely inexplicable (sometimes syntax errors are indicated for commented lines!).
I strongly suspect that somehow there is something encoded in the rb text that is not properly interpreted. For instance, I had a number of syntax errors pop up with the subsmooth_loader.rb. I retyped it, word for word, with Ubuntu's equivalent of Notepad (Gedit), saved it, added the .rb file type, dropped it in the plugins folder...and it works fine now.
Rubies that ship with SketchUp normally (from Google) load just fine...it is only third-party rubies written by you fine folks that balk.
I've read Chris Pine's book on Ruby programming (which is free and part of the Ubuntu program repositories) and I see nothing wrong with your scripts (like FFD)...which incidentally run just fine if I boot the same machine up with Windows XP. And if I completely re-type your scripts in Linux, from a blank text document, they work fine on Linux.
Any thoughts about this? And why is it that Rubies from @Last or Google work just dandy, but not anyone else's?
Please, register (free) to access all the attachments on the forums.
Last edited by lewiswadsworth on Sun Jul 20, 2008 7:02 pm, edited 2 times in total.
Good Work, I knew SU on Ubuntu & Wine would work eventually. Good to see Google are showing some support to Linux too. Please can I quote your text at Linux Outlaws and the Lug Radio forum? There are members there that will be interested in this.
That error message greets me daily. I'm pretty sure it is a sketchy physics error, I cannot get sketchy physics to work on Vista no matter what I do.
Your retyping stuff making it works makes me think it could be line-endings perhaps. You could check by finding a script that doesn't work and a version of the same that does and compare them. (eg: od -x file1.rb) to see whether it is just things that work end each line unix-style with 0x0d,0x0a (CR,LF) whereas Windows typically just has 0x0a.
(Kinda cool it works at all though!)
Developer of LightUp http://www.light-up.co.uk
Adam, I think that is it...let me play with it for a while and see if I can make a script that is working not work. Thanks!
Jon, settings for SU 6 Pro on Linux, as they have worked for me:
(WINE 1.0-rc1 under Ubuntu 8.04)
Post install, you have to let SketchUp run (and crash) at least once so that the registry keys all are written. Then make the changes, as below, with WINE's regedit program:
[HKEY_CURRENT_USER\Software\Google\SketchUp6\Google SketchUp TOTD]
Layout will not function at all...it doesn't even write keys so that I can tweak it.
Incidentally, I have had these SU settings work on two relatively modern workstations with NVIDIA video cards (and I let Ubuntu find and install the latest Proprietary drivers). On a slightly older notebook computer with an ATI card, this did not work, no matter how I tweaked the settings. But I think that is ATI's fault, for some reason.
Here are my current OpenGL details as SU (on Ubuntu 8.04 and WINE) interprets them:
Vender: NVIDIA Corporation
Renderer: GeForce 8800 Ultra/PCI/SSE2
GL Version: 2.1.2 NVIDIA 169.12
GLU Version: 1.3
Feel free to bring this up on any other forum.
Last edited by lewiswadsworth on Thu May 15, 2008 1:42 pm, edited 1 time in total.
Adam, you were right...it is something to do with character encoding. Short of retyping every Ruby, the workaround for me is to open up the terminal, navigate to the Plugins directory, and type something like:
I was first prompted by bash to apt-get the package that includes that dos2unix utility. Here is the link for the command options, once you have it:
Thought I should add a comment on running SU on Ubuntu Linux...everything works, seemingly, on SU like this, except for Fast Feedback. There is also a tendency, when you resize your SU window or switch to another app, for the background or whole viewport in SU to flicker or momentarily turn black. Returning focus to SU by doing anything will bring it back to normal. Also, floating tool windows and toolbars want to right-click-toggle-drag and not right-click-hold-drag.
And even if you have as much video RAM as I do on this machine, don't try to run the Gnome Desktop with any of the fancy settings at all. No Compiz, in other words. Bad things happen if you do (SU turns invisible, or you crash your desktop, or you lock up your system).
I was at the AIA convention in Boston today and spoke about this topic to the usual Google suspects. They assured me that it must have been changes to WINE that makes it possible to reliably run SU on Linux, because they knew nothing about any changes to SU that would have allowed it. I'll add my list of tweaks to the registry and the plugins to the WINE page for SU tonight or tomorrow. I suggested to the Googlers that they put together a binary package of SketchUp with the registry tweaks, translator, and WINE itself to make it easier for the non-technical to set this up, rather the way Google does with Picasa for Linux (which comes with the appropriate WINE libraries). They didn't seem too excited about the prospect, but said they would "bring it up" with HQ.
There are a lot of 3D modelers available in Linux...either FOSS (and therefore either cryptic like Blender or perpetually-in-development like Ayam, unfortunately) or hopelessly expensive (like Maya). But suddenly the ability to run dependable old SketchUp opens up completely new possibilities...the Ubuntu distro suddenly becomes (almost) a valid professional option to me, given that I have a number of other Windows graphics programs (Photoshop, Dreamweaver, etc.) or capable Linux apps (Cinelerra, Blender, Inkscape, etc.) also available on my Ubuntu workstations now. I can tell both Mr. Gates and Mr. Jobs to take a hike, if I can get past losing Rhino 4 (licensing manager hates WINE!).
A certain not-to-be-named Googler asked me at the convention, "Did you try the 7.0 beta with WINE yet?"
I replied, "What 7.0 beta?"
He quickly backtracked. "Oh, I forgot...we haven't let that one out yet."
....I never backtrack, I only add range to my attack. he he he
WINE Review has some more notes on SU on Linux and other OS, like FreeBSD.
http://wine-review.blogspot.com/2007/12 ... eebsd.html
(And yes, I posted a comment telling them to look at this thread...so we might see a bit of traffic.)
thanks for the useful tricks, now sketchup on my ubuntu-8.04 works at 95%
The only one feature blocking the program is jpg export that's very important for my job
Have someone experienced the same and found the solution?
Sorry, that one works on the two Ubuntu boxes I have set up. However, SU6 has always had some weird graphics export problems...the other day I had a 3500x3500 pixel image fail, inexplicably, on a Windows box until I changed the export resolution to 3499x3499.
Did you try the export with another image format, like PNG? Also, see what happens if you turn off antialiasing under options when you export a 2D graphic file.
If you really want to test the file, post it to me and I'll try an export using SU on Wine on my Ubuntu workstation.
Just to make sure it works and no update has broken the functionality recently, I just switched over to Linux and did some JPG exports. In fact, for some reason, the export process seemed much faster than it did using the same file on XP. And this is a fairly elaborate model, with shadows and antialiasing turned on, at 3000 pixels in its longest direction (resized here with GIMP).
Mick, you might want to check and see if your current Ubuntu installation can view or create JPG files using any application (try GIMP). I've never had to look for a library for viewing or writing JPGs on Linux, but it is a non-Open-Source format so perhaps you managed to not install it or delete it.
Please, register (free) to access all the attachments on the forums.
While making these JPG tests, I decided to let Ubuntu update the NVidia GLX driver for my computer, and in fact most elements of graphic performance improved after a restart. Except in one area: when unselecting an object, or when closing a group/component open for editing, actually seeing the change on the screen is delayed until one moves the camera or starts another operation.
That's surprisingly annoying with a complex model full of nested components, and I don't think it was happening prior to the latest batch of updates!
sure, with gimp and other sw I can manage jpg without any problem.
Fortunately, thanks to you, I can export in png perfectly
can you paste the output of the command:
compliments for your work
Here you go:
I hope that helps, Mick.
I have the same packages installed, maybe it happens bacause I have a 64bit version
Thanks anyway, today I've tried to modify export resolution with png format, after that the program makes error exporting in png, even re-turning on use view dimension...
Usually SketchUp starts having problems with export resolutions greater than 4000 pixels in any direction, independent of platform, unless antialiasing is turned off, under Options in the export dialog. You might see if that helps; otherwise you're probably right about the 64-bit version being the issue, although I can't imagine why that would be such an issue.
Quite a few people on this link have been able to run SU on various other distros than SU; if you have the time and partition space, why not test one out, or for that matter make a partition for booting Ubuntu 32-bit? At least that would be one way of isolating the problem.
If I can find the time, I'll download the Ubuntu 64-bit and see if the problem is there for me. Might be a few days, though, until I have that much spare time.
Just out of curiosity, Mick, do you generally see much performance improvement with Ubuntu 64-bit, outside of the SU problem? What applications show the most difference, if you do?
If you have a 64bit CPU (Intel or AMD, ubuntu 64 is for both) you can experience clear performance improvement from system boot speed to every application, particularly with applications that require a lot of RAM. Moreover it has been resolved the problem with non-64bit applications like adobe flash player and openoffice.
The space, but the time in order to test a system does not lack me, but I can test it to my friend's pc.
Thanks...that is very interesting. I downloaded a copy of Ubuntu 64 and I'll install it on a Core Duo computer sometime in a day or so and try this myself. Let us know about whether your SU 2D export problem persists on your friend's computer.
I've been working on a fairly large SU project recently (the one pictured above), and I have noticed that with increasing model complexity the general performance (modeling, screen redrawing, etc.) does seem to get worse faster on SU on Wine on Ubuntu 8.04LTS 32bit than it does on XP SP3 on the same hardware. But 2D and 3D exports seem to finish much, much faster on Ubuntu than they do on XP.
By the way, I'm told that if someone contacts Google SketchUp's support team with a question about SU on Linux now, they are directed to look at this thread!
Last edited by lewiswadsworth on Mon Jul 21, 2008 3:34 pm, edited 1 time in total.
Wow, seems like our pro licence money is hard at work.
No, they're just being nice. First they tell you that they simple don't have the resources to make SU available on major Linux distros, but if you insist on trying...
Actually, everything here works on the free SU as well. In fact, that is easier to install because it doesn't insist on a pointless download of .NET to run Layout (which doesn't work on Linux, because .NET has never been ported to Linux by Microsoft).
I have told various linux 3d purists on other forums about our thread here. Not one has shown any interest, they have all dismissed SU. They all seem to be loyal to Blender, wings 3d or k-3d. I hadn't heard of k-3d before, link below
I was surprised they weren't more interested, or at least a little enthusiastic, with the exception of Blender, Sketchup seems to be streets ahead of any native linux 3d app.
I have heard of k-3d, and keep it on my machines. It'll will be great and fully functional for professional design purposes, at this rate, in about 13.5 years, by which time of course we will be absorbed by the Singularity (so who'll give a damn about 3D modeling then, anyway?).
By Linux purists, do you mean Stallman-type Open-Source advocates? The kind of people who insist upon using the awful version of Ubuntu (or worse, Debian) without any proprietary software at all? That's a religious stance they hold, and it's about as useful. And I have as about as much use for those who hold it as I do for any fundamentalists.
I actually don't care as much about Linux as I do about the interfaces of the various desktop managers, which are of course available on a variety of "engines" that matter very little to non-coders as long as they keep the interfaces running and apps cooking along. I've read of people getting SketchUp to run on BSD and OpenSolaris...more power to them.
Has anyone had more luck with SU-on-Wine-on-Linux on any particular desktop manager than with others? I have personally only tried it on plain-Jane GNOME, and it seems to be fine.
Mick, I did test SU Pro on Ubuntu 8.04 AMD64 (on a computer where I also have it running on both XP and Ubuntu 32bit), and I was able to get the same range of image sizes for both PNG and JPEG exports as I can on Windows...an easy 4000 pixel max dimension. And (possibly because of an update recently to WINE) SU no longer required the Registry changes noted above to work immediately after install...it opened with some empty TOD, Instructor, and Learning Center windows, but these no longer aborted the program start.
However, it does seem like SU might be a little more likely to hang on Ubuntu 64. Launching Firefox at the same time as SU was open caused the SU window contents to disappear and the app to freeze at one point, although I haven't been able to duplicate that problem and it has been working since.
Incidentally, the newest update to WINE (they claim) should allow one to run a wider range of Windows graphical applications, most notably Photoshop CS3. That's pretty amazing...I'll have to test it.
I'm aware of that. It will be hard to catch up though. I use GIMP for a few things, and it has about the full functionality of PS 4.0, plus a few unusual capabilities if you download the plugins for animation. But with no smart objects, no adjustment layers, and no 3D, it's going to be a long haul to achieve PS CS3 XT equivalency. Krita has adjustment layers, but seemed to have other issues last time I checked...and I can't forever be checking to see if anyone has "caught up." It's always a catch-up game with Open-Source, and with few exceptions (at least in my areas of interest, mainly graphics) there's very little that's truly innovative.
That's not always bad, of course. It could be argued that even the GNOME desktop (which is what non-coders really find so compelling about Ubuntu, and often mistake for Linux) in so many of these OS is functionally equivalent to the old, no-frills pre-OS-X Apple desktop. KDE has attempted some innovation, on the other hand, but I'm not sure anyone really wants more elaborate desktop managers. Do we really need things like Compiz to be productive, anyway?
What actually led me to investigate the whole topic of SU on Linux was the complexity and increasing productivity-restriction of the two main commercial OS, Mac and Vista/Windows 7. I want a bolt-hole when Windows XP finally becomes unusable on modern hardware...open-source versus commercial software development is utterly irrelevant in my particular circumstances.
I kind of agree. I've got my old laptop up and running ubuntu now. It is a lean go anywhere machine(does't matter if I drop it) running free apps that can't do everything but at least give me a useable tool while I'm out about. Trying to get SU installed too, I'll let you know
As for a CS3 clone, I would imagine that Adobe's copyright clauses make it impossible to come anywhere close, but it'll be interesting to see what an open source attempt can create.