ZapAndersson

Results 14 comments of ZapAndersson

You can also not compile twice with the same OSLCompiler object. It seems like anything in an #include gets included twice when you do? Do you want me to make...

> Update: I've been trying this and boy is it tricky. I've done like 3 rewrites so far and keep running into corners that are hard to back out of....

Due to the intermittivity of this it's hard to debug, and often I get a crash with no useful callstack, only an "abort was called" exception. I will try to...

I'm wondering if it can have anything to do with issue #1427 ?

Better call stack, with some of the LLVM stuff untangled: @lgritz ``` oslexec.dll!llvm::report_fatal_error(const llvm::Twine & Reason, bool GenCrashDiag) Line 122 C++ oslexec.dll!llvm::report_fatal_error(const char * Reason, bool GenCrashDiag) Line 83 C++...

The actual abort is here ![image](https://github.com/AcademySoftwareFoundation/OpenShadingLanguage/assets/102356572/698d0045-671d-4540-ab63-9999003064bd) Called from here: ![image](https://github.com/AcademySoftwareFoundation/OpenShadingLanguage/assets/102356572/e838d3d8-9da3-42f1-9694-69f08eb54d2b) called from here: ![image](https://github.com/AcademySoftwareFoundation/OpenShadingLanguage/assets/102356572/4e31ccc8-0dd4-4256-b100-d21ac3867d35) called from here: ![image](https://github.com/AcademySoftwareFoundation/OpenShadingLanguage/assets/102356572/c14318d5-ba41-426d-8715-c146505b14ba) Called from here: ![image](https://github.com/AcademySoftwareFoundation/OpenShadingLanguage/assets/102356572/19b7335f-93fb-4135-8297-362294e4dced) Called from: ![image](https://github.com/AcademySoftwareFoundation/OpenShadingLanguage/assets/102356572/8c2bada7-83a0-41f7-aa52-179061dd4ba6) Called from OSL here (as...

I react especially to this line..... ![image](https://github.com/AcademySoftwareFoundation/OpenShadingLanguage/assets/102356572/08fb5990-a211-4f9d-b0ff-ed06a9f7a27a)

So it seems this IMAGE_REL_AMD64_ADDR32NB mode is a 32-bit offset based thing, but the one at the end of the above screenshot, IMAGE_REL_AMD65_ADDR64 is true 64 bit. I mad a...

Well actually I got a lot of (probably great, but I barely understand them due to being a total LLVM noob) replies here: https://github.com/llvm/llvm-project/issues/65641 Does any of that tell you...

Yes, lots of good replies at https://github.com/llvm/llvm-project/issues/65641 ... OSL has a line that reads (in llvm_util.cpp https://github.com/AcademySoftwareFoundation/OpenShadingLanguage/blob/main/src/liboslexec/llvm_util.cpp#L1442) //engine_builder.setCodeModel(llvm::CodeModel::Default); I'll try to set it to "::Large" or "::Medium" and see if...