defold / editor2-issues

DEPRECATED
44 stars 4 forks source link

Defold Editor (x64) crashing unexpectedly #2118

Closed serioustable closed 5 years ago

serioustable commented 6 years ago

It's been hard to pinpoint the root cause, as it's been inconsistent, but at present I've been able to get it crash after doing the following:

I've been able to save it before the crash, and upon opening after the save, the Box is still present.

I've attached the log hs_err_pid2088.log

I'm really eager to learn and use Defold, and have enjoyed using it thus far, but the crashing is really deterring me from continuing. If I can get a solution, I'll be on board.

serioustable commented 6 years ago

It may be worth noting that I had the following drivers on an AMD RX 580:

18.7.1 - Crash 18.8.1 - Same Crash

I've since rolled back to 18.5.1 (considered Stable, I believe) with a clean uninstall and reinstall, and so far no crashes trying to reproduce the steps above. Does that mean this is just a driver issue?

Nougatos commented 6 years ago

I had similar crash :

I've attached the log. hs_err_pid14252.log

Thanks to @Serious-Table for the solution. Downgrade AMD driver works perfectly.

erikangelin-king commented 6 years ago

Hi @Serious-Table! Sad that you had to roll back all the way to 18.5.1, but yes, this looks like a driver issue. We took a look at what we're doing at the point the error occurs but found nothing obviously wrong.

erikangelin-king commented 5 years ago

Hi @Serious-Table and @Nougatos! We found one issue near this crash, can you try and upgrade your drivers and see if it still crashes?

serioustable commented 5 years ago

Hi @Serious-Table and @Nougatos! We found one issue near this crash, can you try and upgrade your drivers and see if it still crashes?

I'm currently on 18.11.1, the most updated version of Radeon graphics. I'm now crashing at a different point.

If I do this in an empty project, it does not crash. If I expand the game object, then right click, it does not crash.

I don't know if they're related to the graphics driver, but figured I'd bring it up here. I'll let you know if replicating the same steps in this bug generates the same issue.

erikangelin-king commented 5 years ago

Thanks! Can you attach the hserr_pid???.log file from this crash?

serioustable commented 5 years ago

hs_err_pid54408.log The most recent error log. This was from right clicking the game object in Main.collection in order to delete it during normal use.

erikangelin-king commented 5 years ago

Hi @Serious-Table! Not much to go on in the crash log unfortunately. Can you please start the editor with a couple of opengl debug flags? Open a cmd command prompt, cd to the directory where you installed the editor (there should be a Defold.exe there) and then run the following command:

packages\jre\bin\java -cp .\packages\defold-82a778a851e494129e76d767cbd21960043a7e35.jar -Djogl.debug.DebugGL -Djogl.debug.TraceGL -Djogl.debug.GLContext.TraceSwitch -Djna.nosys=true -Ddefold.launcherpath=.\Defold -Ddefold.resourcespath=. -Ddefold.version=1.2.141 -Ddefold.editor.sha1=82a778a851e494129e76d767cbd21960043a7e35 -Ddefold.engine.sha1=738e2ebc3cba56027fa00ca27706019bb772871c -Ddefold.buildtime=2018-11-13T11:54:58.312609 -Ddefold.channel=editor-alpha -Djava.ext.dirs=.\packages\jre\lib\ext -Djava.net.preferIPv4Stack=true -Dsun.net.client.defaultConnectTimeout=30000 -Dsun.net.client.defaultReadTimeout=30000 -Djogl.texture.notexrect=true -Dglass.accessible.force=false com.defold.editor.Start > gldebug.log 2>&1

Make the editor crash, and mail me the resulting gldebug.log (erik.angelin@king.com).

serioustable commented 5 years ago

@erikangelin-king New logs have been emailed, per your request!

karlhenselin commented 5 years ago

I am having the same issue with a Radeon 7870 and the 12.2 drivers. Any resolution on this besides going back to the 5.2 drivers? gldebug.log hs_err_pid928.log

karlhenselin commented 5 years ago

I just thought to try something. I changed my config file a bit. I changed the jre line to jre = C:/Program Files (x86)/Java/jre1.8.0_191 and it is letting me create gui objects. Maybe it is a Java bug instead?

Awasaky commented 5 years ago

hs_err_pid2504.log Same problem - crashing with Radeon RX470, Windows 10. I tried all things like disable antivirus, admin rights, update and roll back drivers, update jre and jdk. My crash way is - open editor, start sidescroller tutorial, at step select animation "bonus_star" it crash always, if editor window size changed or maximized. If I don't resize and don't maximize window it work fine. But I can't use only 1/4 from screen to work with Defold.

erikangelin-king commented 5 years ago

We believe this was all caused by us still using the old GL_SELECT mode for selection, and we just merged a replacement. Please update and check if it helps!