Skip to content

Failed to load font file: /home/andrei/PolarLearn/src/app/fonts/Geist-Bold.ttf Error: Unknown font format #154

@andr3i1010

Description

@andr3i1010

Font Name (Geist Sans/Geist Mono):

  • Geist Sans
  • Geist Mono

Description of the Issue:
Please provide a clear and concise description of the issue.

When I try to build my NextJS app, I get the following error:

Failed to load font file: /home/andrei/PolarLearn/src/app/fonts/Geist-Bold.ttf
Error: Unknown font format

A little later, i get a OOM error?

❯ pnpm build

> polarlearn@0.1.0 build /home/andrei/PolarLearn
> next build

   ▲ Next.js 15.1.2
   - Environments: .env

   Creating an optimized production build ...
Failed to load font file: /home/andrei/PolarLearn/src/app/fonts/Geist-Bold.ttf
Error: Unknown font format

<--- Last few GCs --->

[22694:0x5e17506bc000]    60112 ms: Scavenge (interleaved) 4090.3 (4096.6) -> 4088.8 (4100.9) MB, pooled: 0 MB, 3.63 / 0.00 ms  (average mu = 0.257, current mu = 0.227) allocation failure; 
[22694:0x5e17506bc000]    61009 ms: Mark-Compact (reduce) 4089.3 (4100.9) -> 4088.9 (4094.1) MB, pooled: 0 MB, 660.05 / 0.00 ms  (+ 12.8 ms in 0 steps since start of marking, biggest step 0.0 ms, walltime since start of marking 679 ms) (average mu = 0.268

<--- JS stacktrace --->

FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory
----- Native stack trace -----

 1: 0x5e17131edd95 node::OOMErrorHandler(char const*, v8::OOMDetails const&) [node]
 2: 0x5e17136c1ba4 v8::Utils::ReportOOMFailure(v8::internal::Isolate*, char const*, v8::OOMDetails const&) [node]
 3: 0x5e17136c1f79 v8::internal::V8::FatalProcessOutOfMemory(v8::internal::Isolate*, char const*, v8::OOMDetails const&) [node]
 4: 0x5e171390d1bc  [node]
 5: 0x5e171390d1e4  [node]
 6: 0x5e171392453e  [node]
 7: 0x5e1713927744  [node]
 8: 0x5e171437a667  [node]
 ELIFECYCLE  Command failed.
fish: Job 1, 'pnpm build' terminated by signal SIGABRT (Abort)
 andrei@andrei-latitude3440 ~/PolarLearn  1m 21.743s    dev  ?4 ~13 -1  1   23.4.0 
❯ 

Steps to Reproduce:

  1. clone my github repo
  2. install dependencies
  3. pnpm build

Expected Behavior:
A clear and concise description of what you expected to happen.

My app builds normally

Screenshots:
If applicable, add screenshots to help explain your problem.

Environment (please complete the following information):

  • OS: EndeavourOS
  • Software: VSCode
  • Version of the Font: v1.4.01

Additional Context:
Add any other context about the problem here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions