Crash when instantiating a Model class
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 25/100
Research direction
Reproduce the minimal Model() example on Windows 10 with Python 3.12.0, python-mip 1.14.2, and Spyder, then trace the Model initialization path to identify where the access violation occurs. Done means creating a Model with no parameters completes without a fatal exception, with a regression test covering the reported case.
Written by the indexing model from the issue text.
Description
Describe the bug
I've just installed python-mip and instantiating a Model class with no parameter causes a crash.
To Reproduce
Executing this code:
from mip import Model
m = Model()
produces this error and triggers a python kernel restart:
Windows fatal exception: access violation
Expected behavior
Instantiating a Model class should not produce any error.
Desktop (please complete the following information):
- Operating System, version: Windows 10, version 22H2
- Python version: 3.12.0
- Python-MIP version (we recommend you to test with the latest version): 1.14.2
Additional context
Executed within a Spyder IDE.
- Dominant language
- Linear Programming
- Stars
- 601
- Forks
- 108
- PR merge metrics
- No merged PRs in 30d
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from coin-or/python-mip
-
Difficulty 3/5 1-2 days Newbie friendliness 45/100
coin-or/python-mip#426 ·
-
Difficulty 4/5 3-5 days Newbie friendliness 45/100
coin-or/python-mip#425 · 1 comment ·
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
coin-or/python-mip#423 · 4 comments · 3 reactions ·
-
Difficulty 3/5 1-2 days Newbie friendliness 55/100
coin-or/python-mip#422 · 1 comment ·
-
Difficulty 4/5 3-5 days Newbie friendliness 45/100
coin-or/python-mip#420 · 4 comments ·
All issues in coin-or/python-mip
Similar issues
-
kaliscan.com OpenN: AdGuard for iOS P3: Medium T: Ads
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
AdguardTeam/AdguardFilters#242501 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
-
[BUG] createTool tools cannot be registered with Mastra when exactOptionalPropertyTypes is enabled Opencustomer-eng status: needs triage
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
-
add-toolnames MCP Toolnames Toolnames checkup
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
rajbos/ai-engineering-fluency#2190 · 3 comments ·
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
gajus/eslint-plugin-jsdoc#1776 · 1 reaction ·