'Starting the Pepper Robot Emulator/Robot Viewer crashes Android Studio without error message

I installed the Pepper SDK according to the guide (https://qisdk.softbankrobotics.com/sdk/doc/pepper-sdk/ch1_gettingstarted/installation.html) multiple times now, but as i am starting the Robot Emulator for Pepper or trying to connect to the real robot, Android Studio just closes without any error. I looked into the Windows Event Viewer and it says the problem is located in qi.dll in C:\Users[name]\AppData\Local\Temp\qi.dll. The last message in the Event Log says "QI_WRITABLE_PATH=D:\Softbank Robotics\RobotSDK\API 7/naoqi-config/ D:\Softbank Robotics\RobotSDK\API 7\tools/bin/naoqi-bin.exe --qi-listen-url tcp://127.0.0.1:9570" and the emulator loads to 0-17% before closing. I already tried to reinstall pretty much everything and different versions, but nothing helped.



Solution 1:[1]

First, are you running it on a compatible system?

Given that you are on Windows 11, this troubleshooting section might apply to your case:

Connection to a real or virtual robot is impossible and log contains:

java.lang.UnsatisfiedLinkError: C:\Users\[yourUserName]\AppData\Local\Temp\qi.dll

The error may be caused by space character your session name [yourUserName].

Solution 2:[2]

You need no template. If ICtl has a virtual method called SetPos you can pass instances of derived classes via reference to the base:

void set(ICtl& pCtl, int x, int y)
{
   pCtl.SetPos(x,y);
}

However, it is unclear what purpose this method serves, because now the caller has to call set(pctl,x,y) when they can simply call pctl.SetPos(x,y) directly.

Roughly speaking, you would need a template if you wanted to call a method called SetPos on instances of otherwise completely unrelated types. When the instances share a common base that offers the interface you want to use, there is no need for a template.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1
Solution 2 463035818_is_not_a_number