troubleshooting.adoc 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122
  1. = troubleshooting
  2. :revnumber: 2.0
  3. :revdate: 2020/07/09
  4. :keywords: documentation, tool, sdk, faq
  5. == Troubleshooting jMonkeyEngine3 SDK
  6. === Graphics Card Driver
  7. *On Windows and Linux make sure you have the latest driver installed. Make sure its the one supplied by the card manufacturer and not just the +++<abbr title="Operating System">OS</abbr>+++-default one.* On OSX, make sure you have the latest update for your MacOS.
  8. === Stability / Graphics issues
  9. On some Linux and Windows systems, the SDK might perform unstable and quit with native VM crashes or "`x`" errors. There are a few things one can try to remedy those issues.
  10. ==== Heavyweight Canvas
  11. First of all there's the new "`OpenGL`" settings page in the SDK global settings where you can enable the "`Heavyweight Canvas`", which solved some issues for some people. The settings panel can be found under `menu:Tools[Options]` on Windows and Linux and in the main menu (or by pressing Apple-Comma) for MacOSX.
  12. If you cannot start the SDK, edit the file `config/Preferences/com/jme3/gde/core.properties` in the SDK settings folder (see above). If it doesn't exist, create the file including all folders. Add the line `use_lwjgl_canvas=true`. To try OpenGL1 compatibility mode (works for both canvas settings) add `use_opengl_1=true`.
  13. ==== Look and Feel
  14. The +++<abbr title="Operating System">OS</abbr>+++-built-in look and feel might cause issues, you can change the LAF by using the appropriate command line switch (or add it to the [app folder]/etc/jmonkeyplatform.conf file, without the "`- -`" prefix).
  15. [source]
  16. ----
  17. --laf javax.swing.plaf.nimbus.NimbusLookAndFeel
  18. ----
  19. or alternatively
  20. [source]
  21. ----
  22. --laf javax.swing.plaf.metal.MetalLookAndFeel
  23. ----
  24. ==== Compiz
  25. Compiz on Linux might cause issues, if you set its rendering quality to "`Medium`" these should go away.
  26. * `menu:Appearance[Set Special effects to > "`Medium`"]`
  27. === Updating problems
  28. If you have problems updating the SDK, try deleting all files from `jmonkeyplatform/update/download` and/or `[settings folder]/update/download` depending on your system (see below for the settings folder location).
  29. If you are on Linux, check if the user you run the SDK with has access to the files in `jmonkeyplatform/jdk/bin` and that they are executable.
  30. === Freezing / Performance problems
  31. If the SDK starts to become sluggish and / or slow or you get unexpected freezes of the application, you can try deleting the cache folder at var/cache in the settings folder (see below for the location of the settings folder). Do this while the SDK is not running, then restart the SDK.
  32. === Preferences and Settings
  33. To completely remove and/or reinstall the SDK it is vital that the settings folder is deleted too. The location can be seen through the "`about`" menu and is as following for the different +++<abbr title="Operating System">OS</abbr>+++'s:
  34. * Windows: `C:\Userspass\<username>\AppData\Roaming\.jmonkeyplatform`
  35. * Windows (alt): `C:\Users\<username>\.jmonkeyplatform\`
  36. * MacOSX: `/Users/&lt;username&gt;/Library/Application Support/jmonkeyplatform`
  37. * Ubuntu: `/home/&lt;username&gt;/.jmonkeyplatform`
  38. === Log
  39. To see or post the error output of the SDK in the forum, you can find the log of the application in the settings folder above too, the file is called `var/log/messages.log`.
  40. === Getting error messages and reporting issues
  41. When an exception happens in the SDK, a small warning sign appears in the lower right corner of the main window. Double-click it to open a window that allows you to see the exception stack trace. When posting about issues in the forum, always post the stack trace along with a description of what happens and how it can be reproduced.
  42. === Specifying the JDK location
  43. You can install another JDK for use with the jMonkey SDK. You then have to specify the location manually.
  44. . Go to your jMonkeyEngine SDK installation directory. +
  45. Mac users right-click jMonkeyApplication.app (which actually is a directory) in the Finder and select "`Show package contents`".
  46. . Navigate to the `etc` directory. +
  47. Mac users navigate to `Contents/Resources/jmonkeyplatform/etc/`.
  48. . Open the file `jmonkeyplatform.conf` in a text editor.
  49. . Change the following line and enter the path to the JDK:
  50. [source]
  51. ----
  52. jdkhome="/path/to/jdk"
  53. ----
  54. === Freezing at startup
  55. If you're behind a proxy or special network settings, try :
  56. . Disable your network connection.
  57. . Launch jme sdk (may wait 30s/1min for timeout).
  58. . Go into `menu:Tools[Options > General]`.
  59. . Setup "`manual proxy settings`" (for some reason the "`Use System Proxy Settings`" option doesn't work on some Linux distributions)
  60. link:https://hub.jmonkeyengine.org/t/jme-sdk-stalls-on-startup/30555[Discussion] of the problem.
  61. === Known Issues
  62. For a list of known issues and possible workarounds see the following link: link:https://github.com/jMonkeyEngine/sdk/issues[List of known issues on github.]
  63. Some issue are imported from the previous googlecode:
  64. link:https://code.google.com/archive/p/jmonkeyengine/issues[List of old issues on googlecode.]