Author Topic: ERROR: Texture '--*--BlittingWrapper_internal--*--' not found!  (Read 353 times)

Offline AGP

  • quad
  • ******
  • Posts: 1524
    • View Profile
ERROR: Texture '--*--BlittingWrapper_internal--*--' not found!
« on: October 04, 2017, 03:30:02 am »
Is this a jpct error? If so, what is it? I'm using the software renderer here.

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 11770
    • View Profile
    • http://www.jpct.net
Re: ERROR: Texture '--*--BlittingWrapper_internal--*--' not found!
« Reply #1 on: October 04, 2017, 10:13:05 am »
It seems to be. Can you be more specific in what exactly triggers this?

Offline AGP

  • quad
  • ******
  • Posts: 1524
    • View Profile
Re: ERROR: Texture '--*--BlittingWrapper_internal--*--' not found!
« Reply #2 on: October 05, 2017, 06:38:58 pm »
I've tried replicating it during the game. Invariably, I will get it as I close it. Often during, but I can't seem to  cause it to happen while running. But whenever I close, there it is.

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 11770
    • View Profile
    • http://www.jpct.net
Re: ERROR: Texture '--*--BlittingWrapper_internal--*--' not found!
« Reply #3 on: October 05, 2017, 10:17:17 pm »
Are you doing something like flush() on the TextureManager?

Offline AGP

  • quad
  • ******
  • Posts: 1524
    • View Profile
Re: ERROR: Texture '--*--BlittingWrapper_internal--*--' not found!
« Reply #4 on: October 05, 2017, 11:35:50 pm »
No. Do you know what I'm almost certain to be one of the causes? FrameBuffer.dispose().

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 11770
    • View Profile
    • http://www.jpct.net
Re: ERROR: Texture '--*--BlittingWrapper_internal--*--' not found!
« Reply #5 on: October 06, 2017, 10:06:39 am »
Are you doing the dispose in another thread then?

Offline AGP

  • quad
  • ******
  • Posts: 1524
    • View Profile
Re: ERROR: Texture '--*--BlittingWrapper_internal--*--' not found!
« Reply #6 on: October 06, 2017, 08:36:10 pm »
Same thread as the gameloop and just before Frame.dispose().

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 11770
    • View Profile
    • http://www.jpct.net
Re: ERROR: Texture '--*--BlittingWrapper_internal--*--' not found!
« Reply #7 on: October 09, 2017, 12:55:43 pm »
I don't see how this can happen if everything happens in the same thread. Where does the actual rendering happen then?

Offline AGP

  • quad
  • ******
  • Posts: 1524
    • View Profile
Re: ERROR: Texture '--*--BlittingWrapper_internal--*--' not found!
« Reply #8 on: October 12, 2017, 02:57:38 am »
Code: [Select]
     private void loop() {
....
     buffer.clear(java.awt.Color.black);
     theWorld.renderScene(buffer);
     theWorld.draw(buffer);
     buffer.displayGLOnly();
     canvas.repaint();
     Thread.yield();
}
buffer.dispose();//CAUSES THE PROBLEM
this.dispose();
buffer.disableRenderer(IRenderer.RENDERER_OPENGL);
System.exit(0);

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 11770
    • View Profile
    • http://www.jpct.net
Re: ERROR: Texture '--*--BlittingWrapper_internal--*--' not found!
« Reply #9 on: October 12, 2017, 07:47:52 am »
Try to disable the renderer before disposing it.