pBlueG / SA-MP-MySQL

MySQL plugin for San Andreas Multiplayer
BSD 3-Clause "New" or "Revised" License
196 stars 80 forks source link

Error in my_thread_global_end(): 3 threads didn't exit #197

Closed Reiikz closed 6 years ago

Reiikz commented 6 years ago

I satisfied the dependencies of mysql to archive the plugin to load, now i'm getting this Error in my_thread_global_end(): 3 threads didn't exit

Server Plugins

Loading plugin: mysql.so

plugin.mysql: R41-4 successfully loaded. Loaded. Loaded 1 plugins.

Started server on port: 7777, with maxplayers: 50 lanmode is OFF.

Filterscripts

Loaded 0 filterscripts.

MySQL connection failed. Server is shutting down. Number of vehicle models: 0 --- Server Shutting Down. plugin.mysql: Unloading plugin... plugin.mysql: Plugin unloaded. My OS: Debian 9.4 (Stretch) amd64 with multiarch (i386) to let the plugin run I installed the libmysqlclient18 library from here https://packages.debian.org/wheezy/i386/libmysqlclient18/download and satisfied it's dependencies with i386 packages And im using mysql-R41-4-Debian.tar.gz I tried also mysql-R41-4-Debian-static.tar.gz to see if it does any difference and i get the exact same error.

Reiikz commented 6 years ago

i'm stupid i spent weeks with this and the error has nothing to do with the crash of my GM, of course the error was because i forgot to call the function mysql_close(mysql_conn); on the callbac OnGameModeExit()