Skip to content

TypeError: Cannot read properties of undefined (reading 'offset') #374

Open
@altundag

Description

@altundag

Hello,

I get the following error when I try to load ce24e6fd-d4aa-4922-a91b-06c327a5c99b.tiff:

Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'offset')
    at blockedsource.js:271:29
    at Array.map (<anonymous>)
    at BlockedSource.readSliceData (blockedsource.js:259:19)
    at BlockedSource._callee$ (blockedsource.js:160:17)
    at tryCatch (blockedsource.js:2:1)
    at Generator.<anonymous> (blockedsource.js:2:1)
    at Generator.next (blockedsource.js:2:1)
    at asyncGeneratorStep (blockedsource.js:2:1)
    at _next (blockedsource.js:2:1)

The version that I am using is v2.0.7. Here is a code snippet to reproduce the issue:

let tiff = await GeoTIFF.fromUrl("./data/ce24e6fd-d4aa-4922-a91b-06c327a5c99b.tiff");

// throws """TypeError: Cannot read properties of undefined (reading 'offset')"""
let ifd = await tiff.requestIFD(0);

I am not 100% sure, but the current < top condition here might be the cause (should it be current <= top?). Could you please help me fix the issue?

The following issues might be related to this one:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions