theRAPTLab / meme

DEPRECATED as of 2024-05-21. Use `theRAPTLab/meme-2023` instead. MEME development framework, using Electron, Webpack, and Express to create an "appliance-style" app server to end users on a LAN. Migrated from GitLab June 2023.
MIT License
0 stars 2 forks source link

Chrome Reload Hang #15

Open benloh opened 5 years ago

benloh commented 5 years ago

Lately, in the middle of coding, Chrome would occasionally hang for no apparent reason after a recompile. The sequence is:

  1. Edit some MEME code (in this case, I was editing EvidenceLink.jsx)
  2. Hit Save
  3. Chrome clears the screen like it's going to reload.
  4. Then it just hangs. See screenshot.

screenshot_616

The only remedy is to use Activity Monitor or the Chrome Task Manager to Force Quit the MEME process.

After force quitting, you can reload the page with no problems.

benloh commented 5 years ago

In GitLab by @daveseah on Oct 4, 2019, 10:45

I wonder if you can trigger it with multiple saves of the same file you're editing to force MEME to recompile and reload. If you can capture the screen with the console showing that might be helpful. Possibly also using a remote debugger instance that might capture debug activity (I'm not sure what's possible in Chrome with this regard, but it's probably running in a different process thread so it might not be unresponsive)

benloh commented 5 years ago

The console WAS showing...the reload causes it to disappear.

I should probably try this on Canary to see if there's a difference. It might have been with this recent Chrome update.

benloh commented 5 years ago

In GitLab by @daveseah on Oct 18, 2019, 14:00

I've been noticing this lately myself about a week ago. It seems to happen when I get a certain kind of crash during a Promise or React event, and this messes up the hot module replacement that reloads.

Possibly it is a hung socket? If I close the server before attempting to reload sometimes that seems to make the reload work.