{"action":"created","issue":{"url":"https://api.github.com/repos/hecomi/uDesktopDuplication/issues/3","repository_url":"https://api.github.com/repos/hecomi/uDesktopDuplication","labels_url":"https://api.github.com/repos/hecomi/uDesktopDuplication/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/hecomi/uDesktopDuplication/issues/3/comments","events_url":"https://api.github.com/repos/hecomi/uDesktopDuplication/issues/3/events","html_url":"https://github.com/hecomi/uDesktopDuplication/issues/3","id":191778140,"number":3,"title":"Tripple spanned portrait monitors: Monitor::Render() => Texture sizes are defferent","user":{"login":"flanagak","id":23747969,"avatar_url":"https://avatars.githubusercontent.com/u/23747969?v=3","gravatar_id":"","url":"https://api.github.com/users/flanagak","html_url":"https://github.com/flanagak","followers_url":"https://api.github.com/users/flanagak/followers","following_url":"https://api.github.com/users/flanagak/following{/other_user}","gists_url":"https://api.github.com/users/flanagak/gists{/gist_id}","starred_url":"https://api.github.com/users/flanagak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/flanagak/subscriptions","organizations_url":"https://api.github.com/users/flanagak/orgs","repos_url":"https://api.github.com/users/flanagak/repos","events_url":"https://api.github.com/users/flanagak/events{/privacy}","received_events_url":"https://api.github.com/users/flanagak/received_events","type":"User","site_admin":false},"labels":[{"id":469807624,"url":"https://api.github.com/repos/hecomi/uDesktopDuplication/labels/bug","name":"bug","color":"ee0701","default":true}],"state":"open","locked":false,"assignee":{"login":"hecomi","id":493433,"avatar_url":"https://avatars.githubusercontent.com/u/493433?v=3","gravatar_id":"","url":"https://api.github.com/users/hecomi","html_url":"https://github.com/hecomi","followers_url":"https://api.github.com/users/hecomi/followers","following_url":"https://api.github.com/users/hecomi/following{/other_user}","gists_url":"https://api.github.com/users/hecomi/gists{/gist_id}","starred_url":"https://api.github.com/users/hecomi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hecomi/subscriptions","organizations_url":"https://api.github.com/users/hecomi/orgs","repos_url":"https://api.github.com/users/hecomi/repos","events_url":"https://api.github.com/users/hecomi/events{/privacy}","received_events_url":"https://api.github.com/users/hecomi/received_events","type":"User","site_admin":false},"assignees":[{"login":"hecomi","id":493433,"avatar_url":"https://avatars.githubusercontent.com/u/493433?v=3","gravatar_id":"","url":"https://api.github.com/users/hecomi","html_url":"https://github.com/hecomi","followers_url":"https://api.github.com/users/hecomi/followers","following_url":"https://api.github.com/users/hecomi/following{/other_user}","gists_url":"https://api.github.com/users/hecomi/gists{/gist_id}","starred_url":"https://api.github.com/users/hecomi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hecomi/subscriptions","organizations_url":"https://api.github.com/users/hecomi/orgs","repos_url":"https://api.github.com/users/hecomi/repos","events_url":"https://api.github.com/users/hecomi/events{/privacy}","received_events_url":"https://api.github.com/users/hecomi/received_events","type":"User","site_admin":false}],"milestone":null,"comments":5,"created_at":"2016-11-26T00:34:08Z","updated_at":"2016-11-26T15:34:15Z","closed_at":null,"body":"I have a triple monitor setup with all 3 in portrait orientation.\r\nI am using a GTX 1070 and I have these 3 monitors spanned so it appears in Windows as a single 3420x1920 monitor.\r\n\r\nIt appears that in the Monitor::Render() method the _resource_ object is not taking into account monitor orientation so the surface returned from AquireNextFrame is portrait and does not match the _unityTexture_ height and width.\r\n\r\n\r\nHere is the uDesktopDuplication.log output:\r\n[uDD::Log][2016-11-25 16:07:05] Start\r\n[uDD::Log][2016-11-25 16:07:05] Monitor::Initialize() => OK.\r\n[uDD::Log][2016-11-25 16:07:05]     ID    : 0\r\n[uDD::Log][2016-11-25 16:07:05]     Size  : (3240, 1920)\r\n[uDD::Log][2016-11-25 16:07:05]     DPI   : (88, 88)\r\n[uDD::Err][2016-11-25 16:07:05] Monitor::Render() => Texture sizes are defferent.\r\n[uDD::Err][2016-11-25 16:07:05]     Source : (1920, 3240)\r\n[uDD::Err][2016-11-25 16:07:05]     Dest   : (3240, 1920)\r\n[uDD::Err][2016-11-25 16:07:05] Cursor::UpdateTexture() => surface->Map() failed.\r\n[uDD::Log][2016-11-25 16:07:29] Stop"},"comment":{"url":"https://api.github.com/repos/hecomi/uDesktopDuplication/issues/comments/263069522","html_url":"https://github.com/hecomi/uDesktopDuplication/issues/3#issuecomment-263069522","issue_url":"https://api.github.com/repos/hecomi/uDesktopDuplication/issues/3","id":263069522,"user":{"login":"flanagak","id":23747969,"avatar_url":"https://avatars.githubusercontent.com/u/23747969?v=3","gravatar_id":"","url":"https://api.github.com/users/flanagak","html_url":"https://github.com/flanagak","followers_url":"https://api.github.com/users/flanagak/followers","following_url":"https://api.github.com/users/flanagak/following{/other_user}","gists_url":"https://api.github.com/users/flanagak/gists{/gist_id}","starred_url":"https://api.github.com/users/flanagak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/flanagak/subscriptions","organizations_url":"https://api.github.com/users/flanagak/orgs","repos_url":"https://api.github.com/users/flanagak/repos","events_url":"https://api.github.com/users/flanagak/events{/privacy}","received_events_url":"https://api.github.com/users/flanagak/received_events","type":"User","site_admin":false},"created_at":"2016-11-26T15:34:15Z","updated_at":"2016-11-26T15:34:15Z","body":"Tested with the compiled exe in the link and I get an \"Access Violation\" and it crashes.\r\n\r\n_Unity Player [version: Unity 5.4.2f1_94e3a60ee258]\r\n\r\nuDesktopDuplication.dll caused an Access Violation (0xc0000005)\r\n  in module uDesktopDuplication.dll at 0033:c20591ff.\r\n\r\nError occurred at 2016-11-26_070854.\r\nC:\\Users\\flana\\Downloads\\hecomi-udesktopduplication-x86_64-56-uDesktopDuplication\\uDesktopDuplication.exe, run by flana.\r\n27% memory in use.\r\n8172 MB physical memory [5920 MB free].\r\n10156 MB paging file [7073 MB free].\r\n134217728 MB user address space [134216998 MB free].\r\nRead from location 00000030 caused an access violation.\r\n\r\nContext:\r\nRDI:    0x01284ac0  RSI: 0x00000000  RAX:   0x00000000\r\nRBX:    0x10d79900  RCX: 0x10d425c0  RDX:   0x0bd5ebc8\r\nRIP:    0xc20591ff  RBP: 0x0bd5ea10  SegCs: 0x00000033\r\nEFlags: 0x00010206  RSP: 0x0bd5e900  SegSs: 0x0000002b\r\nR8:    0x0bd5ea18  R9: 0x0e399550  R10:   0x00000000\r\nR11:    0x0bd5ea80  R12: 0x10d425c0  R13:   0x06632a00\r\nR14:    0x00000000  R15: 0x00000000_\r\n\r\n\r\nI then pulled the latest source and tried starting up Unity with the \"Multiple Monitor Roudly\" scene and much like the exe I do see an initial image of my screen now, but it never updates.\r\n\r\nWhen running from unity the uDesktopDuplication.log is filled with the following:\r\n_[uDD::Log][2016-11-26 07:20:00] Start\r\n[uDD::Log][2016-11-26 07:20:00] Monitor::Initialize() => OK.\r\n[uDD::Log][2016-11-26 07:20:00]     ID    : 0\r\n[uDD::Log][2016-11-26 07:20:00]     Size  : (3240, 1920)\r\n[uDD::Log][2016-11-26 07:20:00]     DPI   : (88, 88)\r\n[uDD::Err][2016-11-26 07:20:45] Cursor::UpdateTexture() => box is out of area.\r\n[uDD::Err][2016-11-26 07:20:45]     (1890, 2922) ~ (1922, 2954) > (1920, 3240)\r\n[uDD::Err][2016-11-26 07:20:45] Cursor::UpdateTexture() => box is out of area.\r\n[uDD::Err][2016-11-26 07:20:45]     (1919, 2919) ~ (1951, 2951) > (1920, 3240)\r\n[uDD::Err][2016-11-26 07:20:45] Cursor::UpdateTexture() => box is out of area.\r\n[uDD::Err][2016-11-26 07:20:45]     (1919, 2923) ~ (1951, 2955) > (1920, 3240)\r\n[uDD::Err][2016-11-26 07:20:45] Cursor::UpdateTexture() => box is out of area.\r\n[uDD::Err][2016-11-26 07:20:45]     (1919, 2924) ~ (1951, 2956) > (1920, 3240)_\r\n\r\n"}}
{"actor":{"display_login":"flanagak"}}