Loading next game file causes crash due to Python reinitialisation #36963

Closed
opened 2013-10-05 06:58:40 +02:00 by Alex Fraser · 5 comments
Member

Category: Python

%%%On a friend's GNU/Linux computer, my game fails to load a third game file. The sequence is:

  1. Load startup file (cargo.blend) in blenderplayer. This file contains some embedded python scripts.
  2. Load menu file (assets/Menu.blend) using Game actuator. This file uses external python scripts.
  3. Load level file (assets/Outdoors.blend) using bge.logic.startGame(). The file uses the same python scripts as 2.

Steps 1 and 2 work well, but step 3 fails: some builtin Python modules can't be loaded. From the stack trace (attached), it seems that this is related to Python bug [py17408]. That issue has been fixed, but is the fix available in Blender?

Interestingly, the same build of the game works fine on my computer and that of another friend, both of which also run GNU/Linux (mine runs Ubuntu).

Versions:
Blender 2.68 r60528, downloaded from buildbot

[py17408] http://bugs.python.org/issue17408%%%

**Category**: Python %%%On a friend's GNU/Linux computer, my game fails to load a third game file. The sequence is: 1. Load startup file (cargo.blend) in blenderplayer. This file contains some embedded python scripts. 2. Load menu file (assets/Menu.blend) using Game actuator. This file uses external python scripts. 3. Load level file (assets/Outdoors.blend) using bge.logic.startGame(). The file uses the same python scripts as 2. Steps 1 and 2 work well, but step 3 fails: some builtin Python modules can't be loaded. From the stack trace (attached), it seems that this is related to Python bug [py17408]. That issue has been fixed, but is the fix available in Blender? Interestingly, the same build of the game works fine on my computer and that of another friend, both of which also run GNU/Linux (mine runs Ubuntu). Versions: Blender 2.68 r60528, downloaded from buildbot [py17408] http://bugs.python.org/issue17408%%%
Author
Member

Changed status to: 'Open'

Changed status to: 'Open'
Author
Member

%%%As discussed with ideasman on IRC, a fix has apparently been released for Python and should be available in version 3.3.2 - [x]. Currently, Blender uses 3.3.0. I will try to run the game using a build of py 3.3.2; if that works, we might ask platform maintainers to switch to the new version.

  • http://docs.python.org/release/3.3.2/whatsnew/changelog.html%%%
%%%As discussed with ideasman on IRC, a fix has apparently been released for Python and should be available in version 3.3.2 - [x]. Currently, Blender uses 3.3.0. I will try to run the game using a build of py 3.3.2; if that works, we might ask platform maintainers to switch to the new version. - [x] http://docs.python.org/release/3.3.2/whatsnew/changelog.html%%%
Author
Member

%%%OK! I built blender with python 3.3.2, and tonight Ben tested it on his computer. I can confirm that it fixes this bug. Can we move to py >= 3.3.2 for official builds?%%%

%%%OK! I built blender with python 3.3.2, and tonight Ben tested it on his computer. I can confirm that it fixes this bug. Can we move to py >= 3.3.2 for official builds?%%%
Author
Member

Changed status from 'Open' to: 'Resolved'

Changed status from 'Open' to: 'Resolved'
Author
Member

Latest build that uses new Python has been verified to work. Thanks, all!

Latest build that uses new Python has been verified to work. Thanks, all!
Sign in to join this conversation.
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset Browser
Interest
Asset Browser Project Overview
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
Interest
EEVEE & Viewport
Interest
Freestyle
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
ID Management
Interest
Images & Movies
Interest
Import Export
Interest
Line Art
Interest
Masking
Interest
Metal
Interest
Modeling
Interest
Modifiers
Interest
Motion Tracking
Interest
Nodes & Physics
Interest
OpenGL
Interest
Overlay
Interest
Overrides
Interest
Performance
Interest
Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds & Tests
Interest
Python API
Interest
Render & Cycles
Interest
Render Pipeline
Interest
Sculpt, Paint & Texture
Interest
Text Editor
Interest
Translations
Interest
Triaging
Interest
Undo
Interest
USD
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Interest
Video Sequencer
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Blender 2.8 Project
Legacy
Milestone 1: Basic, Local Asset Browser
Legacy
OpenGL Error
Meta
Good First Issue
Meta
Papercut
Meta
Retrospective
Meta
Security
Module
Animation & Rigging
Module
Core
Module
Development Management
Module
EEVEE & Viewport
Module
Grease Pencil
Module
Modeling
Module
Nodes & Physics
Module
Pipeline, Assets & IO
Module
Platforms, Builds & Tests
Module
Python API
Module
Render & Cycles
Module
Sculpt, Paint & Texture
Module
Triaging
Module
User Interface
Module
VFX & Video
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Priority
High
Priority
Low
Priority
Normal
Priority
Unbreak Now!
Status
Archived
Status
Confirmed
Status
Duplicate
Status
Needs Info from Developers
Status
Needs Information from User
Status
Needs Triage
Status
Resolved
Type
Bug
Type
Design
Type
Known Issue
Type
Patch
Type
Report
Type
To Do
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender#36963
No description provided.