Giter VIP home page Giter VIP logo

Comments (6)

euphy avatar euphy commented on August 14, 2024

Generate commands from where? Can you help me replicate the issue?

from polargraphcontroller.

OneTrueTai avatar OneTrueTai commented on August 14, 2024

Step by step. I load the program from Processing, because the Java exe file didnt want to run. https://gyazo.com/a0b5918ab966d6b975e6709984751a34 (Console on startup if this helps any)
Start the Queue
Set Home
Load Image File
Load fire
Select Area, Show Density Range off
Mask the white area.
Render Pixels (Top Left, Var Freq Square Wave, Lift Pen over Masked.)
Generate Commands
Crash
The queue that would be sent goes from row: 24948.0 to 35262.0, skipping 18 numbers each time, the queue ending with Dir:SW and CME in orange at the top bar of the queue.
The Properties file if it'll help:
default.properties.txt

If there is anything else you may need, please ask for it!

from polargraphcontroller.

OneTrueTai avatar OneTrueTai commented on August 14, 2024

Have you gotten any idea or progress? It’s been a month.

from polargraphcontroller.

euphy avatar euphy commented on August 14, 2024

Hello, this is a fun one! I have two bad ways to solve it.

  1. Turn "show queue preview" off (the small toggle buttons) at the end of the buttons on the input tab.
  2. Wrap the call to queuePreview in a try/catch:

(line 843 onwards:

  ...
  showGroupBox();
  showCurrentMachinePosition();

  try {
    if (displayingQueuePreview)
      previewQueue();
  }
  catch (ConcurrentModificationException cme)
  {
    // not doing anything with this exception - I don't mind if it's wrong on the screen for a second or two.
    println("Caught CME coming from previewQueue(): " + cme.getMessage());
  }

  if (displayingInfoTextOnInputPage)
    showText(250,45);
  drawStatusText((int)statusTextPosition.x, (int)statusTextPosition.y);
  ...

I'm not sure what the problem actually is. I did replicate the issue and got the exception you described. There's nothing on that line (1624) that should be able to throw a concurrent modification exception!

I haven't dug into it. It looks to me that the list of pixels being extracted takes so long to be processed that some other process has time to interfere.

It's a very long list, and is quite unusual.

from polargraphcontroller.

euphy avatar euphy commented on August 14, 2024

I've pushed a try/catch, not the best way to do it, but it seems to work! See if it works for you.

from polargraphcontroller.

OneTrueTai avatar OneTrueTai commented on August 14, 2024

Kinda dissappointed but relieved that turning off the queue preview works. Such a simple thing. Thanks a lot though! Now I can finally doodle.

from polargraphcontroller.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.