mandatoryprogrammer / mandatoryprogrammer/theinternetbackup-cli
Problem with huge files
Dieses Issue hat noch niemand übernommen.
- Vorherrschende Sprache
- JavaScript
- Sterne
- 10
- Forks
- 1
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Beschreibung
Crash occurs when the target file was not fit into the memory:
TheInternetBackup.com Zone Submission CLI tool, version 1.0.0
✓ Authenticated to TheInternetBackup API successfully.
#
# Fatal error in , line 0
# API fatal error handler returned after process out of memory
#
Illegal instruction
And there is also problem with submitting files large than 4GB:
TheInternetBackup.com Zone Submission CLI tool, version 1.0.0
✓ Authenticated to TheInternetBackup API successfully.
(node:32047) UnhandledPromiseRejectionWarning: RangeError: "size" argument must not be larger than 2147483647
at Function.Buffer.allocUnsafe (buffer.js:253:3)
at tryCreateBuffer (fs.js:528:21)
at Object.fs.readFileSync (fs.js:568:14)
at upload_domain_list (~/src/theinternetbackup-cli/tib-cli.js:118:22)
at ~/src/theinternetbackup-cli/tib-cli.js:66:8
at <anonymous>
at process._tickCallback (internal/process/next_tick.js:189:7)
(node:32047) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 3)
(node:32047) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
Beitragsleitfaden
Für dieses Repository ist kein Beitragsleitfaden indexiert
Erste Schritte
- Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
- Forke das Repository und arbeite in einem Branch.
- Öffne einen Pull Request, der die Issue-Nummer nennt.
Rechercherichtung
Beginne in tib-cli.js bei upload_domain_list um Zeile 118 und folge seinem Aufruf von Zeile 66 aus. Reproduziere den Fehler mit einer Datei, die den verfügbaren Speicher überschreitet, und mit einer Datei, die größer als 4 GB ist; als erledigt gilt die Aufgabe, wenn beide Uploads ohne den Out-of-Memory-Absturz oder den Buffer.allocUnsafe-Größenfehler abgeschlossen werden.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- javascript, node.js
- Bereich
- cli
- Issue-Typ
- Bug
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 38/100