Flow: Exception in map.ml

Created on 6 Mar 2018  路  3Comments  路  Source: facebook/flow

Random crash

$ flow
Server threw an exception: ExactCover.Uncovered("\"/root/app/redux/connection/reducers.js\": (14, 8) to (14, 9)")
Raised at file "map.ml", line 130, characters 10-25
Called from file "src/common/lints/exactCover.ml", line 168, characters 6-42
error An unexpected error occurred: "Command failed.
Exit code: 110
Command: sh
Arguments: -c flow
Directory: /root
Output:
".

14:8 - 14:9 in my code refer to space.

...
  country: ?string,
  city: ?string, // <-- space here between : and ?
};
...

Then I resave the file and this crash is gone. wth

Crash

Most helpful comment

I'm seeing something similar that's causing Flow server to crash

Mar 6 13:37:07.546 [info] Creating a new Flow server
Mar 6 13:37:14.861 [error] Closing connection 'server #1' due to uncaught exception in read loop: End_of_file
Mar 6 13:37:14.861 [error] backtrace:
Mar 6 13:37:14.861 [error] Raised at file "map.ml", line 130, characters 10-25
Mar 6 13:37:14.861 [error] Called from file "src/core/lwt.ml", line 817, characters 20-60
Mar 6 13:37:14.861 [error]
Unable to obtain kernel buffer: Operation not permitted
usage: sudo dmesg
Mar 6 13:37:14.871 [error] Flow server (pid 52913) exited with code Unknown_error (110)
Mar 6 13:37:14.871 [info] Monitor is exiting (Dying along with server)
Mar 6 13:37:14.871 [info] Broadcasting to threads and waiting 1 second for them to exit

Edit:
I added the offending node package 'watchify' into the ignore list in .flowconfig and flow was happy

All 3 comments

I'm seeing something similar that's causing Flow server to crash

Mar 6 13:37:07.546 [info] Creating a new Flow server
Mar 6 13:37:14.861 [error] Closing connection 'server #1' due to uncaught exception in read loop: End_of_file
Mar 6 13:37:14.861 [error] backtrace:
Mar 6 13:37:14.861 [error] Raised at file "map.ml", line 130, characters 10-25
Mar 6 13:37:14.861 [error] Called from file "src/core/lwt.ml", line 817, characters 20-60
Mar 6 13:37:14.861 [error]
Unable to obtain kernel buffer: Operation not permitted
usage: sudo dmesg
Mar 6 13:37:14.871 [error] Flow server (pid 52913) exited with code Unknown_error (110)
Mar 6 13:37:14.871 [info] Monitor is exiting (Dying along with server)
Mar 6 13:37:14.871 [info] Broadcasting to threads and waiting 1 second for them to exit

Edit:
I added the offending node package 'watchify' into the ignore list in .flowconfig and flow was happy

I got a similar error, too:

2018-05-23 8 04 54

My issue only occurred by __flow check-contents__ but no error when using __flow status__.

The line message shown:

export type PluginObject = {
  name?: string, // <-- this line
  // ...

My flow-bin version is 0.72.0, under Node v8

I had the same error, turns out it was a simple typo, hopefully this helps someone else.

Flow version 0.75 on Ubuntu

declare type MyThing = {
  onFieldChange: (field: string, value: any, form?: Form) => void,
  onSubmit: (data: Object): Promise<*> => Promise<*>, // <-- this is what caused the issue. Two ways to infer the return type was causing it to spew. I removed the first and all was good.
}
Was this page helpful?
0 / 5 - 0 ratings

Related issues

sophiebits picture sophiebits  路  66Comments

vjpr picture vjpr  路  55Comments

StoneCypher picture StoneCypher  路  253Comments

Macil picture Macil  路  186Comments

jlongster picture jlongster  路  55Comments