Blender: Bug with opening templates #47022

Closed
opened 2015-12-20 10:20:48 +01:00 by Ulysse Martin · 7 comments

System Information
Windows 10 GTX 970

Blender Version
Broken: Last Trunk Version
Worked: 2.76

Short description of error
Problem to open some templates since this commit: https://developer.blender.org/rBde0119d087acb4e38488d6f472fb7d4f0de26c17

Exact steps for others to reproduce the error
Open Blender, select game engine. In the script area, select templates > templates python, try to open some templates. Some of them can't be opened. I' didn't look at the differential, and I don't know if the bug is only on Windows (I remarked that in the ancien code, there was a comment concerning Windows, I don't know if it is relevant).

I build blender with MSVC 2013 update 5, and I make 64 bits versions. I hope you see where the problem could comes from. Good bye :) And thanks for your work Campbell Barton

**System Information** Windows 10 GTX 970 **Blender Version** Broken: Last Trunk Version Worked: 2.76 **Short description of error** Problem to open some templates since this commit: https://developer.blender.org/rBde0119d087acb4e38488d6f472fb7d4f0de26c17 **Exact steps for others to reproduce the error** Open Blender, select game engine. In the script area, select templates > templates python, try to open some templates. Some of them can't be opened. I' didn't look at the differential, and I don't know if the bug is only on Windows (I remarked that in the ancien code, there was a comment concerning Windows, I don't know if it is relevant). I build blender with MSVC 2013 update 5, and I make 64 bits versions. I hope you see where the problem could comes from. Good bye :) And thanks for your work Campbell Barton
Author

Changed status to: 'Open'

Changed status to: 'Open'
Campbell Barton was assigned by Ulysse Martin 2015-12-20 10:20:48 +01:00
Author

Added subscriber: @you.le

Added subscriber: @you.le
Member

Added subscriber: @LazyDodo

Added subscriber: @LazyDodo
Member

fdcec62dad:/source/blender/blenlib/intern/storage.c#l292

filemode is "r" this strips out some cr/lf characters on windows

making the test at

fdcec62dad:/source/blender/blenlib/intern/storage.c#l308

fail.

if you change the filemode to "rb" things will be allright

https://git.blender.org/gitweb/gitweb.cgi/blender.git/blob/fdcec62dada7042e9c720086744ac32abf957569:/source/blender/blenlib/intern/storage.c#l292 filemode is "r" this strips out some cr/lf characters on windows making the test at https://git.blender.org/gitweb/gitweb.cgi/blender.git/blob/fdcec62dada7042e9c720086744ac32abf957569:/source/blender/blenlib/intern/storage.c#l308 fail. if you change the filemode to "rb" things will be allright

This issue was referenced by 5fef3c3326

This issue was referenced by 5fef3c3326dabbe5330647208212ce7ceb311168

Changed status from 'Open' to: 'Resolved'

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

Thanks very much LazyDodo and Campbell Barton :)

Thanks very much LazyDodo and Campbell Barton :)
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
4 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#47022
No description provided.