Skip to content

Can't synchronize library due to riching limit of opened file descriptors #60

@IevgenSobko

Description

@IevgenSobko

When I'm trying to add my library folder after some time application crashes with

SAVING ARTWORK FOR:  "Worlds Apart"
[lastfm service]:  "http://ws.audioscrobbler.com/2.0/?method=album.getinfo&api_key=ba6f0bd3c887da9101c10a50cf2af133&artist=Silent Force&album=Walk The Earth"
SAVING ARTWORK FOR:  "The Empire Of Future"
ERROR OPENING DB "out of memory Error opening database" "{1977a9d8-ecd7-47d7-bc01-ba33ab2867a7}"
ERROR OPENING DB "out of memory Error opening database" "{a0d92182-3a53-4a0a-ab3e-72d5ef126364}"
ERROR OPENING DB "out of memory Error opening database" "{90ebb3c4-7694-4b45-baa2-74f7731bb2c1}"
ERROR OPENING DB "out of memory Error opening database" "{67335ec6-cd43-4f7d-9a86-a7a44da94cf0}"
ERROR OPENING DB "out of memory Error opening database" "{314dcb22-ea7c-48c5-afd8-135df1a0aa87}"
QNetworkReply::NetworkError(SslHandshakeFailedError)
ERROR OPENING DB "out of memory Error opening database" "{85d9dda0-4882-4470-a7a7-b6158640d68d}"
ERROR OPENING DB "out of memory Error opening database" "{aad94610-ae1f-44a6-a5e9-62a828108899}"
ERROR OPENING DB "out of memory Error opening database" "{4eb511d6-1526-47f4-9928-aa8db4b6194f}"
ERROR OPENING DB "out of memory Error opening database" "{99ed76e3-65b0-4893-aaed-05ff66bbffbe}"
ERROR OPENING DB "out of memory Error opening database" "{a3f21a72-7c0b-46c0-8fa6-671232d87c7a}"
ERROR OPENING DB "out of memory Error opening database" "{eecf043c-24f3-4c0c-9ccf-ff8ebfbfb948}"
ERROR OPENING DB "out of memory Error opening database" "{18e662e3-3e03-413e-b53f-ac39300c2810}"
ERROR OPENING DB "out of memory Error opening database" "{fd6cbdae-5fdd-45b9-aabc-cb1988990bec}"
ERROR OPENING DB "out of memory Error opening database" "{cb4b8115-0d16-48da-8757-0bc365a90a2b}"
ERROR OPENING DB "out of memory Error opening database" "{0642947a-33ae-4fb2-b3c3-5bf24e85322c}"
ERROR OPENING DB "out of memory Error opening database" "{a5d38ed6-1e5c-404f-a49f-ac39b9a147f4}"
ERROR OPENING DB "out of memory Error opening database" "{51a8e9af-1411-4545-87a0-887b7c31e6f7}"
ERROR OPENING DB "out of memory Error opening database" "{c29efc71-9f12-49d5-930a-a0a5b8240943}"
ERROR OPENING DB "out of memory Error opening database" "{c58e3752-4e6c-42c9-a355-4e8990023cc3}"
ERROR OPENING DB "out of memory Error opening database" "{89ed47c2-489d-455b-ab3f-e7a1ba8ceb3b}"
ERROR OPENING DB "out of memory Error opening database" "{414b4fbc-1ad9-4b3f-b38c-639cf99ff9f1}"
ERROR OPENING DB "out of memory Error opening database" "{9a8e425c-3b8c-48e6-ae77-b813c2295ec5}"
ERROR OPENING DB "out of memory Error opening database" "{7404bc4f-8405-4591-a05f-f4183ecf84b9}"
ERROR OPENING DB "out of memory Error opening database" "{e7b306b5-1194-4f7e-bdc9-84dd8cbd8f98}"
ERROR OPENING DB "out of memory Error opening database" "{cfe8752f-e809-44cc-813f-f7d920165e1e}"
ERROR OPENING DB "out of memory Error opening database" "{be0afa3c-d5f5-44f0-bf15-5cfcc2c4af92}"
ERROR OPENING DB "out of memory Error opening database" "{cee24d9f-b014-4f16-8b58-4cd95893eeaf}"
ERROR OPENING DB "out of memory Error opening database" "{e797b0f4-5567-405f-9357-9a6b44aa6daa}"
ERROR OPENING DB "out of memory Error opening database" "{66e77385-31de-4076-be8e-29a637816ee0}"
ERROR OPENING DB "out of memory Error opening database" "{e28c0f08-b349-4ef5-9c6e-612289fc6a63}"
ERROR OPENING DB "out of memory Error opening database" "{eb6a97ec-bfd3-4ed5-b05b-2fe19046c9bf}"
ERROR OPENING DB "out of memory Error opening database" "{a8b03956-8622-4bdf-a737-2b897a3e3163}"
ERROR OPENING DB "out of memory Error opening database" "{23e8fb0a-c903-4653-9d7a-bfd24c87d5d8}"

Investigation showed that when you starting to synchronize some information about collection from internet you are opening a lot of new file descriptors to the same collection.db file and finally it reaches maximum limit of number of opened files(1024 - I think it is default on all linux systems) and finally crashes with the above error.

You can use ls -l /proc/$(pgrep babe)/fd | wc -l to see number of opened descriptors of babe process once you start it

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions