icpc / live-v3

Overlay for competitive programming competitions broadcasts
MIT License
46 stars 15 forks source link

bug: Build results in StackOverflowError #70

Open kokx opened 2 years ago

kokx commented 2 years ago

Context (Environment)

Trying to build the application using ./gradlew build or running using ./gradlew run.

Expected Behavior

The build succeeds without an error, and its possible to run ./gradlew release afterwards and use the resulting jar, or run the application.

Current Behavior

When running ./gradlew run or ./gradlew build, the build results in a java.lang.StackOverflowError, failing the build. Full logs: https://gist.github.com/kokx/ca709aebf3f8274235d78bfa81f43019

Possible Solution

Removing sniper-tools from from the include in /settings.gradle.kts allows the build to succeed.

Steps to Reproduce

  1. Run ./gradlew build
  2. For more information, see the logs in https://gist.github.com/kokx/ca709aebf3f8274235d78bfa81f43019
kunyavskiy commented 2 years ago

I've failed to reproduce it. Maybe the difference is in java 19 vs. java 17.

Also I'm a bit confused with error: release version 11 not supported

kokx commented 2 years ago

Yes I'm confused by that error as well, because I do have java version 11 installed as well.

Anyway, I verified the same with java 17, and get the same errors: https://gist.github.com/kokx/b0a37ca5192438142d745dcf9f8a7579

irdkwmnsb commented 2 years ago

@kokx can you maybe check it now from the master branch?

kokx commented 2 years ago

Just did. This unfortunately still gives the same errors. Building without sniper-tools still works however.

kunyavskiy commented 2 years ago

I still have no idea how to reproduce it. But I've converted it to koltin, and simplified the build.

Maybe some of this will help.

irdkwmnsb commented 1 year ago

@kokx can you check again?

kokx commented 1 year ago

Unfortunately this bug stays very illusive. This time I needed to build the software without sniper-tools and reactions-bot before the StackOverflowError would not occur.