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

Does not starts on OSX 10.11.6 and SBCL 1.4.11 #5

Closed
svetlyak40wt opened this issue Dec 1, 2018 · 4 comments
Closed

Does not starts on OSX 10.11.6 and SBCL 1.4.11 #5

svetlyak40wt opened this issue Dec 1, 2018 · 4 comments

Comments

@svetlyak40wt
Copy link

When I call start function, lisp exists with SIGABRT and prints following traces in the inferior lisp buffer:

2018-12-02 00:34:11.848 sbcl[27721:28050727] *** Assertion failure in +[NSUndoManager _endTopLevelGroupings], /Library/Caches/com.apple.xbs/Sources/Foundation/Foundation-1259.32/Misc.subproj/NSUndoManager.m:359
2018-12-02 00:34:11.849 sbcl[27721:28050727] +[NSUndoManager(NSInternal) _endTopLevelGroupings] is only safe to invoke on the main thread.
2018-12-02 00:34:11.850 sbcl[27721:28050727] (
	0   CoreFoundation                      0x00007fff904f9452 __exceptionPreprocess + 178
	1   libobjc.A.dylib                     0x00007fff94f9ef7e objc_exception_throw + 48
	2   CoreFoundation                      0x00007fff904fe16a +[NSException raise:format:arguments:] + 106
	3   Foundation                          0x00007fff8ea0c866 -[NSAssertionHandler handleFailureInMethod:object:file:lineNumber:description:] + 198
	4   Foundation                          0x00007fff8e9918d1 +[NSUndoManager(NSPrivate) _endTopLevelGroupings] + 170
	5   AppKit                              0x00007fff87b87e22 -[NSApplication run] + 844
	6   libglfw.3.dylib                     0x0000000002419f7c initializeAppKit + 1420
	7   libglfw.3.dylib                     0x0000000002419641 _glfwPlatformCreateWindow + 35
	8   libglfw.3.dylib                     0x0000000002415430 glfwCreateWindow + 487
	9   ???                                 0x00000000228f5375 0x0 + 579818357
)
2018-12-02 00:34:11.851 sbcl[27721:28050727] *** Assertion failure in +[NSUndoManager _endTopLevelGroupings], /Library/Caches/com.apple.xbs/Sources/Foundation/Foundation-1259.32/Misc.subproj/NSUndoManager.m:359
2018-12-02 00:34:11.851 sbcl[27721:28050727] An uncaught exception was raised
2018-12-02 00:34:11.851 sbcl[27721:28050727] +[NSUndoManager(NSInternal) _endTopLevelGroupings] is only safe to invoke on the main thread.
2018-12-02 00:34:11.851 sbcl[27721:28050727] (
	0   CoreFoundation                      0x00007fff904f9452 __exceptionPreprocess + 178
	1   libobjc.A.dylib                     0x00007fff94f9ef7e objc_exception_throw + 48
	2   CoreFoundation                      0x00007fff904fe16a +[NSException raise:format:arguments:] + 106
	3   Foundation                          0x00007fff8ea0c866 -[NSAssertionHandler handleFailureInMethod:object:file:lineNumber:description:] + 198
	4   Foundation                          0x00007fff8e9918d1 +[NSUndoManager(NSPrivate) _endTopLevelGroupings] + 170
	5   AppKit                              0x00007fff87b87ebe -[NSApplication run] + 1000
	6   libglfw.3.dylib                     0x0000000002419f7c initializeAppKit + 1420
	7   libglfw.3.dylib                     0x0000000002419641 _glfwPlatformCreateWindow + 35
	8   libglfw.3.dylib                     0x0000000002415430 glfwCreateWindow + 487
	9   ???                                 0x00000000228f5375 0x0 + 579818357
)
2018-12-02 00:34:11.851 sbcl[27721:28050727] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: '+[NSUndoManager(NSInternal) _endTopLevelGroupings] is only safe to invoke on the main thread.'
*** First throw call stack:
(
	0   CoreFoundation                      0x00007fff904f9452 __exceptionPreprocess + 178
	1   libobjc.A.dylib                     0x00007fff94f9ef7e objc_exception_throw + 48
	2   CoreFoundation                      0x00007fff904fe16a +[NSException raise:format:arguments:] + 106
	3   Foundation                          0x00007fff8ea0c866 -[NSAssertionHandler handleFailureInMethod:object:file:lineNumber:description:] + 198
	4   Foundation                          0x00007fff8e9918d1 +[NSUndoManager(NSPrivate) _endTopLevelGroupings] + 170
	5   AppKit                              0x00007fff87b87ebe -[NSApplication run] + 1000
	6   libglfw.3.dylib                     0x0000000002419f7c initializeAppKit + 1420
	7   libglfw.3.dylib                     0x0000000002419641 _glfwPlatformCreateWindow + 35
	8   libglfw.3.dylib                     0x0000000002415430 glfwCreateWindow + 487
	9   ???                                 0x00000000228f5375 0x0 + 579818357
)
libc++abi.dylib: terminating with uncaught exception of type NSException
fatal error encountered in SBCL pid 27721(tid 0xb0010000):
SIGABRT received.


