Visor-Live / visor-builds

A repository to host Visor builds
https://visor-live.github.io/
71 stars 4 forks source link

Visor Primary Display showing grey screen. #11

Closed julesvirallinen closed 3 years ago

julesvirallinen commented 3 years ago

Hi!

I'm trying to follow the tutorial to get started, but I'm getting stuck at the very basics. When I open the Sketch screen, it shows as light grey screen, and does not react to what's happening in the code. However, if I close the screen or press escape, I see a glimpse of what should be there, for maybe 0.5-1s.

I'm running the macOs version.

Any suggestions for how to debug this?

The console output from the dev console:

Using bundled Java as the JVM for Visor
renderer.js:60 [SERVER] WARN: Unresolved specs during Gem::Specification.reset:
      minitest (~> 5.1)
WARN: Clearing out unresolved specs.
Please report a bug if this causes problems.

(anonymous) @ renderer.js:60
emit @ events.js:315
addChunk @ _stream_readable.js:295
readableAddChunk @ _stream_readable.js:271
Readable.push @ _stream_readable.js:212
onStreamRead @ internal/stream_base_commons.js:186
renderer.js:60 [SERVER] Puma starting in single mode...
renderer.js:60 [SERVER] 

renderer.js:60 [SERVER] * Version 3.12.0 (jruby 9.2.1.0 - ruby 2.5.0), codename: Llamas in Pajamas
renderer.js:60 [SERVER] 

renderer.js:60 [SERVER] * Min threads: 0, max threads: 16

renderer.js:60 [SERVER] * Environment: development

renderer.js:60 [SERVER] * Listening on tcp://127.0.0.1:2323

renderer.js:60 [SERVER] Use Ctrl-C to stop

renderer.js:60 [SERVER] 2021-08-14 15:38:08.866 java[1022:12955] WARNING: NSWindow drag regions should only be invalidated on the Main Thread! This will throw an exception in the future. Called from (
    0   AppKit                              0x00007fff22e1e261 -[NSWindow(NSWindow_Theme) _postWindowNeedsToResetDragMarginsUnlessPostingDisabled] + 352
    1   AppKit                              0x00007fff22e08e32 -[NSWindow _initContent:styleMask:backing:defer:contentView:] + 1296
    2   AppKit                              0x00007fff22e0891b -[NSWindow initWithContentRect:styleMask:backing:defer:] + 42
    3   libnativewindow_macosx.jnilib       0x0000000129fbd3fe Java_jogamp_nativewindow_macosx_OSXUtil_CreateNSWindow0 + 398
    4   ???                                 0x0000000117f1e407 0x0 + 4696695815
)

(anonymous) @ renderer.js:60
emit @ events.js:315
addChunk @ _stream_readable.js:295
readableAddChunk @ _stream_readable.js:271
Readable.push @ _stream_readable.js:212
onStreamRead @ internal/stream_base_commons.js:186
renderer.js:60 [SERVER] uri:classloader:/jruby/java/core_ext/module.rb:38: warning: replacing Minim with Java::DdfMinim::Minim in constant 'Minim on class/module Minim

(anonymous) @ renderer.js:60
emit @ events.js:315
addChunk @ _stream_readable.js:295
readableAddChunk @ _stream_readable.js:271
Readable.push @ _stream_readable.js:212
onStreamRead @ internal/stream_base_commons.js:186

I also tried this JDK version https://github.com/Visor-Live/visor-builds/issues/6#issuecomment-619467216

Grey screen:

image

Flash of visual when quitting.

image

EmperorJack commented 3 years ago

Hi @julesvirallinen, thanks for your report. I believe this stems from an issue with Processing and macOS Big Sur. Are you on Big Sur?

If so, putting frame_rate in your sketch should fix the screen. E.g:

frame_rate(60) # Set the frame rate, fixing the issue?

def draw
  # ...
end

Let me know if this works for you!

julesvirallinen commented 3 years ago

Hey amazing, thanks so much! Closing the issue. Maybe worth documenting at some point?

EmperorJack commented 3 years ago

Glad that worked out! Good idea, I'll keep that in mind. Upgrading Visor to use Processing 4 (just reached beta 🎉) will likely solve this in the long term, I'll see what I get to first.