I can't get the Allocation Callbacks from the VmaAllocator - vulkan

I want the VkAllocationCallbacks from VMA but there is no function, and when I try to get it through m_AllocationCallbacks or GetAllocationCallbacks I get an incomplete type error. VMA works with everything else.

I just created a fork of vma that added vmaGetAllocatorAllocationCallbacks and it works fine (https://github.com/NongusStudios/VulkanMemoryAllocator).

Related

runtimeservice.getVariables does not work because it can't find process instance id

I'm new to flowable and I'm trying to start a process instance with variables. params here is the Map of <String,Object> that I'm using to start the process. It all goes well, but if I try to get my variables back it tells me
"execution 22f42f67-5f88-11e9-9df0-d46d6dbfea92 doesn't exist"
But if I search for it in my process instances list, is there. This is what I do:
pi = runtimeService.startProcessInstanceById(processDefinitionId, params);
runtimeService.getVariables(pi.getId());
I'm stuck with this problem and I do not understand why it keeps doing this. What am I missing?
Flowable has the concept of RuntimeService and HistoryService. The first one contains only the runtime data (what is currently active) and the second one has all the data. The runtime data is a subset of the history data.
The reason why you can’t find the variables via the RuntimeService is due to the fact that the process is completed.
If you use the HistoryService then it would work as expected.

j8583 How to get debugString after parseMessage

When I get the debugString() of an IsoMessage that I build, it works fine, but when I try to get the debugString() of an IsoMessage that was created by parsing (mf.parseMessage(..)) the debugString() is empty.
The parsing works fine, and the field values are there, but the debugString() returns empty string.
Am I missing something?
Isn't it possible to print the debugString of a parsedMessage?
Any message should be able to print its debugString. This must be a bug.
UPDATE so this is weird, because I just added a simple test to check for this, and it passes:
https://github.com/chochos/j8583/commit/3a32b9041470c31a451791f3baa082f18204504a
The problem seems to be Eclipse's console.
The debugString starts with a non printable character which seems to cause the problem.
When run standalone, the debugString gets printed ok like this:
^#p023060180...
(Notice the ^#p at the begining).

breeze: error on lazy-loading

With the following code:
$scope.mandat.entityAspect.loadNavigationProperty("OpenPositions")
.fail(function(err){
logger.error(err);
});
I'm getting the following error:
Error: The 'operator' parameter must be an instance of the 'FilterQueryOp' enumeration, or it must be a 'string'
Whereas if I do:
var query = breeze.EntityQuery.from("Mandates").where("Id", "==", mandatId)
.expand("OpenPositions");
manager.executeQuery(query);
It works fine and the collection OpenPositions is loaded ok.
What am I doing wrong with the first method ?
I can't repro this. There are several 'loadNavigationProperty' tests in the DocCode sample shipped in the Breeze zip. Do these tests pass? If not, you are likely running an old version of Breeze? If so, please send a small example of this failure to breeze#ideablade.com ( Attn: Jay Traband).

Problems starting an NServiceBus

I've created a very simple NServiceBus console application to send messages. However I cannot start the bus as it complains with a very vague error about 'Object reference not set to an instance of an object'.
Configure config = Configure.With();
config = config.DefaultBuilder();
config = config.BinarySerializer();
config = config.UnicastBus();
IStartableBus startableBus = config.CreateBus();
IBus Bus2 = startableBus.Start(); // **barf**
It's driving me mad, what am I missing? I thought the DefaultBuilder should be filling in any blanks?
Hmm, looks like a reference to ncqrs.NserviceBus is causing it to go wrong even though I'm not actually using it yet
Looks like manually adding the Assemblies in the overload to With() did the trick, not sure what's upsetting it but that's for another day

Magento - Trouble with setting up Model Read Adapter

I was following through on Alan Storm's tutorial on Magento's Model and ORM basics and I've run into a bit of a problem. When I get to the portion where I load from the Model for the first time I get this error "Fatal error: Call to a member function load() on a non-object...". I've reset everything already and tried again from scratch but I still get the same problem. My code looks like this:
$params = $this->getRequest()->getParams();
$blogpost = Mage::getModel('weblog/blogpost');
var_dump($blogpost);
echo("Loading the blogpost with an ID of ".$params['id']);
$blogpost->load($params['id']);
As you can see I dumped the contents of $blogpost and it shows that it is just a boolean false. My guess is that there's either a problem with the connection to the database or, for some reason, the code for Mage::getModel() didn't get installed correctly.
EDIT - Adding Code
There's so many that I just decided to pastebin them lol
app/code/local/Ahathaway/Weblog/controllers/IndexController.php
app/code/local/Ahathaway/Weblog/etc/config.xml
app/code/local/Ahathaway/Weblog/Model/Blogpost.php
app/etc/modules/Ahathaway_Weblog.xml
Your Model/Blogpost.php file should actually be Model/Mysql4/Blogpost.php, and you are missing the real Model/Blogpost.php.
My guess is that Mage cannot find your model class. Double check the module/model name and also verify if the model is in a correct place in the filesystem (it should be in app/code/local/Weblog/Model/Blogpost.php).
You also need to check if your config.xml correctly defines your model classes. It would be best if you could past your config.xml and your model class...
A quick glance reveals you're missing the model resource. Go back to the section around the following code example
File: app/code/local/Alanstormdotcom/Weblog/Model/Mysql4/Blogpost.php
class Alanstormdotcom_Weblog_Model_Mysql4_Blogpost extends Mage_Core_Model_Mysql4_Abstract{
protected function _construct()
{
$this->_init('weblog/blogpost', 'blogpost_id');
}
}