Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Random white screen in cluster view requiring app reload #4227

Open
SB-MFJ opened this issue Jul 18, 2024 · 4 comments
Open

Random white screen in cluster view requiring app reload #4227

SB-MFJ opened this issue Jul 18, 2024 · 4 comments

Comments

@SB-MFJ
Copy link

SB-MFJ commented Jul 18, 2024

Describe the bug

Randomly, the whole app turns white when doing anything in the cluster view.
Need to force reload and connect to the cluster again

To Reproduce
Steps to reproduce the behavior:

  1. open the app
  2. go to cluster view
  3. navigate around for a little (usually within 30 seconds)
    1. you can also just leave it open for a minute or two, and it will also white screen
    2. nothing in the developer console either, but now the screen will be gray. So maybe like the page electron is serving disappears, but the wrapper is still up?
  4. white screen of death

Expected behavior
Expected to not hang and needing to reload so frequently

Screenshots
image

Desktop (please complete the following information):

  • macOS Sonoma 14.5
  • Monokle 2.4.8

Additional context
We have about 2586 resources which I don't believe is that many, k8 1.30.3
The app was a little slow when first starting out, so I disabled some of the validation checks to get moving for now.

Side tangent: Where does the CPU/RAM data get pulled from?

@olensmar
Copy link
Member

hi @STV-MFJ - thanks for reporting and sorry for the troubles you are having.. what kind of cluster are you connecting to!? is it local or remote?

regarding the CPU/RAM data - i'm not sure - perhaps @devcatalin can help?

@SB-MFJ
Copy link
Author

SB-MFJ commented Jul 22, 2024

This is an AWS EKS cluster

@cdm-arm
Copy link

cdm-arm commented Oct 12, 2024

Hi @olensmar

I'm getting the same as @SB-MFJ. My clusters are VMWare Tanzu with k8s 1.28, I'm running on a M3 Max / 64GB under Sequoia 15.0.1.

Started Monokle from the terminal and got the below trace, reproducible.

<--- Last few GCs --->

[41141:0x11c00a70000]   100892 ms: Scavenge 1469.0 (1540.6) -> 1464.7 (1541.9) MB, 1.58 / 0.00 ms  (average mu = 0.998, current mu = 0.999) task; 
[41141:0x11c00a70000]   103239 ms: Scavenge 1472.2 (1542.1) -> 1466.6 (1542.6) MB, 1.25 / 0.00 ms  (average mu = 0.998, current mu = 0.999) allocation failure; 
[41141:0x11c00a70000]   104000 ms: Scavenge 1472.4 (1542.9) -> 1468.0 (1542.9) MB, 13.88 / 0.00 ms  (average mu = 0.998, current mu = 0.999) task; 


<--- JS stacktrace --->

FATAL ERROR: NewSpace::EnsureCurrentCapacity Allocation failed - JavaScript heap out of memory
 1: 0x11c3708d8 node::Buffer::New(v8::Isolate*, char*, unsigned long) [/Applications/Monokle.app/Contents/Frameworks/Electron Framework.framework/Versions/A/Electron Framework]
 2: 0x11c370b0c node::OnFatalError(char const*, char const*) [/Applications/Monokle.app/Contents/Frameworks/Electron Framework.framework/Versions/A/Electron Framework]
 3: 0x1169aa7fc v8::internal::V8::FatalProcessOutOfMemory(v8::internal::Isolate*, char const*, v8::OOMDetails const&) [/Applications/Monokle.app/Contents/Frameworks/Electron Framework.framework/Versions/A/Electron Framework]
 4: 0x1169aa784 v8::internal::V8::FatalProcessOutOfMemory(v8::internal::Isolate*, char const*, v8::OOMDetails const&) [/Applications/Monokle.app/Contents/Frameworks/Electron Framework.framework/Versions/A/Electron Framework]
 5: 0x116b7beb4 v8::internal::Heap::stack() [/Applications/Monokle.app/Contents/Frameworks/Electron Framework.framework/Versions/A/Electron Framework]
 6: 0x116ba613c v8::internal::MainAllocator::EnsureAllocationForTesting(int, v8::internal::AllocationAlignment, v8::internal::AllocationOrigin) [/Applications/Monokle.app/Contents/Frameworks/Electron Framework.framework/Versions/A/Electron Framework]
 7: 0x116b7ecec v8::internal::Heap::FreeLinearAllocationAreas() [/Applications/Monokle.app/Contents/Frameworks/Electron Framework.framework/Versions/A/Electron Framework]
 8: 0x116b7e560 v8::internal::Heap::EnsureWasmCanonicalRttsSize(int) [/Applications/Monokle.app/Contents/Frameworks/Electron Framework.framework/Versions/A/Electron Framework]
 9: 0x116b90ee8 void v8::internal::Heap::CopyRange<v8::internal::CompressedObjectSlot>(v8::internal::Tagged<v8::internal::HeapObject>, v8::internal::CompressedObjectSlot, v8::internal::CompressedObjectSlot, int, v8::internal::WriteBarrierMode) [/Applications/Monokle.app/Contents/Frameworks/Electron Framework.framework/Versions/A/Electron Framework]
