question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

native-notifier crashes on Ubuntu

See original GitHub issue

Description

So, Brunch doesn’t (on Ubuntu 16.04) pick up filesystem changes directly. That’s fixable with watchers: {usePolling: true}.

What isn’t fixable is that if a *.scss file throws an error during compilation, it crashes brunch in watch mode.

Expected behavior

When I run node node_modules/brunch/bin/brunch w -d and I have a source file with an error in it, Brunch should log the error but not crash.

Actual behavior

It crashes:

20:50:51 - info: compiled 56 files into 3 files, copied 167 in 9.7 sec
  brunch:watch change <snip> +9m
  brunch:list Reading <snip> +1ms
  brunch:pipeline Compiling <snip>@ sass-brunch +7ms
  brunch:list Compiled <snip> +21ms
20:59:43 - error: Compiling of <snip> failed. Error: Error: Undefined variable: "$font-size-small".
           on line 449 of <snip>
   >>         font-size:$font-size-small;
      ------------------^
Stack trace was suppressed. Run with `LOGGY_STACKS=1` to see the trace. 
events.js:160
      throw er; // Unhandled 'error' event
      ^

Error: spawn notify-send ENOENT
  at exports._errnoException (util.js:1018:11)
  at Process.ChildProcess._handle.onexit (internal/child_process.js:193:32)
  at onErrorNT (internal/child_process.js:367:16)
  at _combinedTickCallback (internal/process/next_tick.js:80:11)
  at process._tickCallback (internal/process/next_tick.js:104:9)

Environment

  1. Brunch: 2.10.9
  2. Node.js: 6.10.3
  3. NPM: 3.10.10
  4. Operating system: Ubuntu 16.04

brunch config contents

watcher: {
    usePolling: true
  }

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
millerizedcommented, May 17, 2017

Any idea why that works?

I updated my comment so you are probably seeing the original comment.

As you can see the crash is with the notify-send service/package.

Error: spawn notify-send ENOENT
  at exports._errnoException (util.js:1018:11)
  at Process.ChildProcess._handle.onexit (internal/child_process.js:193:32)
  at onErrorNT (internal/child_process.js:367:16)
  at _combinedTickCallback (internal/process/next_tick.js:80:11)
  at process._tickCallback (internal/process/next_tick.js:104:9)

I meant to file an issue and got slammed last week.

1reaction
shvaikaleshcommented, May 17, 2017

Hey guys, thanks for the report.

I believe notify-send is missing on your systems, right?

Read more comments on GitHub >

github_iconTop Results From Across the Web

DebuggingSystemCrash - Community Help Wiki
If a kernel crash completely locks the system, take a look at https://wiki.ubuntu.com/KernelTeam/CrashdumpRecipe.
Read more >
Getting "System program problem detected" pops up regularly ...
Ubuntu has an error reporting system called apport which tries to catch all program crashes in the background and report them to help...
Read more >
Frequent freezes and crashes in Ubuntu 20.04
Hi,I have very frequent crashes (rendering pycharm unusable) with a new machine that runs on ubuntu 20.04. I'm on kernel 5.4.0-29-generic...
Read more >
RStudio crashes on Ubuntu 20.04 · Issue #6782 - GitHub
We also hope to fix this with the v1.3 release of RStudio. As an aside: I cannot reproduce this crash in my Ubuntu...
Read more >
Mysql on Ubuntu crashing periodically [duplicate]
Note the pattern: 2021-02-23T08:35:08.249856Z 18 [Note] Aborted connection 18 to db: 'dbname' user: 'root' host: 'localhost' (Got timeout ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found