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

[ERROR] [SM] Exception reported: Invalid convar handle 0 (error 4) on multiple plugins #12

Open
qNope7 opened this issue Jan 3, 2020 · 4 comments
Assignees
Labels
error There are errors need more infomation Further information is requested

Comments

@qNope7
Copy link

qNope7 commented Jan 3, 2020

Hello, I still receive these errors.

L 01/03/2020 - 02:32:27: [SM] Blaming: mystore_item_perspective.smx
L 01/03/2020 - 02:32:27: [SM] Call stack trace:
L 01/03/2020 - 02:32:27: [SM]   [0] ConVar.BoolValue.get
L 01/03/2020 - 02:32:27: [SM]   [1] Line 102, D:\sourcemod 1.10\scripting\mystore_item_perspective.sp::Event_PlayerSpawn
L 01/03/2020 - 02:32:27: [SM] Exception reported: Invalid convar handle 0 (error 4)
L 01/03/2020 - 02:32:27: [SM] Blaming: mystore_item_attribute.smx
L 01/03/2020 - 02:32:27: [SM] Call stack trace:
L 01/03/2020 - 02:32:27: [SM]   [0] ConVar.BoolValue.get
L 01/03/2020 - 02:32:27: [SM]   [1] Line 164, D:\sourcemod 1.10\scripting\mystore_item_attribute.sp::Event_PlayerSpawn
L 01/03/2020 - 02:32:27: [SM] Exception reported: Invalid convar handle 0 (error 4)
L 01/03/2020 - 02:32:27: [SM] Blaming: mystore_item_spray.smx
L 01/03/2020 - 02:32:27: [SM] Call stack trace:
L 01/03/2020 - 02:32:27: [SM]   [0] ConVar.BoolValue.get
L 01/03/2020 - 02:32:27: [SM]   [1] Line 160, D:\sourcemod 1.10\scripting\mystore_item_spray.sp::OnPlayerRunCmd
L 01/03/2020 - 02:32:27: [SM] Exception reported: Invalid convar handle 0 (error 4)
L 01/03/2020 - 02:32:27: [SM] Blaming: mystore_item_pet.smx
L 01/03/2020 - 02:32:27: [SM] Call stack trace:
L 01/03/2020 - 02:32:27: [SM]   [0] ConVar.BoolValue.get
L 01/03/2020 - 02:32:27: [SM]   [1] Line 232, D:\sourcemod 1.10\scripting\mystore_item_pet.sp::OnPlayerRunCmd
L 01/03/2020 - 02:32:27: [SM] Exception reported: Invalid convar handle 0 (error 4)
L 01/03/2020 - 02:32:27: [SM] Blaming: mystore_item_jumps.smx
L 01/03/2020 - 02:32:27: [SM] Call stack trace:
L 01/03/2020 - 02:32:27: [SM]   [0] ConVar.BoolValue.get
L 01/03/2020 - 02:32:27: [SM]   [1] Line 175, D:\sourcemod 1.10\scripting\mystore_item_jumps.sp::OnPlayerRunCmd
L 01/03/2020 - 02:32:40: Error log file session closed.
L 01/03/2020 - 02:56:13: [SM] Blaming: mystore_core.smx
L 01/03/2020 - 02:56:13: [SM] Call stack trace:
L 01/03/2020 - 02:56:13: [SM]   [0] Call_StartFunction
L 01/03/2020 - 02:56:13: [SM]   [1] Line 757, D:\sourcemod 1.10\scripting\mystore_core.sp::OnMapStart
sm version
 SourceMod Version Information:
    SourceMod Version: 1.10.0.6454
    SourcePawn Engine: 1.10.0.6454, jit-x86 (build 1.10.0.6454)
    SourcePawn API: v1 = 5, v2 = 12
    Compiled on: Oct 30 2019 17:21:55
    Built from: https://github.com/alliedmodders/sourcemod/commit/8c380e4
    Build ID: 6454:8c380e4
    http://www.sourcemod.net/
meta version
Metamod:Source version 1.10.7-dev
Built from: https://github.com/alliedmodders/metamod-source/commit/6c8495f
Build ID: 971:6c8495f
Loaded As: Valve Server Plugin
Compiled on: Sep  2 2019
Plugin interface version: 15:14
SourceHook version: 5:5
http://www.metamodsource.net/
@qNope7 qNope7 added the error There are errors label Jan 3, 2020
@x86906
Copy link

x86906 commented Jan 23, 2020

Did you fix?

@shanapu
Copy link
Owner

shanapu commented Jan 29, 2020

It needed some time to reproduce this error without any tips how to reproduce.

I could only reproduce your error this way:

  1. Move mystore_core.smx to plugins/disabled
    • leave all other modules in plugins/
  2. Start the server, so the modules will be loaded but stop working cause no core is enabled.
  3. Load mystore_core though console sm plugins load disabled/mystore_core
  4. Reload modules though console sm plugins reload disabled/mystore_hud or changelevel
  5. We get this error. puh what a hard way...

I could explain this to me in your cases with these two roots:

  1. You haven't configured you database.cfg (right), so the core and modules where loaded but stopped and you didn't fully reload the server only the plugins.
    • or
  2. You use a so-called "map config plugin" where the load of the plugins is handled through a plugin instead of sourcemod, so the needed callbacks won't fire.

both user errors.
I cannot imagine any other way how MyStore could throw such errors on a clean install without any other 3th party plugins.
If you don't use one of these ways or simliar step to get this error, I would be very happy when you could explain me how to reproduce.

But to the (at least for me) important part.
Use the issue template provided when you open an issue on github. I was nearly to ignore and delete your issue.
I mean especially this parts:

  - [ ] **I can always reproduce the issue with the provided description below.**

***#### Way to Reproduce
Steps to reproduce the behavior:
1. Type command '...'
2. Left click on '...'
3. Error in console or log**

#### Environment
  *** Current MyStore version:** 

I put so much effort into this project. You could at least try a little.

edit: BTW [SM] Blaming: XXXX.smx is the second line of the error message. You cutted the only important line [SM] Exception reported: Invalid convar handle 0 (error **4)** luckily only in first instance. Just for future reports

@shanapu shanapu added the need more infomation Further information is requested label Jan 29, 2020
@shanapu shanapu changed the title [ERROR] "Blaming" errors for multiple plugins. [ERROR] [SM] Exception reported: Invalid convar handle 0 (error 4) on multiple plugins Jan 29, 2020
@qNope7
Copy link
Author

qNope7 commented Feb 2, 2020

Hello, thanks for answer.

  1. Database is configured.
  2. I don't use any "map config plugin"

But i still get some errors and "earnings" plugin will stop working after the map is changed or something like that
https://pastebin.com/AQjYwsVP
https://pastebin.com/E625Z74j

sm version
SourceMod 1.10.0.6460, by AlliedModders LLC To see running plugins, type "sm plugins" To see credits, type "sm credits" Visit http://www.sourcemod.net/

And latest store version.

@ghost
Copy link

ghost commented Oct 30, 2020

when a player join the database connect and work but when the server its empty after a reboot the database are not connected by default thats why (ps: i have the same problem)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
error There are errors need more infomation Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants