Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

playerXGetImagePluginDriver osx screen size #4

Open
GoogleCodeExporter opened this issue Apr 15, 2015 · 1 comment
Open

playerXGetImagePluginDriver osx screen size #4

GoogleCodeExporter opened this issue Apr 15, 2015 · 1 comment

Comments

@GoogleCodeExporter
Copy link

What steps will reproduce the problem?
1. Changing the picture size to something larger than 400 x 400
2. Smaller image sizes do not throw an error (even when run for 10+ minutes)
3.

http://code.google.com/p/remy-robotics-tools/source/browse/trunk/playerXGetImage
PluginDriver/src/XGetImageDriver.cc#154

Throws a "Bus Error"... but when gdb is used the following is observed.

Program received signal EXC_BAD_ACCESS, Could not access memory.
Reason: KERN_PROTECTION_FAILURE at address: 0x0000000123683000
[Switching to process 32164]
0x00007fff8011d120 in sseCGSConvertXXXX8888TransposeMaskPermute ()
(gdb) bt
#0  0x00007fff8011d120 in sseCGSConvertXXXX8888TransposeMaskPermute ()
#1  0x00007fff8011cf54 in CGSConvertBGRX8888toRGBA8888 ()
#2  0x00007fff8008d910 in RGBA32_image ()
#3  0x00007fff83a606a5 in ripl_Mark ()
#4  0x00007fff83a60609 in ripl_BltImage ()
#5  0x00007fff83a5fe29 in ripc_RenderImage ()
#6  0x00007fff83a5df5c in ripc_DrawImage ()
#7  0x00007fff8007225a in CGContextDrawImage ()
#8  0x00000001232d139f in XGetImageDriver::CopyScreen (this=0x12332f090, 
screenshot=0x123506680) at src/XGetImageDriver.cc:176
#9  0x00000001232d15e1 in XGetImageDriver::Main (this=0x12332f090) at 
src/XGetImageDriver.cc:99
#10 0x00000001003a62ad in ThreadedDriver::DummyMain ()
#11 0x00007fff844a2456 in _pthread_start ()
#12 0x00007fff844a2309 in thread_start ()

  widthX
  heightY 550

Original issue reported on code.google.com by [email protected] on 27 Jun 2011 at 2:37

@GoogleCodeExporter
Copy link
Author

Error identified as insufficient memory allocated to rawData which is passed to 
CGContextDrawImage.
Unclear how the test code did not suffer the same fate, or the true definition 
of the parameters of this function.
http://code.google.com/p/remy-robotics-tools/source/detail?spec=svn59&r=59

Original comment by [email protected] on 6 Jul 2011 at 9:59

  • Changed state: Started
  • Added labels: OpSys-OSX

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant