mercoledì 18 maggio 2022

Memory could not be read at address VirtualBox

 The problem address the boot of some vms using VirtualBox.


For resolving the issue try various solutions:


- Disable Audio

- Change virtualization type

- Change graphic controller

- Disable 3D acceleration

lunedì 12 luglio 2021

Fatal Error C1902: program database manager mismatch; please check your installation.

 This error could rise if Visual studio crashes during the building of a solution or the process terminates unexpectedly. Online there is not much documentation about this error, but before anything try to use REPAIR from the Visual Studio Installer, this could resolve the issue. 

domenica 7 marzo 2021

Can't debug php with XDebug

My php with VS seems to run but does not stop at break point, this solve the issue. 

https://stackoverflow.com/questions/4021964/xdebug-wont-stop-at-breakpoint

https://www.youtube.com/watch?v=LNIvugvmCyQ


php.ini

[XDebug]

zend_extension = "C:/xampp/php/ext/php_xdebug.dll"

xdebug.remote_enable = 1

xdebug.remote_autostart = 1

xdebug.remote_enable=1

xdebug.default_enable=0

xdebug.profiler_enable=0

xdebug.auto_trace=0

xdebug.coverage_enable=0

xdebug.mode=debug

xdebug.start_with_request=yes

launch.json

{
    // Use IntelliSense to learn about possible attributes.
    // Hover to view descriptions of existing attributes.
    // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
    "version": "0.2.0",
    "configurations": [
        {
            "name": "Listen for XDebug",
            "type": "php",
            "request": "launch",
            "port": 9003
        },
        {
            "name": "Launch currently open script",
            "type": "php",
            "request": "launch",
            "runtimeExecutable": "C:\\xampp\\php\\php.exe",
            "program": "${file}",
            "cwd": "${fileDirname}",
            "port": 9003
        }
    ]
}


Similar problem here when I migrated from Xdebug 2 to 3.

There is a documentation for that but the most important points are:

Xdebug's default debugging port has changed from 9000 to 9003.

To make sure that just Step Debugging is active, instead of:

xdebug.remote_enable=1
xdebug.default_enable=0
xdebug.profiler_enable=0
xdebug.auto_trace=0
xdebug.coverage_enable=0

You now only do:

xdebug.mode=debug

The xdebug.remote_autostart setting has been removed. Instead, set

xdebug.start_with_request=yes

giovedì 3 settembre 2020

Connected but can't ping Zero Tier

 If you are connected to a Zero Tier network but seems you can't ping or do anything, remember to disable Windows's firewall.

Cannot connect Zero Tier services: 

Windows 10

Open Task Manager and go to the “Services” tab. Scroll down until you see “ZeroTierOneService”. The status column should say “Running”. If it does not, right click on the line and click “Start”

martedì 21 aprile 2020

mercoledì 11 dicembre 2019

Keil UVcrashes on a 2nd start of debug session on Emulator

This is because of the below issue. If there is a crash in the application during dll unload, windows adds an entry in the registry to ignore a future unload dll request. So if the application tries to load the dll again within the same session, then the application crashes.

Go to your Editor of System Registers, search it in the windows search bar, an there go to:

HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Layers

Then delete all the registers liked to KEIL. The End.

If Keil crash again in the future you have to repeat this procedure.


Source: https://stackoverflow.com/questions/49852219/keil-uv5-23-24-25-crashes-on-a-2nd-start-of-debug-session-on-emulator

Red Hat xrdp machine login screen freeze after writing the password

I've encountered and issue while connecting from a Windows Server 2014  to a remote machine (VM) using XRDP  through Windows Remote Desk...