Comments (3)
I'm unable to duplicate this issue on Ubuntu 24.04 LTS. I cloned the repo then
dotgov-data » cloc . 23 text files. 21 unique files. 3 files ignored. github.com/AlDanial/cloc v 2.01 T=0.76 s (27.6 files/s, 444008.6 lines/s) ------------------------------------------------------------------------------- Language files blank comment code ------------------------------------------------------------------------------- CSV 10 0 0 305072 Text 1 0 0 32222 Markdown 5 39 0 56 YAML 3 2 1 56 Bourne Shell 1 0 0 6 JSON 1 0 0 1 ------------------------------------------------------------------------------- SUM: 21 41 1 337413 ------------------------------------------------------------------------------- dotgov-data » wc dotgov-websites/pulse-subdomains-snapshot-06-08-2020-https.json 0 75980 13071784 dotgov-websites/pulse-subdomains-snapshot-06-08-2020-https.json dotgov-data » cloc dotgov-websites/pulse-subdomains-snapshot-06-08-2020-https.json 1 text file. 1 unique file. 0 files ignored. github.com/AlDanial/cloc v 2.01 T=0.55 s (1.8 files/s, 1.8 lines/s) ------------------------------------------------------------------------------- Language files blank comment code ------------------------------------------------------------------------------- JSON 1 0 0 1 -------------------------------------------------------------------------------
Possibly a memory issue? My machine has 64 GB.
from cloc.
@AlDanial I'm sorry for wasting your time this weekend, it is exactly as you describe, this was an ephemeral instance of Ubuntu from our internal pentest VM cluster that only had 1GB RAM.
Confirmed via:
root@ip-10-0-2-41:~# dmesg -T | egrep -i 'killed process'
[Sat May 25 08:52:20 2024] Out of memory: Killed process 34447 (perl) total-vm:719368kB, anon-rss:622152kB, file-rss:2304kB, shmem-rss:0kB, UID:1000 pgtables:1348kB oom_score_adj:0
[Sat May 25 08:54:40 2024] Out of memory: Killed process 34450 (perl) total-vm:718184kB, anon-rss:620808kB, file-rss:2176kB, shmem-rss:0kB, UID:1000 pgtables:1332kB oom_score_adj:0
If there is any opportunity to improve the UX with better messaging around OOM Killed processes that'd be great, otherwise closing this out as a non-issue.
from cloc.
Perl's built-in exception handling is kind of lame so even if I knew where the memory fault happened, it isn't clear I'd be able to do much about it. If you rerun on the VM with -v 3
you might be able to see which subroutine the code was running when it was killed.
from cloc.
Related Issues (20)
- exe version of cloc not support file name with chinese character HOT 4
- Language support for Luau .luau HOT 1
- List winget in README package maganers HOT 1
- Cloc has problems with */* in Go HOT 3
- Cloc doesn't count correctly Visual Basic code HOT 1
- Add Modelica language HOT 3
- support Processing Language
- Documentation for --force-lang is slightly wrong HOT 3
- --fullpath does not work with --vcs=git HOT 4
- Possible inconsistent counting of "same" lines HOT 5
- Add option to exclude shebang from the count HOT 5
- Add support for .gjs/.gts
- dotnet tool HOT 1
- --csv-delimiter doesn't work HOT 4
- --not-match-d= includes file at root of pattern HOT 7
- Attempt to create a file in the present working directory. HOT 2
- Support for the Yang language
- Differentiation of client-side vs. server-side code for langs where both can be defined? HOT 1
- Using --vcs=git may encounter "detected dubious ownership" error HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cloc.