10: 0x116b90dbc void v8::internal::Heap::CopyRange<v8::internal::CompressedObjectSlot>(v8::internal::Tagged<v8::internal::HeapObject>, v8::internal::CompressedObjectSlot, v8::internal::CompressedObjectSlot, int, v8::internal::WriteBarrierMode) [/Applications/Monokle.app/Contents/Frameworks/Electron Framework.framework/Versions/A/Electron Framework]
11: 0x1159b195c v8::internal::GetCurrentStackPosition() [/Applications/Monokle.app/Contents/Frameworks/Electron Framework.framework/Versions/A/Electron Framework]
12: 0x116b7a3ac v8::internal::Heap::CollectGarbage(v8::internal::AllocationSpace, v8::internal::GarbageCollectionReason, v8::GCCallbackFlags) [/Applications/Monokle.app/Contents/Frameworks/Electron Framework.framework/Versions/A/Electron Framework]
13: 0x116b7dfbc v8::internal::Heap::MoveRange(v8::internal::Tagged<v8::internal::HeapObject>, v8::internal::CompressedObjectSlot, v8::internal::CompressedObjectSlot, int, v8::internal::WriteBarrierMode) [/Applications/Monokle.app/Contents/Frameworks/Electron Framework.framework/Versions/A/Electron Framework]
14: 0x116b5e8ac v8::internal::Factory::NewJSObject(v8::internal::Handle<v8::internal::JSFunction>, v8::internal::AllocationType) [/Applications/Monokle.app/Contents/Frameworks/Electron Framework.framework/Versions/A/Electron Framework]
15: 0x1169c9368 v8::Object::New(v8::Isolate*) [/Applications/Monokle.app/Contents/Frameworks/Electron Framework.framework/Versions/A/Electron Framework]
16: 0x11c305a18 node::EmitAsyncDestroy(node::Environment*, node::async_context) [/Applications/Monokle.app/Contents/Frameworks/Electron Framework.framework/Versions/A/Electron Framework]
17: 0x11c3053d0 node::EmitAsyncDestroy(node::Environment*, node::async_context) [/Applications/Monokle.app/Contents/Frameworks/Electron Framework.framework/Versions/A/Electron Framework]
18: 0x11577a4b8 uv_check_start [/Applications/Monokle.app/Contents/Frameworks/Electron Framework.framework/Versions/A/Electron Framework]
19: 0x115775160 uv_run [/Applications/Monokle.app/Contents/Frameworks/Electron Framework.framework/Versions/A/Electron Framework]
20: 0x115918f4c node::FreeArrayBufferAllocator(node::ArrayBufferAllocator*) [/Applications/Monokle.app/Contents/Frameworks/Electron Framework.framework/Versions/A/Electron Framework]
21: 0x118aa58e8 node::GetArrayBufferAllocator(node::IsolateData*) [/Applications/Monokle.app/Contents/Frameworks/Electron Framework.framework/Versions/A/Electron Framework]
22: 0x118ac2ee4 node::GetArrayBufferAllocator(node::IsolateData*) [/Applications/Monokle.app/Contents/Frameworks/Electron Framework.framework/Versions/A/Electron Framework]
23: 0x118a62d40 node::GetArrayBufferAllocator(node::IsolateData*) [/Applications/Monokle.app/Contents/Frameworks/Electron Framework.framework/Versions/A/Electron Framework]
24: 0x118ac3a44 node::GetArrayBufferAllocator(node::IsolateData*) [/Applications/Monokle.app/Contents/Frameworks/Electron Framework.framework/Versions/A/Electron Framework]
25: 0x118a8a62c node::GetArrayBufferAllocator(node::IsolateData*) [/Applications/Monokle.app/Contents/Frameworks/Electron Framework.framework/Versions/A/Electron Framework]
26: 0x11c06a19c node::CommonEnvironmentSetup::event_loop() const [/Applications/Monokle.app/Contents/Frameworks/Electron Framework.framework/Versions/A/Electron Framework]
27: 0x115ab673c v8::internal::compiler::BasicBlock::set_loop_header(v8::internal::compiler::BasicBlock*) [/Applications/Monokle.app/Contents/Frameworks/Electron Framework.framework/Versions/A/Electron Framework]
28: 0x115ab73b8 v8::internal::compiler::BasicBlock::set_loop_header(v8::internal::compiler::BasicBlock*) [/Applications/Monokle.app/Contents/Frameworks/Electron Framework.framework/Versions/A/Electron Framework]
29: 0x115ab5d14 v8::internal::compiler::BasicBlock::set_loop_header(v8::internal::compiler::BasicBlock*) [/Applications/Monokle.app/Contents/Frameworks/Electron Framework.framework/Versions/A/Electron Framework]
30: 0x115ab5eb4 v8::internal::compiler::BasicBlock::set_loop_header(v8::internal::compiler::BasicBlock*) [/Applications/Monokle.app/Contents/Frameworks/Electron Framework.framework/Versions/A/Electron Framework]
31: 0x1157862f0 ElectronMain [/Applications/Monokle.app/Contents/Frameworks/Electron Framework.framework/Versions/A/Electron Framework]
32: 0x1026789f0  [/Applications/Monokle.app/Contents/Frameworks/Monokle Helper (Renderer).app/Contents/MacOS/Monokle Helper (Renderer)]
33: 0x198f64274 start [/usr/lib/dyld]

@cdm-arm
Copy link

cdm-arm commented Oct 14, 2024

As simple work around is to start Monokle from the terminal with increased memory. 4GB RAM seemed to work for me, but others may need bigger or smaller values.

cd /Applications/Monokle.app/Contents/MacOS     
NODE_OPTIONS=--max-old-space-size=4096 ./Monokle

[79425:1014/131920.369268:ERROR:node_bindings.cc(368)] Most NODE_OPTIONs are not supported in packaged apps. See documentation for more details.
[2024-10-14 13:19:20.975] [browser] [info]  New Session.
[2024-10-14 13:19:21.302] [browser] [info]  info monokle 2.4.8 en-GB null

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: No Status
Development

No branches or pull requests

3 participants