bgelauncher embedded and standalone #46394

Closed
opened 2015-10-06 15:11:28 +02:00 by alabd · 19 comments

Hi!
Blender 2.76RC3
Arch linux
intel i915
mesa 11.0

Blender game engin, GLSL mode

When set the method to shade to solid in ed view, then I play in embedded player shows solid color and in console:

Blender Game Engine Started
Blender Game Engine Finished

embedded.png

and when I play in standalone player shows textured and in cosole:

Blender Game Engine Started
Blender Game Engine Finished
MeasureIt: Cleaning data
Info: Total files 2 | Changed 2 | Failed 0
Info: All Groups exported.
connect failed: No such file or directory
Detected GL_ARB_texture_env_combine
Detected GL_ARB_texture_cube_map
Detected GL_ARB_multitexture
Detected GL_ARB_shader_objects
Detected GL_ARB_vertex_shader
Detected GL_ARB_fragment_shader
Detected GL_ARB_vertex_program
Detected GL_ARB_depth_texture
Detected GL_EXT_separate_specular_color
Error Totblock: 1

standalone.png

Hi! Blender 2.76RC3 Arch linux intel i915 mesa 11.0 Blender game engin, GLSL mode When set the method to shade to solid in ed view, then I play in embedded player shows solid color and in console: ``` Blender Game Engine Started Blender Game Engine Finished ``` [embedded.png ](https://www.dropbox.com/s/5gardmdvk8mff39/embedded.png?dl=0) and when I play in standalone player shows textured and in cosole: ``` Blender Game Engine Started Blender Game Engine Finished MeasureIt: Cleaning data Info: Total files 2 | Changed 2 | Failed 0 Info: All Groups exported. connect failed: No such file or directory Detected GL_ARB_texture_env_combine Detected GL_ARB_texture_cube_map Detected GL_ARB_multitexture Detected GL_ARB_shader_objects Detected GL_ARB_vertex_shader Detected GL_ARB_fragment_shader Detected GL_ARB_vertex_program Detected GL_ARB_depth_texture Detected GL_EXT_separate_specular_color Error Totblock: 1 ``` [standalone.png ](https://www.dropbox.com/s/v120s10yup0nszp/standalone.png?dl=0)
Author

Changed status to: 'Open'

Changed status to: 'Open'
Author

Added subscriber: @alabd14313

Added subscriber: @alabd14313
Aaron Carlisle self-assigned this 2015-10-06 15:15:07 +02:00
Aaron Carlisle changed title from [BUG] bgelauncher embedded and standalone to bgelauncher embedded and standalone 2015-10-06 15:16:39 +02:00
Aaron Carlisle removed their assignment 2015-10-06 15:16:39 +02:00

Added subscriber: @dr.sybren

Added subscriber: @dr.sybren

I can't reproduce this on Kubuntu Linux 15.04. Please attach an example file that shows this issue.

I can't reproduce this on Kubuntu Linux 15.04. Please attach an example file that shows this issue.
Author

Blender default startup file have this issue, too. If example file is necessary I will upload...

Blender default startup file have this issue, too. If example file is necessary I will upload...
Author

Here is an example file:
buggy.blend

Here is an example file: [buggy.blend ](https://www.dropbox.com/s/rw4n13mp2mt4vnx/buggy.blend?dl=0)
Member

Added subscriber: @JorgeBernalMartinez

Added subscriber: @JorgeBernalMartinez
Member

Please, could you upload the blend file to this report?. I have no access to dropbox

Please, could you upload the blend file to this report?. I have no access to dropbox
Author

When I try to upload file to report, goes to unknown page!!!!!
http://www.楦敬⼺⼯潨敭栯浡摩敲慺䐯睯汮慯獤㈯㜮戶杵⽳畢杧⹹汢湥൤.com/

Can you access mediafire link:
buggy.blend

When I try to upload file to report, goes to unknown page!!!!! http://www.楦敬⼺⼯潨敭栯浡摩敲慺䐯睯汮慯獤㈯㜮戶杵⽳畢杧⹹汢湥൤.com/ Can you access mediafire link: [buggy.blend ](http://www.mediafire.com/download/gn3nqyc0kz3bci1/buggy.blend)

Added subscriber: @you.le

Added subscriber: @you.le

Hi. I haven't the issue in embedded player with the last Blender sources (Windows 10 64 bits). Please try with the last version from buildbot: https://builder.blender.org/download/ and tell us if this works in embedded player for you.
But I have this error message in standalone player in 2.75 and 2.76 (not in 2.74). I'll try to make a git bisect.

Hi. I haven't the issue in embedded player with the last Blender sources (Windows 10 64 bits). Please try with the last version from buildbot: https://builder.blender.org/download/ and tell us if this works in embedded player for you. But I have this error message in standalone player in 2.75 and 2.76 (not in 2.74). I'll try to make a git bisect.

$ git bisect bad
d5f1b9c222 is the first bad commit
commit d5f1b9c222
Author: Dalai Felinto dfelinto@gmail.com
Date: Mon Apr 6 10:40:12 2015 -0300

  Multi-View and Stereo 3D
  Official Documentation:
  http://www.blender.org/manual/render/workflows/multiview.html
  Implemented Features
  ====================
  Builtin Stereo Camera
* Convergence Mode
* Interocular Distance
* Convergence Distance
* Pivot Mode
  Viewport
* Cameras
* Plane
* Volume
  Compositor
* View Switch Node
* Image Node Multi-View OpenEXR support
  Sequencer
* Image/Movie Strips 'Use Multiview'
  UV/Image Editor
* Option to see Multi-View images in Stereo-3D or its individual images
* Save/Open Multi-View (OpenEXR, Stereo3D, individual views) images
  I/O
* Save/Open Multi-View (OpenEXR, Stereo3D, individual views) images
  Scene Render Views
* Ability to have an arbitrary number of views in the scene
  Missing Bits
  ============
  First rule of Multi-View bug report: If something is not working as it should *when Views is off* this is a severe bug, do mention this in the report.
  Second rule is, if something works *when Views is off* but doesn't (or crashes) when *Views is on*, this is a important bug. Do mention this in the report.
  Everything else is likely small todos, and may wait until we are sure none of the above is happening.
  Apart from that there are those known issues:
* Compositor Image Node poorly working for Multi-View OpenEXR
  (this was working prefectly before the 'Use Multi-View' functionality)
* Selecting camera from Multi-View when looking from camera is problematic
* Animation Playback (ctrl+F11) doesn't support stereo formats
* Wrong filepath when trying to play back animated scene
* Viewport Rendering doesn't support Multi-View
* Overscan Rendering
* Fullscreen display modes need to warn the user
* Object copy should be aware of views suffix
  Acknowledgments
  ===============
* Francesco Siddi for the help with the original feature specs and design
* Brecht Van Lommel for the original review of the code and design early on
* Blender Foundation for the Development Fund to support the project wrap up
  Final patch reviewers:
* Antony Riakiotakis (psy-fi)
* Campbell Barton (ideasman42)
* Julian Eisel (Severin)
* Sergey Sharybin (nazgul)
* Thomas Dinged (dingto)
  Code contributors of the original branch in github:
* Alexey Akishin
* Gabriel Caraballo

:040000 040000 746a166f4b 16a3d04355 M intern
:040000 040000 a9f7f98cb3 ba8d6f92d4 M release
:040000 040000 b1bee59d8d 5941793e64 M source

https://developer.blender.org/rBd5f1b9c2223333e03f2e4994171ad9df8c1c4f21

$ git bisect bad d5f1b9c2223333e03f2e4994171ad9df8c1c4f21 is the first bad commit commit d5f1b9c2223333e03f2e4994171ad9df8c1c4f21 Author: Dalai Felinto <dfelinto@gmail.com> Date: Mon Apr 6 10:40:12 2015 -0300 ``` Multi-View and Stereo 3D ``` ``` Official Documentation: http://www.blender.org/manual/render/workflows/multiview.html ``` ``` Implemented Features ==================== Builtin Stereo Camera ``` * Convergence Mode * Interocular Distance * Convergence Distance * Pivot Mode ``` Viewport ``` * Cameras * Plane * Volume ``` Compositor ``` * View Switch Node * Image Node Multi-View OpenEXR support ``` Sequencer ``` * Image/Movie Strips 'Use Multiview' ``` UV/Image Editor ``` * Option to see Multi-View images in Stereo-3D or its individual images * Save/Open Multi-View (OpenEXR, Stereo3D, individual views) images ``` I/O ``` * Save/Open Multi-View (OpenEXR, Stereo3D, individual views) images ``` Scene Render Views ``` * Ability to have an arbitrary number of views in the scene ``` Missing Bits ============ First rule of Multi-View bug report: If something is not working as it should *when Views is off* this is a severe bug, do mention this in the report. ``` ``` Second rule is, if something works *when Views is off* but doesn't (or crashes) when *Views is on*, this is a important bug. Do mention this in the report. ``` ``` Everything else is likely small todos, and may wait until we are sure none of the above is happening. ``` ``` Apart from that there are those known issues: ``` * Compositor Image Node poorly working for Multi-View OpenEXR ``` (this was working prefectly before the 'Use Multi-View' functionality) ``` * Selecting camera from Multi-View when looking from camera is problematic * Animation Playback (ctrl+F11) doesn't support stereo formats * Wrong filepath when trying to play back animated scene * Viewport Rendering doesn't support Multi-View * Overscan Rendering * Fullscreen display modes need to warn the user * Object copy should be aware of views suffix ``` Acknowledgments =============== ``` * Francesco Siddi for the help with the original feature specs and design * Brecht Van Lommel for the original review of the code and design early on * Blender Foundation for the Development Fund to support the project wrap up ``` Final patch reviewers: ``` * Antony Riakiotakis (psy-fi) * Campbell Barton (ideasman42) * Julian Eisel (Severin) * Sergey Sharybin (nazgul) * Thomas Dinged (dingto) ``` Code contributors of the original branch in github: ``` * Alexey Akishin * Gabriel Caraballo :040000 040000 746a166f4bda4d2b3be263e6f988e40c8cd246ca 16a3d04355906e91a4a3ad5d8c6f43c4aba40ab4 M intern :040000 040000 a9f7f98cb3bda1b7b2a3e30d37d4aa00bee1f9dc ba8d6f92d4f2e4611f0576b47d021a4510091a2d M release :040000 040000 b1bee59d8d24db7096d6bd70fcc443ef2635d43e 5941793e6439b6e9b027c0dd18d32c78a6d8dfd9 M source https://developer.blender.org/rBd5f1b9c2223333e03f2e4994171ad9df8c1c4f21
Member

Added subscriber: @Blendify

Added subscriber: @Blendify
Dalai Felinto was assigned by Jorge Bernal 2015-10-12 17:59:45 +02:00
Member

Added subscriber: @dfelinto

Added subscriber: @dfelinto
Member

Assign to @dfelinto, as it seems that it is related to his commit

Assign to @dfelinto, as it seems that it is related to his commit

I don't know if it can help but here is the new leak report from my memory leak debugger beetween previous commit and https://developer.blender.org/rBd5f1b9c2223333e03f2e4994171ad9df8c1c4f21 :

              - Block 6457 at 0x00000000492381E0: 16 bytes ----------
Leak Hash: 0x07BAAD9D, Count: 1, Total 16 bytes
Call Stack (TID 1616):
0x0000000086E3EBF0 (File and line number not available): ntdll.dll!RtlAllocateHeap
  f:\dd\vctools\crt\crtw32\heap\malloc.c (58): blenderplayer.exe!_heap_alloc_base
  f:\dd\vctools\crt\crtw32\misc\dbgheap.c (431): blenderplayer.exe!_heap_alloc_dbg_impl + 0xA bytes
  f:\dd\vctools\crt\crtw32\misc\dbgheap.c (239): blenderplayer.exe!_nh_malloc_dbg_impl + 0x22 bytes
  f:\dd\vctools\crt\crtw32\misc\dbgheap.c (302): blenderplayer.exe!_nh_malloc_dbg + 0x2A bytes
  f:\dd\vctools\crt\crtw32\misc\dbgmalloc.c (56): blenderplayer.exe!malloc + 0x21 bytes
  d:\compilation\blender\blender\intern\guardedalloc\intern\mallocn_lockfree_impl.c (307): blenderplayer.exe!MEM_lockfree_mallocN + 0x11 bytes
  d:\compilation\blender\blender\source\blender\blenloader\intern\readfile.c (1646): blenderplayer.exe!read_struct + 0x17 bytes
  d:\compilation\blender\blender\source\blender\blenloader\intern\readfile.c (7513): blenderplayer.exe!read_data_into_oldnewmap + 0x14 bytes
  d:\compilation\blender\blender\source\blender\blenloader\intern\readfile.c (7572): blenderplayer.exe!read_libblock + 0x14 bytes
  d:\compilation\blender\blender\source\blender\blenloader\intern\readfile.c (8015): blenderplayer.exe!blo_read_file_internal + 0x26 bytes
  d:\compilation\blender\blender\source\blender\blenloader\intern\readblenentry.c (265): blenderplayer.exe!BLO_read_from_file + 0xF bytes
  d:\compilation\blender\blender\source\gameengine\gameplayer\ghost\gpg_ghost.cpp (349): blenderplayer.exe!load_game_data + 0xF bytes
  d:\compilation\blender\blender\source\gameengine\gameplayer\ghost\gpg_ghost.cpp (353): blenderplayer.exe!load_game_data + 0xF bytes
  d:\compilation\blender\blender\source\gameengine\gameplayer\ghost\gpg_ghost.cpp (884): blenderplayer.exe!main + 0x4B bytes
  f:\dd\vctools\crt\crtw32\startup\crt0.c (255): blenderplayer.exe!__tmainCRTStartup + 0x19 bytes
  f:\dd\vctools\crt\crtw32\startup\crt0.c (165): blenderplayer.exe!mainCRTStartup
0x00000000868F2D92 (File and line number not available): KERNEL32.DLL!BaseThreadInitThunk + 0x22 bytes
0x0000000086E19F64 (File and line number not available): ntdll.dll!RtlUserThreadStart + 0x34 bytes
Data:
08 00 00 00    00 00 00 00    00 00 00 00    00 00 00 00     ........ ........

There's something in load_game_data that is malloced and not freed... This leak is not here is the previous commit. Sorry if what I say is not clear. I've just begin to use a memory leak debugger... The lines represent call stack that have lead to the leak. Is it possible that the problem comes from changes in readfile.c?

I don't know if it can help but here is the new leak report from my memory leak debugger beetween previous commit and https://developer.blender.org/rBd5f1b9c2223333e03f2e4994171ad9df8c1c4f21 : - Block 6457 at 0x00000000492381E0: 16 bytes ---------- ``` Leak Hash: 0x07BAAD9D, Count: 1, Total 16 bytes Call Stack (TID 1616): ``` 0x0000000086E3EBF0 (File and line number not available): ntdll.dll!RtlAllocateHeap ``` f:\dd\vctools\crt\crtw32\heap\malloc.c (58): blenderplayer.exe!_heap_alloc_base f:\dd\vctools\crt\crtw32\misc\dbgheap.c (431): blenderplayer.exe!_heap_alloc_dbg_impl + 0xA bytes f:\dd\vctools\crt\crtw32\misc\dbgheap.c (239): blenderplayer.exe!_nh_malloc_dbg_impl + 0x22 bytes f:\dd\vctools\crt\crtw32\misc\dbgheap.c (302): blenderplayer.exe!_nh_malloc_dbg + 0x2A bytes f:\dd\vctools\crt\crtw32\misc\dbgmalloc.c (56): blenderplayer.exe!malloc + 0x21 bytes d:\compilation\blender\blender\intern\guardedalloc\intern\mallocn_lockfree_impl.c (307): blenderplayer.exe!MEM_lockfree_mallocN + 0x11 bytes d:\compilation\blender\blender\source\blender\blenloader\intern\readfile.c (1646): blenderplayer.exe!read_struct + 0x17 bytes d:\compilation\blender\blender\source\blender\blenloader\intern\readfile.c (7513): blenderplayer.exe!read_data_into_oldnewmap + 0x14 bytes d:\compilation\blender\blender\source\blender\blenloader\intern\readfile.c (7572): blenderplayer.exe!read_libblock + 0x14 bytes d:\compilation\blender\blender\source\blender\blenloader\intern\readfile.c (8015): blenderplayer.exe!blo_read_file_internal + 0x26 bytes d:\compilation\blender\blender\source\blender\blenloader\intern\readblenentry.c (265): blenderplayer.exe!BLO_read_from_file + 0xF bytes d:\compilation\blender\blender\source\gameengine\gameplayer\ghost\gpg_ghost.cpp (349): blenderplayer.exe!load_game_data + 0xF bytes d:\compilation\blender\blender\source\gameengine\gameplayer\ghost\gpg_ghost.cpp (353): blenderplayer.exe!load_game_data + 0xF bytes d:\compilation\blender\blender\source\gameengine\gameplayer\ghost\gpg_ghost.cpp (884): blenderplayer.exe!main + 0x4B bytes f:\dd\vctools\crt\crtw32\startup\crt0.c (255): blenderplayer.exe!__tmainCRTStartup + 0x19 bytes f:\dd\vctools\crt\crtw32\startup\crt0.c (165): blenderplayer.exe!mainCRTStartup ``` 0x00000000868F2D92 (File and line number not available): KERNEL32.DLL!BaseThreadInitThunk + 0x22 bytes 0x0000000086E19F64 (File and line number not available): ntdll.dll!RtlUserThreadStart + 0x34 bytes ``` Data: ``` 08 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ........ ........ There's something in load_game_data that is malloced and not freed... This leak is not here is the previous commit. Sorry if what I say is not clear. I've just begin to use a memory leak debugger... The lines represent call stack that have lead to the leak. Is it possible that the problem comes from changes in readfile.c?

I think I got it: if you replace win->stereo3d_format = newdataadr(fd, win->stereo3d_format); with win->stereo3d_format = 0, the error message disappears. @dfelinto: What do you think about it?

@JorgeBernalMartinez: The message totblock: 1 should not appear when we close the embedded player? It doesnt call the same functions to read files in readfiles.c? ... I'll check

I think I got it: if you replace win->stereo3d_format = newdataadr(fd, win->stereo3d_format); with win->stereo3d_format = 0, the error message disappears. @dfelinto: What do you think about it? @JorgeBernalMartinez: The message totblock: 1 should not appear when we close the embedded player? It doesnt call the same functions to read files in readfiles.c? ... I'll check
Member

Changed status from 'Open' to: 'Archived'

Changed status from 'Open' to: 'Archived'
Member

This task is being closed because the BGE has been removed in Blender 2.8.

This task is being closed because the BGE has been removed in Blender 2.8.
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
5 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#46394
No description provided.