johnnydouble / filemango Goto Github PK
View Code? Open in Web Editor NEWLicense: Mozilla Public License 2.0
License: Mozilla Public License 2.0
If the file queue is empty, calling managePool() will produce the following error.
panic: runtime error: index out of range [0] with length 0
goroutine 1 [running]:
FileMango/src/scheduler.managePool()
/home/melkor/go/src/FileMango/src/scheduler/worker_pool.go:52 +0x2a5
Send multiple files to the usr/bin/file
command at once to reduce startup time.
Queuing directories may cause problems later in the processing pipeline or at the least will create more work for providers later on.
System calls for exiting gracefully should be handled so that the program can be stopped as safely as possible.
works fine on first run, after a second run without deleting the 000000000.data file gives this error:
loading config... done
loading database... done
watching...
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x10 pc=0x51c102]
goroutine 1 [running]:
github.com/prologic/bitcask.(*Bitcask).Fold(0x0, 0x617938, 0xc000000180, 0x5a85f5)
/home/melkor/go/pkg/mod/github.com/prologic/[email protected]/bitcask.go:304 +0x62
FileMango/src/db.FoldQueue(...)
/home/melkor/go/src/FileMango/src/db/database.go:19
FileMango/src/scheduler.addInitialJobs()
/home/melkor/go/src/FileMango/src/scheduler/worker_pool.go:147 +0x39
FileMango/src/scheduler.RunAnalysis()
/home/melkor/go/src/FileMango/src/scheduler/worker_pool.go:28 +0x3a
main.run()
/home/melkor/go/src/FileMango/main.go:37 +0x356
main.main()
/home/melkor/go/src/FileMango/main.go:17 +0x25
Process finished with exit code 2
if the 000000000.data file is deleted works fine again.
if args are given run the requested thing,
else if no other instance is already running run the program normally
else end this instance
Write a worker pattern using goroutines to dynamically pool providers.
Something is breaking the file queue by not properly writing new lines to it in some cases.
This leads to invalid file paths in the file queue.
It eventually leads to to a null pointer defeference in worker_pool.go and the following error:
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x595d6a]
goroutine 1 [running]:
os.(*File).Name(...)
/usr/lib/go/src/os/file.go:54
FileMango/src/scheduler.(*fileQueue).addNewJobs(0x741ec0, 0xc00011a180)
/home/melkor/go/src/FileMango/src/scheduler/worker_pool.go:124
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.