Welcome to LDB, a low-level debugger for the Lisp runtime environment.
ldb> 
Process inferior-lisp exited abnormally with code 1
@t-cool
Copy link

t-cool commented Dec 1, 2018

It was same as me...

[package sucle]...
(:SUCLE)
(sucle:start)

#<SB-THREAD:THREAD "Anonymous thread" RUNNING {1005CD49A3}>
* 
2018-12-02 08:39:21.192 sbcl[91187:1063045] *** Assertion failure in +[NSUndoManager _endTopLevelGroupings], /BuildRoot/Library/Caches/com.apple.xbs/Sources/Foundation/Foundation-1454.93/Foundation/Misc.subproj/NSUndoManager.m:361
2018-12-02 08:39:21.193 sbcl[91187:1063045] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: '+[NSUndoManager(NSInternal) _endTopLevelGroupings] is only safe to invoke on the main thread.'
*** First throw call stack:
(
	0   CoreFoundation                      0x00007fff4a56d59b __exceptionPreprocess + 171
	1   libobjc.A.dylib                     0x00007fff718a0942 objc_exception_throw + 48
	2   CoreFoundation                      0x00007fff4a573182 +[NSException raise:format:arguments:] + 98
	3   Foundation                          0x00007fff4c6b9150 -[NSAssertionHandler handleFailureInMethod:object:file:lineNumber:description:] + 193
	4   Foundation                          0x00007fff4c647d44 +[NSUndoManager(NSPrivate) _endTopLevelGroupings] + 469
	5   AppKit                              0x00007fff47a6d96e -[NSApplication run] + 997
	6   libglfw.3.dylib                     0x000000000071903f initializeAppKit + 1393
	7   libglfw.3.dylib                     0x0000000000718706 _glfwPlatformCreateWindow + 34
	8   libglfw.3.dylib                     0x0000000000714592 glfwCreateWindow + 443
	9   ???                                 0x000000002276cf3f 0x0 + 578211647
	10  ???                                 0x0000000022775fcd 0x0 + 578248653
	11  ???                                 0x00000000229de49c 0x0 + 580773020
	12  ???                                 0x0000000022b4fdab 0x0 + 582286763
	13  ???                                 0x000000002296535e 0x0 + 580277086
	14  ???                                 0x0000000021caa465 0x0 + 566928485
	15  ???                                 0x0000000021caa8e5 0x0 + 566929637
	16  ???                                 0x0000000021ca9e51 0x0 + 566926929
	17  ???                                 0x0000000021b60f7e 0x0 + 565579646
)
libc++abi.dylib: terminating with uncaught exception of type NSException
fatal error encountered in SBCL pid 91187(tid 0xb0004000):
SIGABRT received.


Welcome to LDB, a low-level debugger for the Lisp runtime environment.
ldb> 

@gregcman
Copy link
Owner

gregcman commented Dec 2, 2018

Thanks for the issue ticket! Apparently on macOS GLFW must be called in the main thread. This should be fixed with this commit which detects if you are using macOS, and if so uses the main thread for GLFW. Please let me know if this worked for you.

@gregcman gregcman closed this as completed Dec 2, 2018
@t-cool
Copy link

t-cool commented Dec 2, 2018

Hi.

Now, it starts a new window, but the window stops as soon as it starts up.
When I type "E"(toggle input), the error happens as follows:

 (sucle:start)

"ERROR: 0:1: '' :  version '330' is not supported
" 
debugger invoked on a SIMPLE-ERROR in thread
#<THREAD "main thread" RUNNING {10005505B3}>:
  "ERROR: 0:1: '' :  version '330' is not supported
"

Type HELP for debugger help, or (SB-EXT:EXIT) to exit from SBCL.

restarts (invokable by number or by possibly-abbreviated name):
  0: [ABORT] Exit debugger, returning to top level.

(GLHELP::COMPILE-STRING-INTO-SHADER 2 "#version 330
out vec4 roloCgarF_lg;
in vec3 G4;
void main(){
((roloCgarF_lg.rgb) = G4);
}
")
   source: (ERROR "~S" SUCCESS)
0] 

@gregcman
Copy link
Owner

gregcman commented Dec 2, 2018

Thanks for the feedback. This commit should fix the error.

version '330' is not supported

Previously the GLSL version was just a magic number scattered around, in this case 330.
Now instead of a magic number, the GLSL version is detected from OpenGL.

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

3 participants