Comments (4)
On 10/07/2014 08:20 AM, Chris Barrick wrote:
I get this error when using |gtrace/0| to debug code on Mac OS X in
version 7.1.23.
Hmmm. Works fine here using Mavericks and the binary installer. How
did you install SWI-Prolog? Could be that somehow the library index
is not correctly built. Start Prolog with sufficient rights to write
to the library directory and run
?- make.
This should print something like:
% Updating index for library /....
If not, try
?- absolute_file_name(swi(library), Dir, [file_type(directory),
access(write)],
make_library_index(Dir).
Hope this helps.
Cheers --- Jan
Query:
?- gtrace, main.
Error:
|ERROR: prolog_ide_stack:display_levels/3: Undefined procedure: prolog_ide_stack:predsort/3
|Goal stack:
| [65] generate_current_predicate(_G1929, _G1926, predsort)
[58] setof(_G1926:predsort, '$dwim':current_predicate(_G1929, _G1926:predsort), _G2222)
[54] setup_call_catcher_cleanup('$bags':'$new_findall_bag', '$bags':findall_loop(_G1904, '$messages':dwim_predicate(prolog_ide_stack:predsort, _G1904), _G1914, []), _G2222, '$bags':'$destroy_findall_bag')
[44] print_message(error, error(existence_error(procedure, prolog_ide_stack:predsort/3), context(prolog_ide_stack:display_levels/3, _G1871)))
[42] pce_principal:send(@17582044230985/prolog_debugger, show_stack([frame(708, call), frame(683, 52), frame(658, 52), frame(633, 52), frame(608, 52), frame(..., ...)|...], []))
|C stack:
|C-stack trace labeled "INT":
[0] [...]/lib/swipl-7.1.23/lib/x86_64-darwin14.0.0/libswipl.dylib(save_backtrace+0x65) [0x104b1169f]
[1] [...]/lib/swipl-7.1.23/lib/x86_64-darwin14.0.0/libswipl.dylib(interruptHandler+0x230) [0x104acdaac]
[2] [...]/lib/swipl-7.1.23/lib/x86_64-darwin14.0.0/libswipl.dylib(dispatch_signal+0x371) [0x104ac969c]
[3] [...]/lib/swipl-7.1.23/lib/x86_64-darwin14.0.0/libswipl.dylib(handleSignals+0x84) [0x104ac92c2]
[4] [...]/lib/swipl-7.1.23/lib/x86_64-darwin14.0.0/libswipl.dylib(PL_next_solution+0x3c78) [0x104a70845]
[5] [...]/lib/swipl-7.1.23/lib/x86_64-darwin14.0.0/libswipl.dylib(PL_call_predicate+0x1c) [0x104a7f30e]
[6] [...]/lib/swipl-7.1.23/lib/x86_64-darwin14.0.0/libswipl.dylib(printMessage+0x179) [0x104a8ab55]
[7] [...]/lib/swipl-7.1.23/lib/x86_64-darwin14.0.0/libswipl.dylib(PL_next_solution+0x9d5b) [0x104a76928]
[8] [...]/lib/swipl-7.1.23/lib/x86_64-darwin14.0.0/libswipl.dylib(callProlog+0x14c) [0x104ab263c]
[9] [...]/lib/swipl-7.1.23/lib/x86_64-darwin14.0.0/libswipl.dylib(pl_notrace1+0x3f) [0x104ab24d7]
[10] [...]/lib/swipl-7.1.23/lib/x86_64-darwin14.0.0/libswipl.dylib(PL_next_solution+0x6ed4) [0x104a73aa1]
[11] [...]/lib/swipl-7.1.23/lib/x86_64-darwin14.0.0/libswipl.dylib(tracePort+0x932) [0x104acb509]
[12] [...]/lib/swipl-7.1.23/lib/x86_64-darwin14.0.0/libswipl.dylib(PL_next_solution+0xaa70) [0x104a7763d]
[13] [...]/lib/swipl-7.1.23/lib/x86_64-darwin14.0.0/libswipl.dylib(query_loop+0x13a) [0x104ab2255]
[14] [...]/lib/swipl-7.1.23/lib/x86_64-darwin14.0.0/libswipl.dylib(prologToplevel+0x51) [0x104ab285d]
[15] [...]/lib/swipl-7.1.23/lib/x86_64-darwin14.0.0/libswipl.dylib(PL_toplevel+0x1e) [0x104a7fbda]
[16] [...]/bin/swipl(main+0x35) [0x104a5ff1d]
[17] /usr/lib/system/libdyld.dylib(start+0x1) [0x7fff987185c9]
|—
Reply to this email directly or view it on GitHub
#16.
from swipl-devel.
Thanks for the help! Unfortunately neither solution solves the problem.
I'm on the Yosemite beta and built SWI with brew. This error message only comes up for me when I'm trying to trace starting at the entry point of my program, not for all traces. Unfortunately, I haven't been able to further isolate the cause of the message.
To be more descriptive, when I query ?- gtrace, main
, the debugger window pops up, but the widgets within the window are not drawn. My terminal prints the message continuously until I abort. Once I abort, the window finishes drawing and alerts me that I'm trying to override the sort
module, (an issue of which I was already aware).
The error doesn't really affect me other than that I can't use the graphical debugger for this particular program at the moment. I mainly reported this since the error references an undefined predicate somewhere in the underlying system and thought you should know.
from swipl-devel.
On 10/08/2014 03:57 AM, Chris Barrick wrote:
Thanks for the help! Unfortunately neither solution solves the problem.
I'm on the Yosemite beta and built SWI with brew. This error message
only comes up for me when I'm trying to trace starting at the entry
point of my program, not for all traces. Unfortunately, I haven't been
able to further isolate the cause of the message.To be more descriptive, when I query |?- gtrace, main|, the debugger
window pops up, but the widgets within the window are not drawn. My
terminal prints the message continuously until I abort. Once I abort,
the window finishes drawing and alerts me that I'm trying to override
the |sort| module, (an issue of which I was already aware).
Isn't that the problem? If you have a module 'sort' in your program,
the system cannot load library(sort) due to the module name conflict.
Thus it can't define predsort and is stuck. The Prolog module space
is flat. Possibly that should change, but it isn't obvious how to do
that without breaking a lot.
Cheers --- Jan
from swipl-devel.
Wow, that makes so much sense. Changing the module name fixes everything. Thank you so much for taking the time to help.
from swipl-devel.
Related Issues (20)
- thread_signal/2 throws an existence error for threads that terminated but are not yet joined HOT 11
- swipl-win.exe Help>Check installation gives out two problems HOT 9
- getting existence_error(procedure,http_stream:close_range/3) with rdf_read_turtle/3 HOT 10
- CVT_WRITEQ doesn't quote at the outermost level HOT 1
- Use-after-free bug in `trace` HOT 1
- Engine generates solution that fails one of the constraints. HOT 1
- Problems with pack_install(.)
- Warning in library prolog_stack HOT 1
- Segmentation fault in call to get_rational_no_int HOT 1
- Installing on Windows without compiling does not add jpl
- crash in PL_free when using the foreign language interface HOT 4
- Add support for `process` module in WASM build HOT 2
- Handling I/O in `WASM` build / using the `read_lines_to_codes` predicate HOT 2
- Crash in upcase_atom/1 with non-ASCII HOT 2
- WASM: Return value of `.call` is inconsistent and missing bindings. HOT 2
- Compilation problem using gcc-10. HOT 4
- SWI-cpp2-plx.h new_hash_table invalid conversion from ‘void (*)(void*, void*)’ to ‘void (*)(table_key_t, table_value_t) HOT 1
- ieee/rational test failures on OpenBSD HOT 3
- SWIPL not compiling on Fedora 40 HOT 1
- Runtime error with UBSAN HOT 22
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from swipl-devel.