Skip to content

NullReferenceExceptionObject on memory limit #174

@ShalokShalom

Description

@ShalokShalom

The complete code:

let x = 42

x + 3

let greet name = 
    printfn "Hello, %s" name

open System
open System.IO

let path = "/home/nbuser/trainingsample.csv"
let data0 = File.ReadAllLines path

let data1 = 
    data0 
    |> Array.map (fun line -> line.Split(','))

data0.[1..50] |> Array.map (fun (line:string) -> line.Split(','))

See here the working case:

screenshot_20180412_203637

Change data0.[1..10] into a higher value like [1..50] and you get the following error:

screenshot_20180412_203924

Full Error here:
https://gist.github.com/ShalokShalom/84c4d8a488925189fd9a99ffc09ca7fd

And here is the used trainingsample.csv.
Right click on View Raw OR Download and then on Save Link/Target as.. in order to download it.

https://github.com/c4fsharp/Dojo-Digits-Recognizer/blob/master/Dojo/trainingsample.csv

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions