Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] JVM crash on armv7l #524

Closed
1 task
lordbeniel opened this issue May 3, 2021 · 12 comments
Closed
1 task

[Bug] JVM crash on armv7l #524

lordbeniel opened this issue May 3, 2021 · 12 comments
Labels
stale waiting for feedback Waiting for a feedback from the issue creator

Comments

@lordbeniel
Copy link

lordbeniel commented May 3, 2021

Komga environment

  • OS: Linux 4.14.47-132 How to get and configure the Tachiyomi extension with Komga? #1 SMP PREEMPT Sun Jun 3 22:33:16 UTC 2018 armv7l armv7l armv7l GNU/Linux
    using an odroid XU4
  • Komga version: 0.87.4
  • I am running Komga from the jar
    • Java version:
      openjdk version "1.8.0_282"
      OpenJDK Runtime Environment (build 1.8.0_282-8u282-b08-0ubuntu1~16.04-b08)
      OpenJDK Client VM (build 25.282-b08, mixed mode)

Describe the bug

the server crashes with a segmentation fault

Steps to reproduce

seems to happen when the "scan library" task executes

Log file

2021-04-30 20:15:00.035  INFO 9618 --- [enerContainer-1] o.g.k.domain.service.FileSystemScanner   : Supported extensions: [cbz, zip, cbr, rar, pdf, epub]
2021-04-30 20:15:00.036  INFO 9618 --- [enerContainer-1] o.g.k.domain.service.FileSystemScanner   : Excluded patterns: [#recycle, @eaDir]
2021-04-30 20:15:00.037  INFO 9618 --- [enerContainer-1] o.g.k.domain.service.FileSystemScanner   : Force directory modified time: false
2021-04-30 20:15:00.156  INFO 9618 --- [enerContainer-1] o.g.k.domain.service.FileSystemScanner   : Scanned 8 series and 76 books in 118ms
2021-04-30 20:15:00.203  INFO 9618 --- [enerContainer-1] o.g.k.d.service.LibraryContentLifecycle  : Library updated in 169ms
2021-04-30 20:15:00.208  INFO 9618 --- [enerContainer-1] o.g.komga.application.tasks.TaskHandler  : Task ScanLibrary(libraryId=03BFG447YM6TC) executed in 183ms
#
# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGILL (0x4) at pc=0xb32143a4, pid=9618, tid=0x9adaf470
#
# JRE version: OpenJDK Runtime Environment (8.0_282-b08) (build 1.8.0_282-8u282-b08-0ubuntu1~16.04-b08)
# Java VM: OpenJDK Client VM (25.282-b08 mixed mode linux-aarch32 )
# Problematic frame:
# C  0xb32143a4
#
# Failed to write core dump. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again
#
# An error report file with more information is saved as:
# /home/odroid/hs_err_pid9618.log
Segmentation fault
@gotson
Copy link
Owner

gotson commented May 4, 2021

Try the latest version, there's a fix for armv7l crashes because of the native webp library. See #488

@gotson gotson changed the title [Bug] Short description [Bug] JVM crash on armv7l May 4, 2021
@gotson gotson added the waiting for feedback Waiting for a feedback from the issue creator label May 4, 2021
@lordbeniel
Copy link
Author

same issue when using ./komga-0.90.3.jar

2021-05-04 13:30:00.036  INFO 18955 --- [enerContainer-1] o.g.k.domain.service.FileSystemScanner   : Supported extensions: [cbz, zip, cbr, rar, pdf, epub]
2021-05-04 13:30:00.037  INFO 18955 --- [enerContainer-1] o.g.k.domain.service.FileSystemScanner   : Excluded patterns: [#recycle, @eaDir]
2021-05-04 13:30:00.038  INFO 18955 --- [enerContainer-1] o.g.k.domain.service.FileSystemScanner   : Force directory modified time: false
2021-05-04 13:30:00.146  INFO 18955 --- [enerContainer-1] o.g.k.domain.service.FileSystemScanner   : Scanned 10 series and 82 books in 107ms
2021-05-04 13:30:00.195  INFO 18955 --- [enerContainer-1] o.g.k.d.service.LibraryContentLifecycle  : Library updated in 160ms
2021-05-04 13:30:00.206  INFO 18955 --- [enerContainer-1] o.g.komga.application.tasks.TaskHandler  : Task ScanLibrary(libraryId=03BFG447YM6TC) executed in 179ms
#
# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGILL (0x4) at pc=0xb321a3a4, pid=18955, tid=0x9ce5f470
#
# JRE version: OpenJDK Runtime Environment (8.0_292-b10) (build 1.8.0_292-8u292-b10-0ubuntu1~16.04.1-b10)
# Java VM: OpenJDK Client VM (25.292-b10 mixed mode linux-aarch32 )
# Problematic frame:
# C  0xb321a3a4
#
# Failed to write core dump. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again
#
# An error report file with more information is saved as:
# /home/odroid/hs_err_pid18955.log
Segmentation fault

@gotson
Copy link
Owner

gotson commented May 4, 2021

Please provide a complete log file.

@lordbeniel
Copy link
Author

lordbeniel commented May 4, 2021

komga.log

please find attached, I've replaced the server name, file path and directory name with "<server_name>", "<path_to_comics>" & "<komga_dir>" respectively

@gotson
Copy link
Owner

gotson commented May 4, 2021

komga.log

please find attached, I've replaced the server name, file path and directory name with "<server_name>", "<path_to_comics>" & "<komga_dir>" respectively

Those logs don't contain the error you reported before.

@lordbeniel
Copy link
Author

this is the java error log it references
hs_err_pid18955.log

The komga server is currently being run from a screen session, the initial error report was copied from the screen session but screen does not show more historic logs.

what appears to happen is that the "scan library" task executes, this causes a java segmentation fault issue and the server then does not record more info to the ./.komga/komga.log file.

@gotson
Copy link
Owner

gotson commented May 5, 2021

can you try to set KOMGA_NATIVE_WEBP=false ?

@lordbeniel
Copy link
Author

same problem when

java -jar ./komga-0.91.0.jar --KOMGA_NATIVE_WEBP=false

is run

2021-05-09 23:15:00.147  INFO 26499 --- [enerContainer-1] o.g.k.domain.service.FileSystemScanner   : Scanned 10 series and 82 books in 97.9ms
2021-05-09 23:15:00.199  INFO 26499 --- [enerContainer-1] o.g.k.d.service.LibraryContentLifecycle  : Library updated in 155ms
2021-05-09 23:15:00.211  INFO 26499 --- [enerContainer-1] o.g.komga.application.tasks.TaskHandler  : Task ScanLibrary(libraryId=03BFG447YM6TC) executed in 175ms
#
# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGILL (0x4) at pc=0xb31933a4, pid=26499, tid=0x9ccaf470
#
# JRE version: OpenJDK Runtime Environment (8.0_292-b10) (build 1.8.0_292-8u292-b10-0ubuntu1~16.04.1-b10)
# Java VM: OpenJDK Client VM (25.292-b10 mixed mode linux-aarch32 )
# Problematic frame:
# C  0xb31933a4
#
# Failed to write core dump. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again
#
# An error report file with more information is saved as:
# /home/odroid/hs_err_pid26499.log
Segmentation fault

@gotson
Copy link
Owner

gotson commented May 10, 2021

I am sorry, I thought you were on docker. For the jar please use --komga.native-webp=false instead.

@lordbeniel
Copy link
Author

lordbeniel commented May 10, 2021

same error when running

java -jar ./komga-0.91.0.jar --komga.native-webp=false

2021-05-10 16:00:00.031  INFO 1862 --- [enerContainer-1] o.g.k.domain.service.FileSystemScanner   : Supported extensions: [cbz, zip, cbr, rar, pdf, epub]
2021-05-10 16:00:00.032  INFO 1862 --- [enerContainer-1] o.g.k.domain.service.FileSystemScanner   : Excluded patterns: [#recycle, @eaDir]
2021-05-10 16:00:00.032  INFO 1862 --- [enerContainer-1] o.g.k.domain.service.FileSystemScanner   : Force directory modified time: false
2021-05-10 16:00:00.146  INFO 1862 --- [enerContainer-1] o.g.k.domain.service.FileSystemScanner   : Scanned 10 series and 82 books in 113ms
2021-05-10 16:00:00.193  INFO 1862 --- [enerContainer-1] o.g.k.d.service.LibraryContentLifecycle  : Library updated in 163ms
2021-05-10 16:00:00.198  INFO 1862 --- [enerContainer-1] o.g.komga.application.tasks.TaskHandler  : Task ScanLibrary(libraryId=03BFG447YM6TC) executed in 176ms
#
# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGILL (0x4) at pc=0xb31b13a4, pid=1862, tid=0x9cbbf470
#
# JRE version: OpenJDK Runtime Environment (8.0_292-b10) (build 1.8.0_292-8u292-b10-0ubuntu1~16.04.1-b10)
# Java VM: OpenJDK Client VM (25.292-b10 mixed mode linux-aarch32 )
# Problematic frame:
# C  0xb31b13a4
#
# Failed to write core dump. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again
#
# An error report file with more information is saved as:
# /home/odroid/hs_err_pid1862.log
Segmentation fault

it doesnt crash right away only sometimes when the scheduled library scan task is run. sometimes it can run through that and be fine

@gotson
Copy link
Owner

gotson commented May 11, 2021

Can you get me the seg fault log /home/odroid/hs_err_pid1862.log?

@github-actions
Copy link
Contributor

github-actions bot commented Aug 9, 2021

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@github-actions github-actions bot added the stale label Aug 9, 2021
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 26, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
stale waiting for feedback Waiting for a feedback from the issue creator
Projects
None yet
Development

No branches or pull requests

2 participants