Skip to content

java.lang.NullPointerException: Cannot invoke "java.lang.Integer.intValue()" because "ctx.charCount" is null #841

@Grufoony

Description

@Grufoony

Describe the bug
java.lang.NullPointerException: Cannot invoke "java.lang.Integer.intValue()" because "ctx.charCount" is null

To Reproduce
Transcribe sheet on a pdf.

Expected behavior
Sheet transcribed correctly.

LOG:

TESSDATA_PREFIX: null
Environment:
- Audiveris:    5.4:c664e2bcc
- OS:           Windows 11 10.0
- Architecture: amd64
- Java VM:      OpenJDK 64-Bit Server VM (build 22.0.2+9-70, mixed mode, sharing)
- OCR Engine:   Tesseract OCR, version 5.3.1
Alias patterns: [(IMSLP[0-9]*)-.*]
Audiveris version 5.4

LogUtil. Configuration found jar:file:/C:/Program%20Files/Audiveris/lib/audiveris.jar!/res/logback.xml
LogUtil. Logging to C:\Users\Gregorio\AppData\Roaming\AudiverisLtd\audiveris\log\20250914T151653.log

Classifier loaded XML norms.
Classifier data loaded from default uri jar:file:/C:/Program%20Files/Audiveris/lib/audiveris.jar!/res/basic-classifier.zip
Versions. Poll frequency: Weekly, next poll on: 21-Sep-2025
Installed OCR languages: eng
1 sheet in C:\Users\Gregorio\Desktop\MyFile.pdf
[MyFile] Loaded image #1 2496x3514 from C:\Users\Gregorio\Desktop\MyFile.pdf
[MyFile] Beam  guessed height: 11 -- 0.50 of 22 interline
[MyFile] Beam measured height: 11 -- 0.31 of [6..22] range at 118% of needed quorum
[MyFile] Scale{ interline(20,22,24) line(2,4,6) beam(11)}
[MyFile] Global slope: -0.01129
[MyFile] Retrieved raw line clusters: 10 of sizes [5] with interline(20,22,24)
[MyFile] Systems: #1[1] #2[2, 3, 4, 5, 6, 7, 8, 9, 10]
[MyFile] Indentation detected for system #1
[MyFile] 9 parts along 2 systems
[MyFile] Created scores: [{Score 1}]
[MyFile] Staff#2 no recognized header clef.
[MyFile] Staff#3 no recognized header clef.
[MyFile] Staff#4 no recognized header clef.
[MyFile] Staff#5 no recognized header clef.
[MyFile] Staff#6 no recognized header clef.
[MyFile] Staff#7 no recognized header clef.
[MyFile] Staff#8 no recognized header clef.
[MyFile] Staff#9 no recognized header clef.
[MyFile] Staff#10 no recognized header clef.
[MyFile] stem(4 max:5)
[MyFile] Scale information: HeadSeeds{NOTEHEAD_BLACK[R:0.4]}
[MyFile] Stems free length median value: 78 pixels, 3.5 interlines
[MyFile] Step CUE_BEAMS is skipped because small heads switch is off
[MyFile]    Abnormal font ratio 3.70 TextWord{ ":;" bounds[2329,672,57,53] conf:0.71 base[2329,719]-[2386,719] codes[3a,3b] FontInfo{Verdana_Bold B-33}}
[MyFile]    Abnormal font ratio 2.08 TextWord{ "z," bounds[1320,3102,37,6] conf:0.37 base[1320,3100]-[1357,3100] codes[7a,2c] FontInfo{Verdana_Bold B-26}}
[MyFile]    Abnormal font ratio 85899345.88 TextWord{ "  " bounds[1742,3380,219,20] conf:0.95 base[1742,3397]-[1961,3397] codes[20,20] FontInfo{Verdana_Bold B-25}}
[MyFile] Metronome. Note characters not found in line: TextLine{ "(A medley including: Superealifragilisticexpialidocious 0 Colonel Hathi‘s March Mickey Mouse March)" bounds[140,254,2113,67] conf:0.80 base[140,314]-[2253,288] Metronome}
[MyFile] Error in performing [SCALE, GRID, HEADERS, STEM_SEEDS, BEAMS, LEDGERS, HEADS, STEMS, REDUCTION, CUE_BEAMS, TEXTS, MEASURES, CHORDS, CURVES, SYMBOLS, LINKS, RHYTHMS, PAGE] java.util.concurrent.ExecutionException: java.lang.RuntimeException: java.lang.NullPointerException: Cannot invoke "java.lang.Integer.intValue()" because "ctx.charCount" is null

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