Some interesting output when debugging tetra examples or games #152
Labels
Area: Platform
Issues relating to the platform layer
Platform Specific: macOS
Issues that are specific to systems running macOS.
Status: Needs Replicating
Indicates that the issue cannot be replicated - this doesn't necessarily mean it's invalid!
Type: Investigation
Ongoing investigations and unanswered questions.
I am using Visual Studio Code to develop with tetra on MacOS, and it's a very nice environment after having added the "LLDB" and "Rust (rls)" extensions. By adding launch configurations (Visual Studio Code automatically adds debug configurations by examining cargo.toml), I can debug and set breakpoints.
An interesting aspect though is that when running any sample I get the following output in the debug terminal, this is prior to having done any explicit graphics::draw call:
2019-11-24 10:54:51.396156+0100 tetras[9199:547938] [plugin] AddInstanceForFactory: No factory registered for id <CFUUID 0x1011042c0> F8BB1C28-BAE8-11D6-9C31-00039315CD46 2019-11-24 10:54:51.417284+0100 tetras[9199:547938] HALC_ShellDriverPlugIn::Open: Can't get a pointer to the Open routine 2019-11-24 10:54:51.417528+0100 tetras[9199:547938] HALC_ShellDriverPlugIn::Open: Can't get a pointer to the Open routine 2019-11-24 10:54:51.604498+0100 tetras[9199:547992] flock failed to lock maps file: errno = 35 2019-11-24 10:54:51.604770+0100 tetras[9199:547992] flock failed to lock maps file: errno = 35 2019-11-24 10:55:27.478664+0100 tetras[9199:547938] [tetras] CGContextSetFillColorWithColor: invalid context 0x0. If you want to see the backtrace, please set CG_CONTEXT_SHOW_BACKTRACE environmental variable. 2019-11-24 10:55:27.478692+0100 tetras[9199:547938] [tetras] CGContextGetCompositeOperation: invalid context 0x0. If you want to see the backtrace, please set CG_CONTEXT_SHOW_BACKTRACE environmental variable. 2019-11-24 10:55:27.478700+0100 tetras[9199:547938] [tetras] CGContextSetCompositeOperation: invalid context 0x0. If you want to see the backtrace, please set CG_CONTEXT_SHOW_BACKTRACE environmental variable. 2019-11-24 10:55:27.478706+0100 tetras[9199:547938] [tetras] CGContextFillRects: invalid context 0x0. If you want to see the backtrace, please set CG_CONTEXT_SHOW_BACKTRACE environmental variable. 2019-11-24 10:55:27.478713+0100 tetras[9199:547938] [tetras] CGContextSetCompositeOperation: invalid context 0x0. If you want to see the backtrace, please set CG_CONTEXT_SHOW_BACKTRACE environmental variable.
The code will run and work as expected but maybe you have some ideas on what might be causing this? Feel free to close this if it's "expected" behaviour.
The text was updated successfully, but these errors were encountered: