How can I debug a GameObject’s rotation?

I have a model of a dragon, with an animation of it flying. When I play the animation in the Animator’s preview, the dragon flies in a straight line, but when I run it in-game, it flies around in circles about 10 units in diameter.

If the turning isn’t coming from the animator, it has to be coming from somewhere else, but I have no idea where. There aren’t any scripts on the dragon that would influence it like that. Is there any way to discover what’s causing my dragon to turn? (It’s times like this that I really miss the ability to set a memory breakpoint on an object when working in .NET. That would make this trivial!)

sharepoint addin – Create and debug a file handler

How do I create and debug file handlers? I tried following the Microsoft docs, but those docs and anything else I can find are out of date and I can’t tell if I’m missing a step or made an error in the config. I don’t see anything different in OneDrive/Sharepoint.

I also tried a sample file handler but that is also out of date and didn’t show in OneDrive/Sharepoint either.

c++ – Custom memory manager works fine in release mode, but not in debug mode

I’m trying to implement a simple memory manager to experiment with memory pooling mechanism and track memory leaks. I’m using VS2019 and so far my code only runs in release x86 mode. Changing the build configuration to debug or setting target platform to x64, results in an access violation error. Specifically, in debug mode the following line which calculates the available pool size, throws an exception “Unhandled exception thrown: read access violation. p was nullptr.”

return p->end - p->next;

My question is why release mode works fine and how to fix the access violation in debug mode configuration? Also any comment, suggestions or appraisal of the implementation is appreciated. Here is my current code:

#include <iostream>
#include <string>
#include <array>

struct free_store {
    char* next;
    char* end;

const int POOL_SIZE {500};

// memory counters
size_t alloc_count {0};
size_t dealloc_count {0};

// containers to trace memory info
std::array<void*, POOL_SIZE> m_adrs; // addresses of the reserved memory
std::array<size_t, POOL_SIZE> m_sizes; // sizes of the reserved memory
std::array<std::string, POOL_SIZE> m_adrs_str;

// memory management functionality
using pool = free_store;
pool* create_pool(size_t);
void destroy_pool(pool*);
size_t available_pool(pool*);
void* alloc_memory(pool*, size_t);
void free_memory(void* memory);

// test class
class Student {
    const size_t NUM_OF_COURSES {5};
    double* scores;

    Student() {
        scores = new double(NUM_OF_COURSES);
    ~Student() {
        // uncomment to prevent leaks
        // delete() scores;

// customizing new and delete 
pool* my_pool = create_pool(sizeof(Student) * POOL_SIZE);

void* operator new(size_t sz) {
    //void* ptr {malloc(sz)};
    void* ptr = alloc_memory(my_pool, sz);
    return ptr;
void operator delete(void* ptr) {
    //free(ptr); // I destroy the pool in the end of program

void test_1() {
    int* id {new int(208748301)};
    double* pass {new double(15)};
    double* bounds = {new double(2) {0, 20}};
    Student* st1 = new Student;
    Student* st2 = new Student;
    delete pass;
    delete() bounds;
    delete st1;
    delete st2;

void display_results();

int main() {

    // test allocation/deallocation

    // show results

    // release resources


} // end main function

pool* create_pool(size_t size) {
    pool* p = (pool*)malloc(size + sizeof(pool));
    p->next = (char*)&p(1);
    p->end = p->next + size;
    return p;

void destroy_pool(pool* p) {

size_t available_pool(pool* p) {
    return p->end - p->next;

void* alloc_memory(pool* p, size_t sz) {
    std::cout << "Pool Available: " << available_pool(my_pool) << " bytes" << std::endl;
    if(available_pool(p) < sz) return nullptr;
    void* memory = (void*)p->next;
    p->next += sz; = memory;
    char buf(128);
    sprintf_s(buf, "%p", memory); = buf; = sz;
    return memory;

void free_memory(void* memory) {
    auto it {std::find(m_adrs.begin(), m_adrs.end(), memory)};
    auto idx {std::distance(m_adrs.begin(), it)}; = nullptr;

void display_results() {
    std::cout << std::endl;
    std::cout << "Number of allocations: " << alloc_count << std::endl;
    std::cout << "Number of deallocations: " << dealloc_count << std::endl << std::endl;

    std::cout << "Sizes of the reserved memory:" << std::endl;
    for(size_t i {}; i < m_sizes.size(); i++) {
        if(m_adrs_str(i) != "") {
            std::cout << "Address: " << m_adrs_str(i) << ", Size: " << m_sizes(i) << " bytes" << std::endl;

    std::cout << std::endl;
    std::cout << "Addresses of leaks:" << std::endl;
    for(const auto& a : m_adrs) {
        if(a != nullptr) {
            std::cout << a << std::endl;

libgdx – Bullet: Mesh drops after debug lines turn green

My mesh drops after a while when rigid body turns green. Maybe I sound wierd, but I am new to bullet-physics and 3d stuff, and don’t know the actual cause ;P

It happens on using MotionState.
Initial state:

enter image description here

After debugdraw turn green

enter image description here

Here is my code inside render method:

        delta = Math.min(1f / 30f,;

        world.stepSimulation(delta, 5, 1f/60f);
        modelBatch.render(stickobj, environment);

Here is my motion State for stickman:

class StickMotionState extends btMotionState {

    Matrix4 transform;
    float radius;

    StickMotionState(float r){
        radius = r;

    public void getWorldTransform(Matrix4 trans) {
            trans.translate(0, -radius, 0);
    public void setWorldTransform(Matrix4 trans) {

It works fine without explicitly calling,
stickobj.body.getMotionState().getWorldTransform(stickobj.transform); as Xoppa stated in this tutorial, but then my model is offset a little bit.

enter image description here

Also, I don’t want to offset origin in blender due to increased calulations in placing them in game.
PS: What does that green colour signifies ūüėõ

google – How to debug email issues with gsuite after DNS switch

We recently switched our DNS provider for our domain from Namebright to AWS Route53. Everything is working properly except for one strange issue.

We’re currently not able to receive emails from our Mandrill account (using Mandrill SMTP) to our domain email addresses managed by gsuite. To be clear, our Mandrill emails are working in general. Every email address is able to receive emails from our Mandrill account, including our personal gmail addresses. Also, our domain email addresses are able to send emails and receive emails from any other source, just not from our Mandrill account.

We’re at a loss as to how to debug this issue. We suspect the issue must be with gsuite because Mandrill says that the emails were delivered successfully. What could the issue be?

performance – How do I further debug this Internal Server Error problem? (mod_fcgid related)

I was asked to help with a Drupal 7 site that I’ve helped to tweak several times before. The problem is, most of the site pages are not shown and “Internal Server Error” 500 page is shown instead (it started at the 6th of may). There are some exceptions though:

/user  (but not /user/1 for example)
/admin/modules  (but not  /admin/config or /admin/reports)

(may be these are not all the exceptions, but I don’t know others yet)

Now, here’s what I know (I don’t have full root access, but I can request access for some resources):

  • PHPMyAdmin shows over 10K requests per minute (84% are select, 6% delete, 6% insert, ..). By the way, it also shows that it was started at the 7th of May (may be administrator has rebooted it)

  • httpd access_log consists of lines like (I splitted into 2 for readability)

    ::1 - - (13/May/2020:02:07:32 +0300) "OPTIONS * HTTP/1.0" 200 - "-"
     "Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips mod_fcgid/2.3.9 PHP/5.4.16 (internal dummy connection)"

    it seems there’s nothing except these ones; these ones are added with frequency of about 5-20 lines per second

  • httpd error_log consists mostly of lines like

    (Wed May 13 09:16:09.487641 2020) (fcgid:warn) (pid 27860) mod_fcgid: process 25947 graceful kill fail, sending SIGKILL

    and these are added even less frequently: about 10 times per hour

  • processor is highly loaded: it varies from 10% to 75% CPU consumed by /usr/bin/php-cgi php (which can be seen by using /usr/bin/php-cgi php)

Looks like something’s wrong with mod_fcgid, but I have very little idea of what I can do to debug and fix this. Can anybody help with this?

ipsec – How do I debug connecting to VPN server from android?

I’m following tutorial here to create VPN server.

I think server is up and running:

service ipsec status
‚óŹ ipsec.service - Internet Key Exchange (IKE) Protocol Daemon for IPsec
   Loaded: loaded (/lib/systemd/system/ipsec.service; enabled; vendor preset: enabled)
   Active: active (running) since Sat 2020-05-16 14:47:48 UTC; 29min ago

I’ve configured android with VPN settings:

VPN Type: IPSec Xauth PSK
Server address: public IP
IPSec Identifier: <blank>
IPSec Preshared Key: <my_preshared_key>

and I connect with <username> and <password> configured while running server.

My phone does say it is connected to VPN, but no bytes are getting transmitted. I do see when my phone says connected, I’m able to see connection from server side:

ipsec whack --trafficstatus
006 #10: "xauth-psk"(10) xx.yy.zz.aa, username=wingman, type=ESP, add_time=0, inBytes=0, outBytes=0, lease=

I installed Termux in my phone and ran:

ip a
tun0: <POINTTOPOINT,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UNKNOWN group default qlen 500
    inet scope global tun0
        valid_lft forever preferred_lft forever
    inet6 xxxxxxxxxxxxxxx scope link stable-privacy
        valid_lft forever preferred_lft forever

How can I make this VPN connection work?

I’m not sure what other information is required to debug, let me know what else can help in debugging where i’m doing something wrong.

google analytics – GTM event in database is selected by debug console but does not fire tags

I work on the website which was developed using grav.

I am trying to track form submissions using GTM.
In the attached image, you will see a blue button, clicking on it, a popup window will appear: Screen capture showing the .

The developer indicates that the site uses dataLayer.push to include the following in the data layer:
requestFile: open
requestFile: sent

These elements respectively follow the opening and sending of a contact form.
I'll start by describing how I try to follow the OPENING of the form.
I want to follow these two actions using GTM, I created a variable named & # 39; requestFile & # 39; so that GTM knows that this is something that interests me.
The variables and triggers that I have created

I created a trigger, based on a custom event
Finally, I created a tag for that
Here is a picture of the final result
The debug console shows that the custom event is pushed into the data layer

So I think the debug console shows that a data layer element exists, but somehow no tag is triggered, not even that of Universal Analytics.

What am I missing? Did I misconfigure something?

Thanks in advance for your help

debian – preseed / late_command oh-my-zsh / debug

I can't install oh-my-zsh correctly via d-i preseed/late_command. zsh and chsh works fine as well as all of my other late orders, but somehow the repository is not cloned and installation does not occur.

I don't really know how to debug this as there is no error (which would appear at the end of the installation process) and the machine reboots and starts operating normally but without oh- my-zsh. Here are the interesting preconfigured bits:

d-i preseed/late_command string 
apt-install zsh; 
in-target sh -c "mkdir -m 700 /root/.ssh ; echo 'ssh-rsa SOME_KEYS' > /root/.ssh/authorized_keys ; chmod 600 /root/.ssh/authorized_keys"; 
in-target sh -c "$(curl -fsSL"; 
in-target sh -c 'echo '"'"'PROMPT="%{$fg(magenta)%}%n%{$reset_color%} at %{$fg(yellow)%}%m%{$reset_color%} ${ret_status} %{$fg(cyan)%}%c%{$reset_color%} $(git_prompt_info)"'"'"' >> /root/.zshrc'; 
in-target sh -c 'echo '"'"'export PATH=$PATH:/usr/sbin'"'"' >> ~/.zshrc'; 
in-target chsh -s /bin/zsh;
  1. ssh key works fine
  2. ~/.zshrc the file is created but only with the PROMPT variable and export PATH... bit
  3. wget and curl are both installed via d-i pkgsel/include string and are available from the first connection.
  4. my shell at startup is zsh

P.S.: It is a Debian installation.

debug – I can't debug in Visual Studio?

I am trying to debug the following code

using System;
namespace jogosimulaçao_princípios
    public class Janela1
        public Janela1()
            static void Main(string() args)
                Console.WriteLine("Primeiro Teste!");


in Visual Studio and I get an error when trying to debug this way below, since the debug start button is disabled, I couldn't even print the error, because now it is gone:
insert description of image here