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.

if you create a symlink pointing to .. it silently freezes the packager up to out of memory

See original GitHub issue
ln -s .. foo

react-native bundle --entry-file index.ios.js --bundle-output out
# aka a Release build

will infinitely freeze the packager without any error or any log. After like 40minutes, it ends with a out of memory. not very helpful DX 😦

[10:27:33 PM] <START> Building Dependency Graph
[10:27:33 PM] <START> Crawling File System
[10:27:34 PM] <START> find dependencies

^ Stopped here

We had hard time figuring out the problem (and obviously we accidentally created that symlink) so YEAH it’s not very critical. but it’s a terrible experience when you fall into it and packager don’t want to build JUST in Release mode… so it would be great to fix it in some way, here is thoughts:

  • packager to ignore symlinks (if it doesn’t support it, drop it)
  • prevent file exploration loop (going back again back in one of the explored folder should be forbidden)
  • log a more useful warning when you traverse symlink… (at least in DEBUG mode? even enabling the export DEBUG= thing didn’t even helped!)

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:11 (11 by maintainers)

github_iconTop GitHub Comments

2reactions
Kureevcommented, Aug 3, 2016

I’ll try to take a deeper look into it when I have a time

0reactions
facebook-github-botcommented, Nov 14, 2016

@charpeni tells me to close this issue. If you think it should still be opened let us know why.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Link Shell Extension (LSE)
When creating Clones, LSE forks its helper LSEUacHelper.exe to forwards this operation to it, if the folder tree contains symbolic links, because the...
Read more >
Command-line API | Node.js v19.3.0 Documentation
js core test suite checks that a few fairly complex applications can be snapshotted. Support for more modules are being added. If any...
Read more >
3 Common Tasks — The Yocto Project ® 4.1.999 documentation
3 Common Tasks . This chapter describes fundamental procedures such as creating layers, adding new software packages, extending or customizing images, ...
Read more >
Git Bash shell fails to create symbolic links - Stack Overflow
It is possible, albeit extremely awkward, to create a symbolic link in MSysGit. First, we need to make sure we are on Windows....
Read more >
Writing R Extensions - The Comprehensive R Archive Network
If a package has a specified encoding, you should run R CMD build etc in a ... As pointed out in several places...
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