Author Topic: Crash (native)  (Read 6377 times)

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 11968
    • View Profile
    • http://www.jpct.net
Re: Crash (native)
« Reply #60 on: October 19, 2018, 08:57:59 am »
I'll go through my more obscure test devices this weekend and try to reproduce it.

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 11968
    • View Profile
    • http://www.jpct.net
Re: Crash (native)
« Reply #61 on: October 19, 2018, 10:21:51 pm »
Nope, I'm not able to reproduce it. It runs just fine on everything that I've tried it on...

Offline AeroShark333

  • long
  • ***
  • Posts: 201
    • View Profile
Re: Crash (native)
« Reply #62 on: October 24, 2018, 03:57:35 pm »
Hmmm, this is the AVD emulator I use to reproduce the error (I think I also had a Genymotion emulator that'd crash if you want that one...):
https://drive.google.com/open?id=1-iNRd9xdTU7j-WCzYIWcOqfgIxt4eRe6
Unzip these files to C:\Users\<your_username>\.android\avd
(Also edit the .ini file to make it match your path (probably only change the username twice)
And it should pop up now when you try to run the application from Android Studio I believe
« Last Edit: October 24, 2018, 04:25:01 pm by AeroShark333 »

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 11968
    • View Profile
    • http://www.jpct.net
Re: Crash (native)
« Reply #63 on: October 25, 2018, 08:35:09 am »
Is that one different from the one included in the SDK?

Offline AeroShark333

  • long
  • ***
  • Posts: 201
    • View Profile
Re: Crash (native)
« Reply #64 on: October 25, 2018, 10:57:35 am »
Hmmm, it's a Nexus 5X with API-28 (x86)
(I think I installed it from the SDK but yeah)
I've had this one for a while now so probably a newer one might be a bit different

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 11968
    • View Profile
    • http://www.jpct.net
Re: Crash (native)
« Reply #65 on: October 25, 2018, 02:31:24 pm »
I can't really use the emulator, because for me, it crashes like mad anyway no matter what I'm trying to do with it. That's not the app inside of the emulator, but the whole emulator instance.

Offline AeroShark333

  • long
  • ***
  • Posts: 201
    • View Profile
Re: Crash (native)
« Reply #66 on: October 25, 2018, 05:15:16 pm »
When you change Config.useVBO = true to false in the testcase's code
Would that help to reproduce the error on a physical device perhaps?

Offline AeroShark333

  • long
  • ***
  • Posts: 201
    • View Profile
Re: Crash (native)
« Reply #67 on: May 31, 2019, 08:41:45 pm »
  at com.threed.jpct.Logger.log (Logger.java:206)
  at com.threed.jpct.GL20.checkError (GL20.java:163)
  at com.threed.jpct.GL20.glGenBuffers (GL20.java:1385)
  at com.threed.jpct.CompiledInstance.compileToVBO (CompiledInstance.java:1478)
  at com.threed.jpct.CompiledInstance.render (CompiledInstance.java:606)
  at com.threed.jpct.GLRenderer.drawWireframe (GLRenderer.java:2548)
  at com.threed.jpct.World.draw (World.java:1424)
  at com.threed.jpct.World.drawWireframe (World.java:1132)

Any idea what'd cause this error?

EDIT:
Also... I found this: https://stackoverflow.com/questions/47754714/load-huge-texture-in-parts-in-opengl-es-2-0
Maybe it would be a cool feature for jPCT
« Last Edit: June 02, 2019, 03:25:02 am by AeroShark333 »

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 11968
    • View Profile
    • http://www.jpct.net
Re: Crash (native)
« Reply #68 on: June 03, 2019, 10:12:05 am »
Is that the complete stack trace? I'm somehow missing the top part...

Offline AeroShark333

  • long
  • ***
  • Posts: 201
    • View Profile
Re: Crash (native)
« Reply #69 on: June 04, 2019, 03:49:52 pm »
No, this is the complete stacktrace

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 11968
    • View Profile
    • http://www.jpct.net
Re: Crash (native)
« Reply #70 on: June 05, 2019, 01:02:09 pm »
Strange. Actually, there has to be some output what the actual GL error is. It might not be part of the actual exception though. If it helps to know this, is another question...

Offline AeroShark333

  • long
  • ***
  • Posts: 201
    • View Profile
Re: Crash (native)
« Reply #71 on: June 07, 2019, 05:45:34 pm »
This looks like a similar stacktrace from another user:

java.lang.RuntimeException:
  at com.threed.jpct.Logger.log (Logger.java:206)
  at com.threed.jpct.GL20.checkError (GL20.java:163)
  at com.threed.jpct.GL20.glGenBuffers (GL20.java:1385)
  at com.threed.jpct.CompiledInstance.compileToVBO (CompiledInstance.java:1478)
  at com.threed.jpct.CompiledInstance.render (CompiledInstance.java:606)
  at com.threed.jpct.GLRenderer.drawWireframe (GLRenderer.java:2548)
  at com.threed.jpct.World.draw (World.java:1424)
  at com.threed.jpct.World.drawWireframe (World.java:1132)
  at com.aeroshark333.artofearthify.lw.ArtOfEarthify$1.run (ArtOfEarthify.java:732)
  at com.aeroshark333.artofearthify.utils.WorkerThread$2.run (WorkerThread.java:46)
  at com.aeroshark333.artofearthify.lw.ArtOfEarthify.onDrawFrame (ArtOfEarthify.java:1402)
  at com.aeroshark333.artofearthify.lw.LiveWallpaperRenderer.onDrawFrame (LiveWallpaperRenderer.java:45)
  at android.opengl.GLSurfaceView$GLThread.guardedRun (GLSurfaceView.java:1531)
  at android.opengl.GLSurfaceView$GLThread.run (GLSurfaceView.java:1248)

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 11968
    • View Profile
    • http://www.jpct.net
Re: Crash (native)
« Reply #72 on: June 13, 2019, 12:53:23 pm »
I guess you don't have access to the log messages that are printed before this exception?

Offline AeroShark333

  • long
  • ***
  • Posts: 201
    • View Profile
Re: Crash (native)
« Reply #73 on: June 13, 2019, 07:48:09 pm »
I don't...