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

debug errors are unformatted. #135

Closed
i-make-robots opened this issue Apr 23, 2024 · 1 comment
Closed

debug errors are unformatted. #135

i-make-robots opened this issue Apr 23, 2024 · 1 comment

Comments

@i-make-robots
Copy link

i-make-robots commented Apr 23, 2024

v0.5.3
Error message appears as "LCP internal error, s <= 0 (s=%.4f)"

in src/main/java/org/ode4j/ode/internal/ErrorHdl.java I tried a version 0.5.4 with

	public static void dDebug (int num, String msg, Object ... ap) {
		//  va_list ap;
		//  va_start (ap,msg);
		if (debug_function != null) {
			debug_function.call (num,msg,ap);
		} else {
			// changed here
			logger.debug("ODE INTERNAL ERROR " + num + ": " + String.format(msg, ap));
		}
		// *((char *)0) = 0;   ... commit SEGVicide
		//abort();
		throw new RuntimeException("#"+num + ": " + String.format(msg, ap));
	}

but the error message came out the same. Perhaps I am failing to install the package?

@tzaeschke
Copy link
Owner

Fixed with #138

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants