BlinkTagInc / gtfs-to-html

Build human readable transit timetables as HTML or PDF from GTFS.

Home Page:https://gtfstohtml.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

sqlite error - no such column NaN when running

wkulesza opened this issue · comments

Hi,
i have gtfs-to-html running fine with one set of gtfs just fine, but as soon as i edit config.json and change agency key and url to a new path, i get:

Completed GTFS import for 1 file

Error: Error: SQLITE_ERROR: no such column: NaN
[  Error: SQLITE_ERROR: no such column: NaN
] {
  errno: 1,
  code: 'SQLITE_ERROR'
}

why is this? I tried to change the path to sql to a different folder (from /tmp/gtfs to /tmp/gtfs2) but it also didnt work.

Am i missing something obvious ?

Can you share with me the GTFS you are trying to use?

shared via slack as this feed is in closed beta. I assume there are inconsistencies in gtfs, but would prefer if you could confirm. Thanks!

Thanks for sharing - I pushed an update to GTFS-to-HTML 1.2.1 which solves this issue (related to trips having no direction specified).

Try it out and let me know if you have any other issues.

Thanks.
Don't know if it's my problem or something in the code, but i got javascript heap out of memory while generating timetables.
I got 32gb of ram on that machine, so i doubt i was running out of it ?

agency1: Generating HTML timetables [==============================-------------------------------] 5700/11457 pkspoznan: Generating HTML timetables [==============================-------------------------------] 5701/11457 agency1: Generating HTML timetables [==============================-------------------------------] 5702/11457 agency1: Generating HTML timetables [==============================-------------------------------] 5705/11457
agency1: Generating HTML timetables [==============================-------------------------------] 5706/11457
agency1: Generating HTML timetables [==============================-------------------------------] 5707/11457
agency1: Generating HTML timetables [======================================-----------------------] 7175/11457
<--- Last few GCs --->

[20395:0x4558840]  2038773 ms: Scavenge 2024.3 (2061.5) -> 2009.6 (2061.5) MB, 10.4 / 0.0 ms  (average mu = 0.341, current mu = 0.332) allocation failure
[20395:0x4558840]  2038872 ms: Scavenge 2025.5 (2061.5) -> 2010.6 (2062.0) MB, 10.9 / 0.0 ms  (average mu = 0.341, current mu = 0.332) allocation failure
[20395:0x4558840]  2038981 ms: Scavenge 2026.4 (2062.2) -> 2019.3 (2062.7) MB, 14.0 / 0.0 ms  (average mu = 0.341, current mu = 0.332) allocation failure


<--- JS stacktrace --->

==== JS stack trace =========================================

    0: ExitFrame [pc: 0x13cf099]
    1: StubFrame [pc: 0x137ef4c]
    2: StubFrame [pc: 0x1432c69]
Security context: 0x3cc4a03c08d1 <JSObject>
    3: /* anonymous */ [0x10715e3496e9] [/home/wojciech/gtfs-to-html/lib/utils.js:780] [bytecode=0x1a620fc40701 offset=80](this=0x3298784422a9 <JSGlobal Object>,0x10715e349191 <Object map = 0x3500554a92e9>)
    4: arguments adaptor frame: 3->1
    5: map [0x3cc4a03d8ec9](this=0x01ba0c6274d9 <JSArra...

FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory
 1: 0xa093f0 node::Abort() [node]
 2: 0xa097fc node::OnFatalError(char const*, char const*) [node]
 3: 0xb8431e v8::Utils::ReportOOMFailure(v8::internal::Isolate*, char const*, bool) [node]
 4: 0xb84699 v8::internal::V8::FatalProcessOutOfMemory(v8::internal::Isolate*, char const*, bool) [node]
 5: 0xd31055  [node]
 6: 0xd316e6 v8::internal::Heap::RecomputeLimits(v8::internal::GarbageCollector) [node]
 7: 0xd3df65 v8::internal::Heap::PerformGarbageCollection(v8::internal::GarbageCollector, v8::GCCallbackFlags) [node]
 8: 0xd3ee15 v8::internal::Heap::CollectGarbage(v8::internal::AllocationSpace, v8::internal::GarbageCollectionReason, v8::GCCallbackFlags) [node]
 9: 0xd418cc v8::internal::Heap::AllocateRawWithRetryOrFail(int, v8::internal::AllocationType, v8::internal::AllocationOrigin, v8::internal::AllocationAlignment) [node]
10: 0xd0837b v8::internal::Factory::NewFillerObject(int, bool, v8::internal::AllocationType, v8::internal::AllocationOrigin) [node]
11: 0x1049fbe v8::internal::Runtime_AllocateInYoungGeneration(int, unsigned long*, v8::internal::Isolate*) [node]
12: 0x13cf099  [node]
Przerwane