openmultiplayer / openmultiplayer/open.mp

The 64-bit server crashes when executing print or printf in the scripts

Open
#835 5 comments 0 reactions 1 assignee View on GitHub

@AmyrAhmady is already working on this.

Since Jan 14, 2024.

bug nightly
Dominant language
C++
Stars
641
Forks
208
PR merge metrics
No merged PRs in 30d

Description

Describe the bug
If you run the 'print' or 'printf' function in OnGamemodeInit/OnFilterScriptInit on an open.mp x64 server, the server will immediately shut down. It works correctly on the Win32 server.

To Reproduce
Steps to reproduce the behavior:

  1. Go to 'new filterscript'
#define FILTERSCRIPT

#include <open.mp>

public OnFilterScriptInit()
{
	print(" ");
	print("  -----------------------------------");
	print("  |  My first open.mp filterscript! |");
	print("  -----------------------------------");
	print(" ");
}


public OnFilterScriptExit()
{
	return 1;
}
  1. Click on 'compile and run omp server x64'
  2. See error

Expected behavior
The filter script should execute the print function, and the server should not close.

Screenshots and/or logs
If applicable, add screenshots and/or log output to help explain your problem.

Commit hash in master
Link

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.