dictation-toolbox / natlink

Natlink provides the interface between Dragon and python
Other
25 stars 17 forks source link

Run-Time Check Failure #2 - Stack around the variable 'node' was corrupted. #52

Closed jeffcutsinger closed 3 years ago

jeffcutsinger commented 3 years ago

I recently upgraded my natlink and its dependencies, and now whenever I issue a command with caster, I get this messagebox:

---------------------------
Microsoft Visual C++ Runtime Library
---------------------------
Debug Error!

Program: C:\Python38-32\Lib\site-packages\natlinkcore\natlink.pyd
Module: C:\Python38-32\Lib\site-packages\natlinkcore\natlink.pyd
File: 

Run-Time Check Failure #2 - Stack around the variable 'node' was corrupted.

(Press Retry to debug the application)

---------------------------
Abort   Retry   Ignore   
---------------------------

I tried downgrading natlink (but not its dependencies), and the behavior continues. I tried 0.0.0.1.9-0.0.0.1.2, with the exception of 0.0.0.1.3.

As to the versions of natlink's dependencies:

C:\WINDOWS\system32>pip install --no-cache --index-url https://test.pypi.org/simple/ --extra-index-url https://pypi.org/simple natlink
Looking in indexes: https://test.pypi.org/simple/, https://pypi.org/simple
Requirement already satisfied: natlink in c:\python38-32\lib\site-packages (0.0.0.1.9)
Requirement already satisfied: wxpython==4.0.7 in c:\python38-32\lib\site-packages (from natlink) (4.0.7)
Requirement already satisfied: pywin32>=300 in c:\python38-32\lib\site-packages (from natlink) (301)
Requirement already satisfied: debugpy in c:\python38-32\lib\site-packages (from natlink) (1.3.0)
Requirement already satisfied: pillow in c:\python38-32\lib\site-packages (from wxpython==4.0.7->natlink) (8.3.1)
Requirement already satisfied: numpy in c:\python38-32\lib\site-packages (from wxpython==4.0.7->natlink) (1.21.1)
Requirement already satisfied: six in c:\python38-32\lib\site-packages (from wxpython==4.0.7->natlink) (1.16.0)

My setup had been working beforehand, with the exception of some occasional glitches which I'd hoped an upgrade would alleviate. I'm using Dragon Professional Individual 15.

jeffcutsinger commented 3 years ago

Remembered I had a working installation on another machine. I pulled its list of versions and replicated them, and now it's working. Here's what I ended up with:

Requirement already satisfied: natlink in c:\python38-32\lib\site-packages (0.0.0.1.8)
Requirement already satisfied: vocola2 in c:\python38-32\lib\site-packages (0.1.0.5)
Requirement already satisfied: unimacro in c:\python38-32\lib\site-packages (0.0.3.8)
Requirement already satisfied: pywin32>=300 in c:\python38-32\lib\site-packages (from natlink) (301)
Requirement already satisfied: debugpy in c:\python38-32\lib\site-packages (from natlink) (1.3.0)
Requirement already satisfied: wxpython==4.0.7 in c:\python38-32\lib\site-packages (from natlink) (4.0.7)
Requirement already satisfied: six in c:\python38-32\lib\site-packages (from wxpython==4.0.7->natlink) (1.16.0)
Requirement already satisfied: pillow in c:\python38-32\lib\site-packages (from wxpython==4.0.7->natlink) (8.2.0)
Requirement already satisfied: numpy in c:\python38-32\lib\site-packages (from wxpython==4.0.7->natlink) (1.20.3)

Feel free to close this if you want, otherwise I'll keep an eye on this if there's something you want me to investigate.

dougransom commented 3 years ago

You might have experienced this if you were working from the head of the makeflitinstall branch - I put a bad natlink.pyd in there around this date, before I realized it was bad. While I think I fixed it, the current one at the head of makeflitinstall has only been briefly tested on my machine. Working with Quintijn to see if it is good.

For the time being install the one from testpypi.

From: Jeff Cutsinger @.> Sent: July 20, 2021 5:02 AM To: dictation-toolbox/natlink @.> Cc: Subscribed @.***> Subject: [dictation-toolbox/natlink] Run-Time Check Failure #2 - Stack around the variable 'node' was corrupted. (#52)

I recently upgraded my natlink and its dependencies, and now whenever I issue a command with caster, I get this messagebox:


Microsoft Visual C++ Runtime Library


Debug Error!

Program: C:\Python38-32\Lib\site-packages\natlinkcore\natlink.pyd

Module: C:\Python38-32\Lib\site-packages\natlinkcore\natlink.pyd

File:

Run-Time Check Failure #2 - Stack around the variable 'node' was corrupted.

(Press Retry to debug the application)


Abort Retry Ignore


I tried downgrading natlink (but not its dependencies), and the behavior continues. I tried 0.0.0.1.9-0.0.0.1.2, with the exception of 0.0.0.1.3.

As to the versions of natlink's dependencies:

C:\WINDOWS\system32>pip install --no-cache --index-url https://test.pypi.org/simple/ --extra-index-url https://pypi.org/simple natlink

Looking in indexes: https://test.pypi.org/simple/, https://pypi.org/simple

Requirement already satisfied: natlink in c:\python38-32\lib\site-packages (0.0.0.1.9)

Requirement already satisfied: wxpython==4.0.7 in c:\python38-32\lib\site-packages (from natlink) (4.0.7)

Requirement already satisfied: pywin32>=300 in c:\python38-32\lib\site-packages (from natlink) (301)

Requirement already satisfied: debugpy in c:\python38-32\lib\site-packages (from natlink) (1.3.0)

Requirement already satisfied: pillow in c:\python38-32\lib\site-packages (from wxpython==4.0.7->natlink) (8.3.1)

Requirement already satisfied: numpy in c:\python38-32\lib\site-packages (from wxpython==4.0.7->natlink) (1.21.1)

Requirement already satisfied: six in c:\python38-32\lib\site-packages (from wxpython==4.0.7->natlink) (1.16.0)

My setup had been working beforehand, with the exception of some occasional glitches which I'd hoped an upgrade would alleviate. I'm using Dragon Professional Individual 15.

- You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHubhttps://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fdictation-toolbox%2Fnatlink%2Fissues%2F52&data=04%7C01%7C%7Ceafe9e8be03a415b18a008d94b762ee0%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637623793224988833%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=R5sUk%2FF%2F6WEsxyCLGC%2BPUR6t5aBT0DqkW5m3FDh0TVo%3D&reserved=0, or unsubscribehttps://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAA262UQ4OO6UBBGY73R47BDTYVQTPANCNFSM5AVU45JA&data=04%7C01%7C%7Ceafe9e8be03a415b18a008d94b762ee0%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637623793224998788%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=QL8Z5yv1YeKAmn06wYzxsufXBtKpnfyll5rg%2BCRFHg8%3D&reserved=0.

jeffcutsinger commented 3 years ago

All of this was done through pip and testpypi. I've never used flit.

dougransom commented 3 years ago

Jeff, i think you have something working? The fix for this i think is going to be the next natlinkcore to install via PIP. It may be a weeks before that happens.

quintijn commented 3 years ago

Jeff, maybe easiest to do a pip install natlink (after a pip uninstall natlink). You should get version 5.0.0 of natlink.

Configure via natlinkconfig_gui.

Run these in cmd shell. The program natlinkconfig_gui.exe is in (\python38-32)\Scripts directory, but should run from everywhere.

We will work on install/configure instructions ASAP

dougransom commented 3 years ago

fixed in Natlink version: 5.1.0