Quick answer: The signal emitted a different number of arguments than the connected function accepts, so Godot skipped the call and logged an error instead. Give the function the same parameters as the signal (body_entered sends one argument, pressed sends none), and account for bind(), which appends arguments, and unbind(), which drops them. A default parameter value lets one function serve signals with different counts.
Nothing crashes when this happens. The pickup stays on the floor, the button does nothing, the door never opens, and the only trace is a line in the Debugger panel that is easy to scroll past. Godot checked the argument count at the moment the signal fired, found that the connected function could not take what was being sent, and moved on to the next connection. This guide covers how to read the two numbers in the message, where to look up what a signal really sends, and the fixes for each way the counts drift apart: hand-written handlers, binds, lambdas, shared handlers and custom signals.
- The exact error
- What causes it
- Find out what the signal really sends
- Fix 1: match the handler to the signal
- Fix 2: count binds and unbinds
- Fix 3: give lambdas the signal’s parameters
- Fix 4: one handler for two signals
- Fix 5: keep custom signals and their emit calls in step
- How to confirm the fix
- Catching skipped handlers in shipped builds
- Related guides
- Frequently asked questions
The exact error
In the editor it appears in the Debugger > Errors tab while the game runs:
E 0:00:02:0387 emit_signalp: Error calling from signal 'body_entered' to callable: 'Area2D(player.gd)::_on_body_entered': Method expected 0 arguments, but called with 1.
<C++ Source> core/object/object.cpp:1140 @ emit_signalp()
In a terminal, or in the log file of an exported game, the same error reads:
ERROR: Error calling from signal 'body_entered' to callable: 'Area2D(player.gd)::_on_body_entered': Method expected 0 arguments, but called with 1.
at: emit_signalp (core/object/object.cpp:1140)
The reverse case has the larger number first:
Error calling from signal 'health_changed' to callable: 'Control(hud.gd)::_on_health_changed': Method expected 2 arguments, but called with 1.
The line number after object.cpp changes from release to release; the wording is the same across Godot 4.x. A connection made with the deferred flag reports the same mismatch under the prefix Error calling deferred method:, and Godot 3 worded it Error calling method from signal.
Read it as three facts. The signal named first was emitted. The callable named second, shown as node class, script file and function, was connected to it. The function accepts the first number of arguments and was handed the second. “Expected” is the function’s limit: its full parameter count when too many arrived, or the count of parameters without default values when too few did. “Called with” is what reached the function after any bound arguments were added and unbound ones removed. A lambda shows up as <anonymous lambda> in place of a function name.
The check happens at runtime, when the signal fires, in the editor and in exported builds alike. Godot does not call the handler, does not stop the game, and carries on with the signal’s other connections.
What causes it
- A handler typed by hand without the signal’s parameters.
func _on_body_entered():connected tobody_entered, which always passes the body. The connect dialog writes the right signature for you; code-only connections are where this slips in. - A bind that was added or removed on one side only.
pressed.connect(_on_slot_pressed.bind(i))sends one argument to a function that still takes none, or the bind was deleted while the function kept its parameter. The editor’s connect dialog can add binds too, and those live in the scene file where you do not see them. - A custom signal whose emit call changed. Somebody added a second value to
health_changed.emit(...), or removed one, and the listeners in other scripts were not updated. - One function connected to several signals.
_refresh()hooked to bothTimer.timeout(no arguments) andLineEdit.text_changed(one argument) can only match one of them. - A lambda with the wrong parameter list.
value_changed.connect(func(): update_label())fails because the slider sends its new value. - Godot 3 code ported by hand. Godot 3 passed extra arguments as an array in the fourth parameter of
connect("pressed", self, "_on_pressed", [id]). Rewriting that aspressed.connect(_on_pressed)silently dropsid.
Find out what the signal really sends
For a built-in signal, select the emitting node and open the Node dock (beside the Inspector), Signals tab. Each signal is listed with its parameters, for example body_entered(body: Node2D), and existing connections appear underneath it. In the script editor, Ctrl+click a signal name to open its entry in the class reference. These are the ones that catch people most often:
| Signal | Arguments sent |
|---|---|
BaseButton.pressed(), Timer.timeout() | 0 |
BaseButton.toggled(toggled_on: bool) | 1 |
Area2D.body_entered(body: Node2D), area_entered(area: Area2D) | 1 |
AnimationPlayer.animation_finished(anim_name: StringName) | 1 |
AnimatedSprite2D.animation_finished() | 0 |
LineEdit.text_changed(new_text: String) | 1 |
TextEdit.text_changed() | 0 |
Range.value_changed(value: float) (sliders, spin boxes) | 1 |
CollisionObject2D.input_event(viewport, event, shape_idx) | 3 |
HTTPRequest.request_completed(result, response_code, headers, body) | 4 |
Note the two pairs with the same name and different counts: animation_finished and text_changed. Moving a handler from an AnimationPlayer to an AnimatedSprite2D is enough to trigger this error.
For a custom signal, the signal declaration tells you what the author intended, and the emit calls tell you what is sent. Search for both with Search > Find in Files. To see hidden binds on a live connection, print them:
func _ready() -> void:
for c in $Hitbox.body_entered.get_connections():
var cb: Callable = c["callable"]
print(cb, " bound arguments: ", cb.get_bound_arguments_count())
If the count printed is not zero and your code has no bind(), the bind is in the scene. Right-click the connection in the Node dock and choose Edit, or search your .tscn files for binds= and unbinds= on the [connection ...] lines.
Fix 1: match the handler to the signal
The broken version takes nothing while the signal sends the body that entered:
extends Area2D
func _ready() -> void:
body_entered.connect(_on_body_entered)
func _on_body_entered() -> void: # expected 0, called with 1
queue_free()
Add the parameter, and use it:
func _on_body_entered(body: Node2D) -> void:
if body.is_in_group("player"):
queue_free()
When you do not need the value, keep the parameter and prefix it with an underscore (_body) so the unused-parameter warning stays quiet. The type hint is optional, but if you add one it must accept what the signal sends, or you trade this error for “Cannot convert argument”.
Fix 2: count binds and unbinds
Callable.bind() appends its arguments after the ones the signal sends. A row of buttons that each report their index needs a handler with one parameter, because pressed sends none and the bind adds one:
func _ready() -> void:
var slots := $Slots.get_children()
for i in slots.size():
slots[i].pressed.connect(_on_slot_pressed.bind(i))
func _on_slot_pressed(index: int) -> void:
print("slot ", index)
On a signal that already sends something, the bound values come last: toggled.connect(_on_toggled.bind("Music")) needs func _on_toggled(toggled_on: bool, bus_name: String).
Callable.unbind(n) does the opposite and discards the last n arguments the signal sends. It is the cleanest way to attach a function with no parameters to a signal that has one:
$NameField.text_changed.connect(_refresh.unbind(1))
The connect dialog exposes both. Turn on Advanced in the “Connect a Signal to a Method” dialog and you get a list of extra call arguments and an unbind count. A value left there from an earlier experiment produces this error with nothing visibly wrong in the script, so check the dialog before rewriting code.
Fix 3: give lambdas the signal’s parameters
A lambda is a function like any other and must accept what arrives:
# Broken: value_changed sends the new value
$Volume.value_changed.connect(func(): update_label())
# Fixed
$Volume.value_changed.connect(func(_value: float): update_label())
The opposite mistake is giving a lambda a parameter in the hope that the signal will fill it: pressed.connect(func(id): select(id)) fails with “expected 1, called with 0”. Capture the value instead, func(): select(id), or bind it.
Fix 4: one handler for two signals
A parameter with a default value is optional, so a single function can accept both shapes. Here a toggle sends a bool and a reset button sends nothing:
func _ready() -> void:
$Mute.toggled.connect(_on_mute_changed)
$Reset.pressed.connect(_on_mute_changed)
func _on_mute_changed(muted: bool = false) -> void:
AudioServer.set_bus_mute(0, muted)
Use this when the missing value has an honest default. When the function should ignore the argument entirely, unbind(1) on the noisier connection states that more clearly than a parameter nobody reads.
Fix 5: keep custom signals and their emit calls in step
Declaring parameters on a signal documents it and feeds autocompletion and the Node dock:
signal health_changed(current: int, maximum: int)
var max_health := 100
var health := max_health
func take_damage(amount: int) -> void:
health -= amount
health_changed.emit(health) # sends one, listeners expect two
Up to at least Godot 4.4, the declaration is not enforced: emit() accepts any number of arguments of any type, and the mismatch only surfaces at each listener, as this error. So the declaration is a promise you keep by hand. When you change a signal, change the declaration first, then search for every .emit( and every .connect( of that name and update them in the same commit. Emit the full set every time:
health_changed.emit(health, max_health)
How to confirm the fix
Run the scene and make the signal fire: walk into the area, press the button, let the timer run out. The error counter on the Debugger tab should stay at zero, and the thing the handler does should happen. For a shared handler, trigger every signal connected to it, because fixing one side can break the other. If the handler still seems dead and no error appears, the connection itself is missing, which is a different problem covered in fixing a signal that will not fire. The static sibling of this error, raised when you call a function directly with the wrong count, is “Too few arguments for call”.
Catching skipped handlers in shipped builds
Because the game keeps running, players never report this as a crash. They report that a chest cannot be opened, and you have no idea a handler was skipped. Bugnet’s Godot SDK does its automatic error capture by reading the engine’s log file, and this error is written to that log, so with File Logging enabled in Project Settings (it is off by default on mobile exports) the line can reach your dashboard as a report with the platform, OS and game version attached. Reports with the same title stack into one entry with an occurrence count. What Bugnet cannot tell you is which value should have been sent: the message names the signal and the function, and the fix is still the comparison described above. Setup is in the getting started guide.
Related guides
- How to Fix a Godot Signal That Won’t Fire
- How to Fix “Too few arguments for call” and “Too many arguments for call” in Godot 4
- How to Fix “Invalid type in function: Cannot convert argument” in Godot
- Fix: Godot Area2D body_entered Signal Not Firing
- How to Fix “Signal is already connected” in Godot
Frequently asked questions
What does Method expected 0 arguments, but called with 1 mean in Godot?
A signal fired and sent one argument, but the function connected to it has no parameters. Godot refuses to call a function with the wrong number of arguments, logs this error and skips the handler. Add a parameter to the function for the value the signal sends.
Why does my game keep running after Error calling from signal?
The error is reported by the signal emission code, not raised inside your script, so nothing is interrupted. Godot skips that one connection and continues with the rest. The visible symptom is a handler that silently never runs.
How do I pass an extra argument to a signal handler in Godot 4?
Use bind on the callable when connecting, for example connecting pressed to a handler bound with an index. Bound arguments are appended after the signal’s own arguments, so the handler needs one parameter for each signal argument plus one for each bound value.
How do I ignore a signal’s arguments in Godot 4?
Call unbind with the number of arguments to drop on the callable you connect, or keep the parameters in the function and prefix their names with an underscore. Both stop the count mismatch; unbind lets a function with no parameters be reused.
Can one function handle signals with different arguments?
Yes. Give the extra parameters default values so they become optional. A function declared with one bool parameter that defaults to false can be connected to both a signal that sends a bool and a signal that sends nothing.
Bound arguments arrive after the signal’s own, and unbind removes from the end. Before you rewrite a handler, count what the signal sends, add the binds, subtract the unbinds, and compare that number to the parameter list.