Python Forum
Error: python.exe application error
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Error: python.exe application error
#1
I run my application through PyCharm.
I get an error on closing my application:
'python.exe application error the instruction at "0x6703e506" referenced memory at "0x0000000". The memory could not be read'

I get this message the past 3 - 4 days, till then no message showed up.
How can I find what causes the error?
Reply
#2
What happens if you just run it from the command terminal?  If you still get an error, please post the entire Traceback and any relevant code.
If it ain't broke, I just haven't gotten to it yet.
OS: Windows 10, openSuse 42.3, freeBSD 11, Raspian "Stretch"
Python 3.6.5, IDE: PyCharm 2018 Community Edition
Reply
#3
I run it from the cmd, but I don't get this error!
I get another one, not on closing of the application, but when I click a combo box:
   

This error was caused by some non-latin characters in my string, I removed them and it's ok, I suppose it's a matter of character encoding.
Anyway, it's irrelevant to the 'python.exe application error'.

Conclusion is, the 'python.exe application error' doesn't appear when I run it in the command line, only when I run it with PyCharm.
Reply
#4
Which version of python are you running?
If 2.7 or earlier, you must specifically tell the script that you are using UTF-8 (or any other version of UTF).
In Python 3 and above it's automatically taken into consideration.

Yet another reason to use a modern version of Python
Reply
#5
Quote:Conclusion is, the 'python.exe application error' doesn't appear when I run it in the command line, only when I run it with PyCharm.


Yes, there are certain instances when a script will not run as expected in Pycharm's default terminal.  You can switch to the command terminal (View --> Tool Windows --> Terminal), or just open a command terminal and run your script to verify whether it is Pycharm or the script that is causing the error.  It's only happened to me two, maybe three times, but it does happen.
If it ain't broke, I just haven't gotten to it yet.
OS: Windows 10, openSuse 42.3, freeBSD 11, Raspian "Stretch"
Python 3.6.5, IDE: PyCharm 2018 Community Edition
Reply
#6
(Jan-14-2017, 01:23 PM)Larz60+ Wrote: Which version of python are you running?

It's Python 3.4.


So, while it doesn't happen with the windows terminal, I 'll consider it's not a real error.
Thank you!
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  QGIS 3.34 Python Error paskiller 2 607 Nov-13-2023, 06:20 PM
Last Post: buran
  Python error on mentioned Arduino port name dghosal 5 817 Aug-22-2023, 04:54 PM
Last Post: deanhystad
  Code error from Fundamentals of Python Programming van Richard L. Halterman Heidi 12 1,602 Jul-25-2023, 10:32 PM
Last Post: Skaperen
Thumbs Down Python Error MahendraYadav 0 317 Jul-21-2023, 05:07 PM
Last Post: MahendraYadav
  Syntax error while executing the Python code in Linux DivAsh 8 1,454 Jul-19-2023, 06:27 PM
Last Post: Lahearle
  How do I properly implement restarting a multithreaded python application? MrFentazis 1 588 Jul-17-2023, 09:10 PM
Last Post: JamesSmith
Sad "PriceSystem" Python Script error to Shopify API Alphetto 0 415 Jul-04-2023, 10:03 AM
Last Post: Alphetto
  Error when running kivy on python janeik 8 1,928 Jun-16-2023, 10:58 PM
Last Post: janeik
  error python audio codiac 3 4,038 Mar-30-2023, 03:12 PM
Last Post: deanhystad
  Compiles Python code with no error but giving out no output - what's wrong with it? pythonflea 6 1,492 Mar-27-2023, 07:38 AM
Last Post: buran

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020