Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cura's main window is blank #32

Closed
derekhe opened this issue Jun 7, 2015 · 5 comments
Closed

Cura's main window is blank #32

derekhe opened this issue Jun 7, 2015 · 5 comments

Comments

@derekhe
Copy link
Contributor

derekhe commented Jun 7, 2015

two env has same problem:
1.Mac Yosemite
2.Ubuntu 15.04 (in virtualbox)

When opening Cura's main window, the main window is blank even after loading stl file.
There is one error is showing when click inside the window.

FileNotFoundError: Could not find resource ('default.vert',) in 5
Traceback (most recent call last):
File "/usr/local/lib/python3.4/site-packages/UM/Qt/Bindings/MainWindow.py", line 120, in _render
renderer.beginRendering()
File "/usr/local/lib/python3.4/site-packages/UM/Qt/QtGL2Renderer.py", line 154, in beginRendering
self._initialize()
File "/usr/local/lib/python3.4/site-packages/UM/Qt/QtGL2Renderer.py", line 321, in _initialize
Resources.getPath(Resources.ShadersLocation, "default.vert"),
File "/usr/local/lib/python3.4/site-packages/UM/Resources.py", line 50, in getPath
raise FileNotFoundError("Could not find resource {0} in {1}".format(args, type))
FileNotFoundError: Could not find resource ('default.vert',) in 5

@derekhe
Copy link
Contributor Author

derekhe commented Jun 7, 2015

Solved by copy the resource from Uranium's directory.
The window now is filled with gray color, but import the model still nothing happened.

@nallath
Copy link
Member

nallath commented Jun 8, 2015

Virtual box has a lot of problems with openGL rendering. This is probably a problem with your graphic drivers.

@derekhe
Copy link
Contributor Author

derekhe commented Jun 8, 2015

@nallath I don't think so. I tried directly on Mac Yosemite but still can't work.

@awhiemstra
Copy link
Contributor

Sounds like an issue with resource lookup. There are a bunch of locations that get searched for the resource files, mostly dependant on the application binary path, which might not always be correct. Off the top of my head, at least the following are searched:

  • $appdir/../Resources
  • $appdir/../share/uranium
  • $appdir/../share/cura
  • $appdir/..

Where $appdir is the directory of the application binary. In addition, paths relative to the python files are added, but only when Python's sys module does not have the "frozen" attribute, since that usually implies a py2app/py2exe application.

Now, it is quite possbile that $appdir is incorrect in your case, I have only tested it on MacOSX using the py2app version.

@derekhe
Copy link
Contributor Author

derekhe commented Jun 11, 2015

Fixed, I added the build script here: Ultimaker/cura-build#1

@derekhe derekhe closed this as completed Jun 11, 2015
fieldOfView added a commit to fieldOfView/Cura that referenced this issue May 1, 2017
This uses an untranslatable string, but it should really be fixed inside Cura. Fixes Ultimaker#32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants