Open RomanSpies opened 4 weeks ago
i got the same error, since some weeks - in v1.9.6 & v1.9.7 "FATAL It is forbidden to run loop on threads other than event-loop thread - EventLoop.cc:269"
v1.9.6 was running before i didn't analyzed it - so i have no more info
after the log i get a segmention fault
error happens on linux - OpenSuse Leap 15.5 its working on Windows 11
related to this issue from 2020: https://github.com/drogonframework/drogon/issues/489
i have no loop implemented, like getIoLoop() or getLoop()
i have a client of an own database implemented -> communication over network
i removed all plugins from configuration -> does not help
i forgot something -> additionally i get a segmention fault after this log entry
but yesterday i found a solution in my case -> maybe it helps anybody too after many try out and downgrade to really old versions i had no success
the solution was: i had ssl certificates configured, but there there was no files after copy the certificate files to the configured folders all is running perfectly like before
i upgrade to newest versions of ares and drogon again
Describe the bug The application locks up fully when "too much screen distance" is between DbClient + ORM Coro Mapper definition and location of usage.
If I define coro mappers, redis and db fast clients at the start of a code block (which executes if the client has successfully authenticated, there's no loops / if flows in that block anymore), the application locks up . not terminatable via CTRL-C and
20241003 20:00:57.504808 UTC 59703 FATAL It is forbidden to run loop on threads other than event-loop thread - EventLoop.cc:269
To Reproduce Steps to reproduce the behavior: File attached. Drogon 1.9.6-7 (occurs with both), trantor 1.5.20-21, spdlog on, clang 18.1.8, ubuntu 24.04 LTS server, postgres 16.4, dragonfly.
Expected behavior For the code to not care where I define my coro mappers and redis client as long as they are accessible.
ex.txt