troubleshooting.html 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8">
  5. <meta name="viewport" content="width=device-width,initial-scale=1">
  6. <title>troubleshooting :: jMonkeyEngine Docs</title>
  7. <link rel="canonical" href="https://wiki.jmonkeyengine.org/docs/sdk/troubleshooting.html">
  8. <meta name="keywords" content="documentation, tool, sdk, faq">
  9. <meta name="generator" content="Antora 2.3.3">
  10. <link rel="stylesheet" href="../../_/css/site.css">
  11. <meta property="og:image" content="https://wiki.jmonkeyengine.org/_/img/iconx128.png">
  12. <meta property="og:description" content="troubleshooting">
  13. <meta property="og:title" content="jMonkeyEngine Docs">
  14. <link rel="stylesheet" href="../../_/css/site-extra.css">
  15. <link rel="stylesheet" href="../../_/css/vendor/docsearch.min.css">
  16. <!-- fetched from https://cdn.jsdelivr.net/npm/docsearch.js@2/dist/cdn/docsearch.min.css -->
  17. <link rel="icon" href="../../_/img/favicon.ico" type="image/x-icon">
  18. </head>
  19. <body class="article">
  20. <header class="header">
  21. <nav class="navbar">
  22. <div class="navbar-brand">
  23. <a class="navbar-item" href="https://wiki.jmonkeyengine.org">
  24. <img alt="" src="../../_/img/jme-logo.png" height="32" type="image/x-icon">
  25. </a>
  26. <div class="navbar-item hide-for-print">
  27. <input id="search-input" type="text" placeholder="Search docs">
  28. </div>
  29. <button class="navbar-burger" data-target="topbar-nav">
  30. <span></span>
  31. <span></span>
  32. <span></span>
  33. </button>
  34. </div>
  35. <div id="topbar-nav" class="navbar-menu">
  36. <div class="navbar-end">
  37. <div class="navbar-item theme-switch-wrapper">
  38. <label class="theme-switch" for="checkbox">
  39. <input type="checkbox" id="checkbox" />
  40. <div class="slider round"></div>
  41. </label>
  42. </div>
  43. <a class="navbar-item" href="https://github.com/jmonkeyengine/wiki">Github</a>
  44. </div>
  45. </div>
  46. </nav>
  47. </header>
  48. <div class="body">
  49. <div class="nav-container" data-component="docs" data-version="master">
  50. <aside class="nav">
  51. <div class="panels">
  52. <div class="nav-panel-menu is-active" data-panel="menu">
  53. <nav class="nav-menu">
  54. <h3 class="title"><a href="../documentation.html">Docs</a></h3>
  55. <ul class="nav-list">
  56. <li class="nav-item" data-depth="0">
  57. <ul class="nav-list">
  58. <li class="nav-item" data-depth="1">
  59. <a class="nav-link" href="../documentation.html">Getting Started</a>
  60. </li>
  61. <li class="nav-item" data-depth="1">
  62. <a class="nav-link" href="https://javadoc.jmonkeyengine.org/v3.3.2-stable">JavaDoc</a>
  63. </li>
  64. <li class="nav-item" data-depth="1">
  65. <button class="nav-item-toggle"></button>
  66. <a class="nav-link" href="../jme3.html">jMonkeyEngine 3</a>
  67. <ul class="nav-list">
  68. <li class="nav-item" data-depth="2">
  69. <button class="nav-item-toggle"></button>
  70. <span class="nav-text">Beginner Tutorials</span>
  71. <ul class="nav-list">
  72. <li class="nav-item" data-depth="3">
  73. <a class="nav-link" href="../jme3/beginner/hello_simpleapplication.html">Hello SimpleApplication</a>
  74. </li>
  75. <li class="nav-item" data-depth="3">
  76. <a class="nav-link" href="../jme3/beginner/hello_node.html">Hello Node</a>
  77. </li>
  78. <li class="nav-item" data-depth="3">
  79. <a class="nav-link" href="../jme3/beginner/hello_asset.html">Hello Asset</a>
  80. </li>
  81. <li class="nav-item" data-depth="3">
  82. <a class="nav-link" href="../jme3/beginner/hello_main_event_loop.html">Hello Main Event Loop</a>
  83. </li>
  84. <li class="nav-item" data-depth="3">
  85. <a class="nav-link" href="../jme3/beginner/hello_input_system.html">Hello Input System</a>
  86. </li>
  87. <li class="nav-item" data-depth="3">
  88. <a class="nav-link" href="../jme3/beginner/hello_material.html">Hello Material</a>
  89. </li>
  90. <li class="nav-item" data-depth="3">
  91. <a class="nav-link" href="../jme3/beginner/hello_animation.html">Hello Animation</a>
  92. </li>
  93. <li class="nav-item" data-depth="3">
  94. <a class="nav-link" href="../jme3/beginner/hello_picking.html">Hello Picking</a>
  95. </li>
  96. <li class="nav-item" data-depth="3">
  97. <a class="nav-link" href="../jme3/beginner/hello_collision.html">Hello Collision</a>
  98. </li>
  99. <li class="nav-item" data-depth="3">
  100. <a class="nav-link" href="../jme3/beginner/hello_terrain.html">Hello Terrain</a>
  101. </li>
  102. <li class="nav-item" data-depth="3">
  103. <a class="nav-link" href="../jme3/beginner/hello_audio.html">Hello Audio</a>
  104. </li>
  105. <li class="nav-item" data-depth="3">
  106. <a class="nav-link" href="../jme3/beginner/hello_effects.html">Hello Effects</a>
  107. </li>
  108. <li class="nav-item" data-depth="3">
  109. <a class="nav-link" href="../jme3/beginner/hello_physics.html">Hello Physics</a>
  110. </li>
  111. </ul>
  112. </li>
  113. <li class="nav-item" data-depth="2">
  114. <button class="nav-item-toggle"></button>
  115. <span class="nav-text">Intermediate Tutorials</span>
  116. <ul class="nav-list">
  117. <li class="nav-item" data-depth="3">
  118. <button class="nav-item-toggle"></button>
  119. <span class="nav-text">Concepts</span>
  120. <ul class="nav-list">
  121. <li class="nav-item" data-depth="4">
  122. <a class="nav-link" href="../jme3/intermediate/best_practices.html">Best Practices</a>
  123. </li>
  124. <li class="nav-item" data-depth="4">
  125. <a class="nav-link" href="../jme3/intermediate/simpleapplication.html">Simple Application</a>
  126. </li>
  127. <li class="nav-item" data-depth="4">
  128. <a class="nav-link" href="../jme3/features.html">Features</a>
  129. </li>
  130. <li class="nav-item" data-depth="4">
  131. <a class="nav-link" href="../jme3/intermediate/optimization.html">Optimization</a>
  132. </li>
  133. <li class="nav-item" data-depth="4">
  134. <a class="nav-link" href="../jme3/faq.html">FAQ</a>
  135. </li>
  136. </ul>
  137. </li>
  138. <li class="nav-item" data-depth="3">
  139. <button class="nav-item-toggle"></button>
  140. <span class="nav-text">Math Concepts</span>
  141. <ul class="nav-list">
  142. <li class="nav-item" data-depth="4">
  143. <a class="nav-link" href="../jme3/math_for_dummies.html">Math For Dummies</a>
  144. </li>
  145. <li class="nav-item" data-depth="4">
  146. <a class="nav-link" href="../jme3/intermediate/math.html">Math</a>
  147. </li>
  148. <li class="nav-item" data-depth="4">
  149. <a class="nav-link" href="../jme3/math.html">More Math</a>
  150. </li>
  151. <li class="nav-item" data-depth="4">
  152. <a class="nav-link" href="../jme3/rotate.html">Rotate</a>
  153. </li>
  154. <li class="nav-item" data-depth="4">
  155. <a class="nav-link" href="../jme3/math_video_tutorials.html">Math Video Tutorials</a>
  156. </li>
  157. </ul>
  158. </li>
  159. <li class="nav-item" data-depth="3">
  160. <button class="nav-item-toggle"></button>
  161. <span class="nav-text">3D Graphics Concepts</span>
  162. <ul class="nav-list">
  163. <li class="nav-item" data-depth="4">
  164. <a class="nav-link" href="../jme3/intermediate/multi-media_asset_pipeline.html">Multi-Media Asset Pipeline</a>
  165. </li>
  166. <li class="nav-item" data-depth="4">
  167. <a class="nav-link" href="../jme3/scenegraph_for_dummies.html">Scenegraph for Dummies</a>
  168. </li>
  169. <li class="nav-item" data-depth="4">
  170. <a class="nav-link" href="../jme3/beginner/hellovector.html">Hello Vector</a>
  171. </li>
  172. <li class="nav-item" data-depth="4">
  173. <a class="nav-link" href="../jme3/terminology.html">Terminology</a>
  174. </li>
  175. <li class="nav-item" data-depth="4">
  176. <a class="nav-link" href="../jme3/intermediate/how_to_use_materials.html">How to Use Materials</a>
  177. </li>
  178. <li class="nav-item" data-depth="4">
  179. <a class="nav-link" href="../jme3/intermediate/transparency_sorting.html">Transparency and Sorting</a>
  180. </li>
  181. <li class="nav-item" data-depth="4">
  182. <a class="nav-link" href="../jme3/external/blender.html">Importing from Blender</a>
  183. </li>
  184. <li class="nav-item" data-depth="4">
  185. <a class="nav-link" href="../jme3/external/3dsmax.html">Importing from 3DS Max</a>
  186. </li>
  187. </ul>
  188. </li>
  189. </ul>
  190. </li>
  191. </ul>
  192. </li>
  193. <li class="nav-item" data-depth="1">
  194. <a class="nav-link" href="../logo.html">Logo Usage</a>
  195. </li>
  196. <li class="nav-item" data-depth="1">
  197. <a class="nav-link" href="../bsd_license.html">License</a>
  198. </li>
  199. <li class="nav-item" data-depth="1">
  200. <a class="nav-link" href="../github_tips.html">Github Tips</a>
  201. </li>
  202. </ul>
  203. </li>
  204. <li class="nav-item" data-depth="0">
  205. <button class="nav-item-toggle"></button>
  206. <span class="nav-text">SDK</span>
  207. <ul class="nav-list">
  208. <li class="nav-item" data-depth="1">
  209. <a class="nav-link" href="../sdk.html">jMonkeyEngine SDK</a>
  210. </li>
  211. </ul>
  212. </li>
  213. </ul>
  214. </nav>
  215. </div>
  216. <div class="nav-panel-explore" data-panel="explore">
  217. <div class="context">
  218. <span class="title">Docs</span>
  219. <span class="version">master</span>
  220. </div>
  221. <ul class="components">
  222. <li class="component is-current">
  223. <span class="title">Docs</span>
  224. <ul class="versions">
  225. <li class="version is-current is-latest">
  226. <a href="../documentation.html">master</a>
  227. </li>
  228. </ul>
  229. </li>
  230. <li class="component">
  231. <span class="title">Wiki UI</span>
  232. <ul class="versions">
  233. <li class="version is-latest">
  234. <a href="../../wiki-ui/index.html">master</a>
  235. </li>
  236. </ul>
  237. </li>
  238. </ul>
  239. </div>
  240. </div>
  241. </aside>
  242. </div>
  243. <main class="article">
  244. <div class="toolbar" role="navigation">
  245. <button class="nav-toggle"></button>
  246. <nav class="breadcrumbs" aria-label="breadcrumbs">
  247. <ul>
  248. <li><a href="../documentation.html">Docs</a></li>
  249. <li><a href="troubleshooting.html">troubleshooting</a></li>
  250. </ul>
  251. </nav>
  252. <div class="edit-this-page"><a href="https://github.com/jMonkeyEngine/wiki/edit/master/docs/modules/ROOT/pages/sdk/troubleshooting.adoc">Edit this Page</a></div>
  253. </div>
  254. <div class="content">
  255. <article class="doc">
  256. <h1 class="page">troubleshooting</h1>
  257. <div class="sect1">
  258. <h2 id="troubleshooting-jmonkeyengine3-sdk"><a class="anchor" href="#troubleshooting-jmonkeyengine3-sdk"></a>Troubleshooting jMonkeyEngine3 SDK</h2>
  259. <div class="sectionbody">
  260. <div class="sect2">
  261. <h3 id="graphics-card-driver"><a class="anchor" href="#graphics-card-driver"></a>Graphics Card Driver</h3>
  262. <div class="paragraph">
  263. <p><strong>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.</strong> On OSX, make sure you have the latest update for your MacOS.</p>
  264. </div>
  265. </div>
  266. <div class="sect2">
  267. <h3 id="stability-graphics-issues"><a class="anchor" href="#stability-graphics-issues"></a>Stability / Graphics issues</h3>
  268. <div class="paragraph">
  269. <p>On some Linux and Windows systems, the SDK might perform unstable and quit with native VM crashes or &#8220;x&#8221; errors. There are a few things one can try to remedy those issues.</p>
  270. </div>
  271. <div class="sect3">
  272. <h4 id="heavyweight-canvas"><a class="anchor" href="#heavyweight-canvas"></a>Heavyweight Canvas</h4>
  273. <div class="paragraph">
  274. <p>First of all theres the new &#8220;OpenGL&#8221; settings page in the SDK global settings where you can enable the &#8220;Heavyweight Canvas&#8221;, which solved some issues for some people. The settings panel can be found under <code><span class="menuseq"><b class="menu">Tools</b>&#160;<i class="fa fa-angle-right caret"></i> <b class="menuitem">Options</b></span></code> on Windows and Linux and in the main menu (or by pressing Apple-Comma) for MacOSX.</p>
  275. </div>
  276. <div class="paragraph">
  277. <p>If you cannot start the SDK, edit the file <code>config/Preferences/com/jme3/gde/core.properties</code> in the SDK settings folder (see above). If it doesn&#8217;t exist, create the file including all folders. Add the line <code>use_lwjgl_canvas=true</code>. To try OpenGL1 compatibility mode (works for both canvas settings) add <code>use_opengl_1=true</code>.</p>
  278. </div>
  279. </div>
  280. <div class="sect3">
  281. <h4 id="look-and-feel"><a class="anchor" href="#look-and-feel"></a>Look and Feel</h4>
  282. <div class="paragraph">
  283. <p>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 &#8220;- -&#8221; prefix).</p>
  284. </div>
  285. <div class="listingblock">
  286. <div class="content">
  287. <pre class="highlightjs highlight"><code>--laf javax.swing.plaf.nimbus.NimbusLookAndFeel</code></pre>
  288. </div>
  289. </div>
  290. <div class="paragraph">
  291. <p>or alternatively</p>
  292. </div>
  293. <div class="listingblock">
  294. <div class="content">
  295. <pre class="highlightjs highlight"><code>--laf javax.swing.plaf.metal.MetalLookAndFeel</code></pre>
  296. </div>
  297. </div>
  298. </div>
  299. <div class="sect3">
  300. <h4 id="compiz"><a class="anchor" href="#compiz"></a>Compiz</h4>
  301. <div class="paragraph">
  302. <p>Compiz on Linux might cause issues, if you set its rendering quality to &#8220;Medium&#8221; these should go away.</p>
  303. </div>
  304. <div class="ulist">
  305. <ul>
  306. <li>
  307. <p><code><span class="menuseq"><b class="menu">Appearance</b>&#160;<i class="fa fa-angle-right caret"></i> <b class="submenu">Set Special effects to</b>&#160;<i class="fa fa-angle-right caret"></i> <b class="menuitem">&#8220;Medium&#8221;</b></span></code></p>
  308. </li>
  309. </ul>
  310. </div>
  311. </div>
  312. </div>
  313. <div class="sect2">
  314. <h3 id="updating-problems"><a class="anchor" href="#updating-problems"></a>Updating problems</h3>
  315. <div class="paragraph">
  316. <p>If you have problems updating the SDK, try deleting all files from <code>jmonkeyplatform/update/download</code> and/or <code>[settings folder]/update/download</code> depending on your system (see below for the settings folder location).</p>
  317. </div>
  318. <div class="paragraph">
  319. <p>If you are on Linux, check if the user you run the SDK with has access to the files in <code>jmonkeyplatform/jdk/bin</code> and that they are executable.</p>
  320. </div>
  321. </div>
  322. <div class="sect2">
  323. <h3 id="freezing-performance-problems"><a class="anchor" href="#freezing-performance-problems"></a>Freezing / Performance problems</h3>
  324. <div class="paragraph">
  325. <p>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.</p>
  326. </div>
  327. </div>
  328. <div class="sect2">
  329. <h3 id="preferences-and-settings"><a class="anchor" href="#preferences-and-settings"></a>Preferences and Settings</h3>
  330. <div class="paragraph">
  331. <p>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 &#8220;about&#8221; menu and is as following for the different <abbr title="Operating System">OS</abbr>'s:</p>
  332. </div>
  333. <div class="ulist">
  334. <ul>
  335. <li>
  336. <p>Windows: <code>C:\Userspass\&lt;username&gt;\AppData\Roaming\.jmonkeyplatform</code></p>
  337. </li>
  338. <li>
  339. <p>Windows (alt): <code>C:\Users\&lt;username&gt;\.jmonkeyplatform\</code></p>
  340. </li>
  341. <li>
  342. <p>MacOSX: <code>/Users/&lt;username&gt;/Library/Application Support/jmonkeyplatform</code></p>
  343. </li>
  344. <li>
  345. <p>Ubuntu: <code>/home/&lt;username&gt;/.jmonkeyplatform</code></p>
  346. </li>
  347. </ul>
  348. </div>
  349. </div>
  350. <div class="sect2">
  351. <h3 id="log"><a class="anchor" href="#log"></a>Log</h3>
  352. <div class="paragraph">
  353. <p>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 <code>var/log/messages.log</code>.</p>
  354. </div>
  355. </div>
  356. <div class="sect2">
  357. <h3 id="getting-error-messages-and-reporting-issues"><a class="anchor" href="#getting-error-messages-and-reporting-issues"></a>Getting error messages and reporting issues</h3>
  358. <div class="paragraph">
  359. <p>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.</p>
  360. </div>
  361. </div>
  362. <div class="sect2">
  363. <h3 id="specifying-the-jdk-location"><a class="anchor" href="#specifying-the-jdk-location"></a>Specifying the JDK location</h3>
  364. <div class="paragraph">
  365. <p>You can install another JDK for use with the jMonkey SDK. You then have to specify the location manually.</p>
  366. </div>
  367. <div class="olist arabic">
  368. <ol class="arabic">
  369. <li>
  370. <p>Go to your jMonkeyEngine SDK installation directory.<br>
  371. Mac users right-click jMonkeyApplication.app (which actually is a directory) in the Finder and select &#8220;Show package contents&#8221;.</p>
  372. </li>
  373. <li>
  374. <p>Navigate to the <code>etc</code> directory.<br>
  375. Mac users navigate to <code>Contents/Resources/jmonkeyplatform/etc/</code>.</p>
  376. </li>
  377. <li>
  378. <p>Open the file <code>jmonkeyplatform.conf</code> in a text editor.</p>
  379. </li>
  380. <li>
  381. <p>Change the following line and enter the path to the JDK:</p>
  382. </li>
  383. </ol>
  384. </div>
  385. <div class="listingblock">
  386. <div class="content">
  387. <pre>jdkhome="/path/to/jdk"</pre>
  388. </div>
  389. </div>
  390. </div>
  391. <div class="sect2">
  392. <h3 id="freezing-at-startup"><a class="anchor" href="#freezing-at-startup"></a>Freezing at startup</h3>
  393. <div class="paragraph">
  394. <p>If you&#8217;re behind a proxy or special network settings, try :</p>
  395. </div>
  396. <div class="olist arabic">
  397. <ol class="arabic">
  398. <li>
  399. <p>Disable your network connection.</p>
  400. </li>
  401. <li>
  402. <p>Launch jme sdk (may wait 30s/1min for timeout).</p>
  403. </li>
  404. <li>
  405. <p>Go into <code><span class="menuseq"><b class="menu">Tools</b>&#160;<i class="fa fa-angle-right caret"></i> <b class="submenu">Options</b>&#160;<i class="fa fa-angle-right caret"></i> <b class="menuitem">General</b></span></code>.</p>
  406. </li>
  407. <li>
  408. <p>Setup &#8220;manual proxy settings&#8221; (for some reason the &#8220;Use System Proxy Settings&#8221; option doesn&#8217;t work on some Linux distributions)</p>
  409. </li>
  410. </ol>
  411. </div>
  412. <div class="paragraph">
  413. <p><a href="https://hub.jmonkeyengine.org/t/jme-sdk-stalls-on-startup/30555">Discussion</a> of the problem.</p>
  414. </div>
  415. </div>
  416. <div class="sect2">
  417. <h3 id="known-issues"><a class="anchor" href="#known-issues"></a>Known Issues</h3>
  418. <div class="paragraph">
  419. <p>For a list of known issues and possible workarounds see the following link: <a href="https://github.com/jMonkeyEngine/sdk/issues">List of known issues on github.</a></p>
  420. </div>
  421. <div class="paragraph">
  422. <p>Some issue are imported from the previous googlecode:
  423. <a href="https://code.google.com/archive/p/jmonkeyengine/issues">List of old issues on googlecode.</a></p>
  424. </div>
  425. </div>
  426. </div>
  427. </div>
  428. </article>
  429. <aside class="toc sidebar" data-title="Contents" data-levels="2">
  430. <div class="toc-menu"></div>
  431. </aside>
  432. </div>
  433. </main>
  434. </div>
  435. <footer class="footer">
  436. <p>Copyright 2020 jMonkeyEngine Wiki Contributors. Licensed BSD-3.</p>
  437. </footer>
  438. <script src="../../_/js/vendor/docsearch.min.js"></script>
  439. <!-- fetched from https://cdn.jsdelivr.net/npm/docsearch.js@2/dist/cdn/docsearch.min.js -->
  440. <script>
  441. var search = docsearch({
  442. apiKey: 'a736b6d93de805e26ec2f49b55013fbd',
  443. indexName: 'jmonkeyengine',
  444. inputSelector: '#search-input',
  445. autocompleteOptions: { hint: false, keyboardShortcuts: ['s'] },
  446. algoliaOptions: { hitsPerPage: 10 }
  447. }).autocomplete
  448. search.on('autocomplete:closed', function () { search.autocomplete.setVal() })
  449. function focusSearchInput () { document.querySelector('#search-input').focus() }
  450. if (document.querySelector('.home-link.is-current')) window.addEventListener('load', focusSearchInput)
  451. </script>
  452. <script src="../../_/js/site.js"></script>
  453. <script async src="../../_/js/vendor/highlight.js"></script>
  454. </body>
  455. </html>