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
  Python Calculator Application MemeStealer 7 45,763 Apr-17-2025, 07:02 PM
Last Post: AndreyAD
  python error buraq1 3 1,724 Oct-28-2024, 10:23 PM
Last Post: bowlofred
  python error otai1 1 635 Aug-22-2024, 09:24 AM
Last Post: DeaD_EyE
  Python error - how do I fix it? gregaryb 5 1,844 Aug-14-2024, 05:26 PM
Last Post: snippsat
  Error Calculating Circle Area in Python aaronramsdale 1 1,048 Jun-04-2024, 07:57 AM
Last Post: Pedroski55
  Error on first Python launch garryp4 5 4,125 May-07-2024, 03:56 PM
Last Post: deanhystad
  QGIS 3.34 Python Error paskiller 2 2,219 Nov-13-2023, 06:20 PM
Last Post: buran
  Python error on mentioned Arduino port name dghosal 5 2,287 Aug-22-2023, 04:54 PM
Last Post: deanhystad
  Code error from Fundamentals of Python Programming van Richard L. Halterman Heidi 12 3,907 Jul-25-2023, 10:32 PM
Last Post: Skaperen
Thumbs Down Python Error MahendraYadav 0 714 Jul-21-2023, 05:07 PM
Last Post: MahendraYadav

Forum Jump:

User Panel Messages

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