Hi,
Does anyone get this error?
I could make it work with the previous version of PAD, but when I upgraded PAD to the new version and I could not make it works.
When I am debugging, it just stopped at the step Create Tesseract OCR engine, and it does not say any errors. However, when running the process without debugging, I got the exception in below.
Does anyone have any ideas?
Message = A user callback threw an exception. Check the exception stack and inner exception to determine the callback that failed.
Error = System.Runtime.CallbackException
Full text = System.Runtime.CallbackException: A user callback threw an exception. Check the exception stack and inner exception to determine the callback that failed. ---> System.NullReferenceException: Object reference not set to an instance of an object.
at WinAutomation.Console.ExecutionLogs.Services.ExecutionLogManager.FinalizeExecutionLogs(ProcessCompletedEventArgs eventArgs)
at WinAutomation.Console.Application.Process.Runner.ProcessRunnerState.ProcessManager_ProcessCompleted(Object sender, ProcessCompletedEventArgs e)
at WinAutomation.Bot.ProcessManagement.Runner.ProcessesRunner.AddInstanceToCompleted(ProcessInstance instance, ProcessCompletedReason reason, Exception exception)
at WinAutomation.Bot.ProcessManagement.Runner.ProcessesRunner.Instance_Crashed(Object sender, EventArgs e)
at System.EventHandler.Invoke(Object sender, EventArgs e)
at System.ServiceModel.Channels.CommunicationObject.OnFaulted()
--- End of inner exception stack trace ---
at System.ServiceModel.Channels.CommunicationObject.OnFaulted()
at System.ServiceModel.Channels.CommunicationObject.Fault()
at System.ServiceModel.Channels.ServiceChannel.OnInnerChannelFaulted(Object sender, EventArgs e)
at System.EventHandler.Invoke(Object sender, EventArgs e)
at System.ServiceModel.Channels.CommunicationObject.OnFaulted()
at System.ServiceModel.Channels.TransportDuplexSessionChannel.OnFaulted()
at System.ServiceModel.Channels.CommunicationObject.Fault()
at System.ServiceModel.Channels.TransportDuplexSessionChannel.EndReceive(IAsyncResult result)
at System.ServiceModel.Channels.TransportDuplexSessionChannel.TryReceiveAsyncResult.OnReceive(IAsyncResult result)
at System.Runtime.Fx.AsyncThunk.UnhandledExceptionFrame(IAsyncResult result)
at System.Runtime.AsyncResult.Complete(Boolean completedSynchronously)
at System.ServiceModel.Channels.SynchronizedMessageSource.ReceiveAsyncResult.OnReceiveComplete(Object state)
at System.ServiceModel.Channels.SessionConnectionReader.OnAsyncReadComplete(Object state)
at System.Runtime.Fx.AsyncThunk.UnhandledExceptionFrame(IAsyncResult result)
at System.Net.LazyAsyncResult.Complete(IntPtr userToken)
at System.Net.LazyAsyncResult.ProtectedInvokeCallback(Object result, IntPtr userToken)
at System.Net.AsyncProtocolRequest.CompleteWithError(Exception e)
at System.Net.FixedSizeReader.ReadCallback(IAsyncResult transportResult)
at System.Runtime.AsyncResult.Complete(Boolean completedSynchronously)
at System.ServiceModel.Channels.ConnectionStream.IOAsyncResult.OnAsyncIOComplete(Object state)
at System.ServiceModel.Channels.PipeConnection.OnAsyncReadComplete(Boolean haveResult, Int32 error, Int32 numBytes)
at System.ServiceModel.Channels.OverlappedContext.CompleteCallback(UInt32 error, UInt32 numBytes, NativeOverlapped* nativeOverlapped)
at System.Runtime.Fx.IOCompletionThunk.UnhandledExceptionFrame(UInt32 error, UInt32 bytesRead, NativeOverlapped* nativeOverlapped)
at System.Threading._IOCompletionCallback.PerformIOCompletionCallback(UInt32 errorCode, UInt32 numBytes, NativeOverlapped* pOVERLAP)
Thanks in advance!
Mike
Hi @miketran13
I have check the "Create Tesseract OCR engine" action in versions "2.4.78.21036" and "2.2.20339.22608" and its working fine. It might be some intermittent issue
Version 2.6.00158.21069 (the free version, not sure if it makes a difference):
"Create Tesseract OCR engine" yields the following error message (none when run from the editor):
Both 32-bit and 64-bit tesseract41.dll files are present in their respective folders:
C:\Program Files (x86)\Power Automate Desktop\x86\tesseract41.dll
C:\Program Files (x86)\Power Automate Desktop\x64\tesseract41.dll
Not many posts on Tesseract - is anyone else having issues?
Thanks!
Regards,
burque505
I'm having the exact same issue.
@CR0826 Which issue?
Checked with PAD version 2.6.00158.21069 and Tesseract DLLs version 4.1.0.0, works fine, both with free/personal and paid/work account.
The issue right above that post, one would think.
Doesn't work for me.
Doesn't work for some others apparently.
PAD version 2.6.00158.21069 (free) and Tesseract DLLs version 4.1.0.0. Windows 10 Pro 10.0.19041 Build 19041.
Only action in the flow:
What does the Actions.log say?
Curiously enough, all actions.log on my machine are zero bytes starting at 21.05 GMT today. Reviewing the history of all actions.log files for the last month, I notice several periods of more than an hour where these files are also zero bytes. Flows, however, are running as normal.
EDIT: I did not know this, and don't know if it's a bug or a feature, but at least for me a failed action does not get logged. So the first action failing means - no log. This appears to be the cause of the other zero-byte log files, much to my chagrin. 🙄
{"name":"Display message","systemActionName":"ShowMessageDialog","systemModuleName":"Display","localizedModuleName":"Message boxes","inputs":{"closeAutomatically":{"localizedName":"Close message box automatically","value":"False","variableName":""},"message":{"localizedName":"Message to display","value":"Tesseract still not working","variableName":""},"icon":{"localizedName":"Message box icon","value":"None","variableName":""},"buttons":{"localizedName":"Message box buttons","value":"OK","variableName":""},"defaultButton":{"localizedName":"Default button","value":"Button1","variableName":""},"isTopMost":{"localizedName":"Keep message box always on top","value":"False","variableName":""}},"outputs":{"buttonPressed":{"localizedName":"Button pressed","value":"OK","variableName":"ButtonPressed"}},"startTime":"2021-04-13T21:12:06.1094804Z","index":1,"functionName":"main","insideErrorHandling":false,"endTime":"2021-04-13T21:12:08.4100256Z","status":"Succeeded"}
This flow now looks like this:
And the error message toast notification reports line 2 (i.e. Tesseract engine) fails, but there is no indication of this in the log.
There seams to be something wrong with your PAD installation or Windows environment.
If i set the image multiplier to 0, I can reproduce an error with "Create Tesseract OCR engine" being the first action.
The log file is created with a detailed error message.
Thanks for checking. Quit odd. I believe I will wait until the next update to see if that clears it up.
EDIT: I went ahead and reinstalled PAD. Same error with Tesseract. Taking a clue from @fraenK, I first created a MODI engine with an image width multiplier of 0 to force an error to check failure logging. Unlike with the properly configured Tesseract engine, the failure is logged.
{"name":"Display message","systemActionName":"ShowMessageDialog","systemModuleName":"Display","localizedModuleName":"Message boxes","inputs":{"closeAutomatically":{"localizedName":"Close message box automatically","value":"False","variableName":""},"message":{"localizedName":"Message to display","value":"Tesseract still not working","variableName":""},"icon":{"localizedName":"Message box icon","value":"None","variableName":""},"buttons":{"localizedName":"Message box buttons","value":"OK","variableName":""},"defaultButton":{"localizedName":"Default button","value":"Button1","variableName":""},"isTopMost":{"localizedName":"Keep message box always on top","value":"False","variableName":""}},"outputs":{"buttonPressed":{"localizedName":"Button pressed","value":"OK","variableName":"ButtonPressed"}},"startTime":"2021-04-13T22:17:18.986991Z","index":1,"functionName":"main","insideErrorHandling":false,"endTime":"2021-04-13T22:17:21.3506912Z","status":"Succeeded"}
{"name":"Create MODI OCR engine","systemActionName":"CreateMODIEngine","systemModuleName":"OCR","localizedModuleName":"OCR","inputs":{"language":{"localizedName":"MODI language","value":"English","variableName":""},"imageWidthMultiplier":{"localizedName":"Image width multiplier","value":"0","variableName":""},"imageHeightMultiplier":{"localizedName":"Image height multiplier","value":"1","variableName":""}},"outputs":{"modiEngine":{"localizedName":"OCR engine","value":"","variableName":"OCREngine2"}},"startTime":"2021-04-13T22:17:21.3536901Z","index":2,"functionName":"main","insideErrorHandling":false,"endTime":"2021-04-13T22:17:21.3776761Z","status":"Failed","error":{"code":"ActionRuntimeError","correlationId":"6a1f3482-8bde-4887-8e96-516ec7b34d34","message":"Runtime Error: Image width multiplier should be equal to or greater than one (1). Image width multiplier should be equal to or greater than one (1)"},"contextData":[{"type":"Screenshot","valueType":"BinaryReference","value":"9decb705-1546-4647-8f90-c4f8a76f9a0d","metadata":{"mimeType":"image/gif"}}]}
As that got logged, I tried the same procedure with the Tesseract engine. That too gets logged:
{"name":"Display message","systemActionName":"ShowMessageDialog","systemModuleName":"Display","localizedModuleName":"Message boxes","inputs":{"closeAutomatically":{"localizedName":"Close message box automatically","value":"False","variableName":""},"message":{"localizedName":"Message to display","value":"Tesseract still not working","variableName":""},"icon":{"localizedName":"Message box icon","value":"None","variableName":""},"buttons":{"localizedName":"Message box buttons","value":"OK","variableName":""},"defaultButton":{"localizedName":"Default button","value":"Button1","variableName":""},"isTopMost":{"localizedName":"Keep message box always on top","value":"False","variableName":""}},"outputs":{"buttonPressed":{"localizedName":"Button pressed","value":"OK","variableName":"ButtonPressed"}},"startTime":"2021-04-13T22:22:35.3111488Z","index":1,"functionName":"main","insideErrorHandling":false,"endTime":"2021-04-13T22:22:38.5546335Z","status":"Succeeded"}
{"name":"Create Tesseract OCR engine","systemActionName":"CreateTesseractOCREngineBase","systemModuleName":"OCR","localizedModuleName":"OCR","inputs":{"useOtherLanguage":{"localizedName":"Use other language","value":"False","variableName":""},"language":{"localizedName":"Tesseract language","value":"English","variableName":""},"imageWidthMultiplier":{"localizedName":"Image width multiplier","value":"0","variableName":""},"imageHeightMultiplier":{"localizedName":"Image height multiplier","value":"1","variableName":""}},"outputs":{"tesseractEngine":{"localizedName":"OCR engine","value":"","variableName":"OCREngine"}},"startTime":"2021-04-13T22:22:38.5566337Z","index":3,"functionName":"main","insideErrorHandling":false,"endTime":"2021-04-13T22:22:38.5816174Z","status":"Failed","error":{"code":"ActionRuntimeError","correlationId":"6a1f3482-8bde-4887-8e96-516ec7b34d34","message":"Runtime Error: Image width multiplier should be equal to or greater than one (1). Image width multiplier should be equal to or greater than one (1)"},"contextData":[{"type":"Screenshot","valueType":"BinaryReference","value":"fceebacb-224e-45c8-a3cf-c67d920994ab","metadata":{"mimeType":"image/gif"}}]}
The only (unsatisfactory) conclusions I can draw from this are:
1) Failures do get logged for my PAD installation, including one resulting from purposely misconfiguring the Tesseract engine as well as an analogous one for the MODI engine.
2) A properly configured Tesseract engine fails to be created, but the failure is not logged.
This issue might be similar to this one: https://powerusers.microsoft.com/t5/Power-Automate-Desktop/CMD-Session-does-not-start/m-p/890371
Does running CMD with ipconfig in console mode work for you?
Seems like that there is an issue with the console execution vs. the designer execution?
Maybe deleting/clearing following directories helps?
%localappdata%\Microsoft\PAD.Console.Host.exe_StrongName_0ai3ib2g51gilghykmp4r0d1ng32h5tk
%localappdata%\Microsoft\PAD.Designer.Host.exe_StrongName_shfb154oqo44bi4j2fbcs1y5wwhkvhzj
Thanks for keeping up with it. I don't have any cmd.exe problems, I make very heavy use of the command prompt, ipconfig being a frequent call.
Regarding the StrongName directories, I had the same thought you did and had already deleted them.
No luck, I'm afraid. I have an unconventional troubleshooting option to explore - I'll report back.
EDIT: From use of the limited tools I have available, it seems to me that the call to create the OCR Engine, to either Tesseract41.dll, leptonica-1.78.0.dll (or perhaps the combination), kills a process or processes called by Robin.Runtime.Agent.dll, Robin.Runtime.Engine.dll (or perhaps both). The call to the tesseract dlls (unmanaged code, I believe) does not kill either PAD.Console.Host or PAD.Designer.Host. Behavior is similar to other scenarios where there is an attempt to write to protected memory.
That said, I doubt this (largely guesswork) analysis of mine is going to be of any use in solving my problem.
Regards,
burque505
Same problem here, with PAD 2.6.158.21069 and 2.9.120.21133 on Windows 10 Pro Version 10.0.19043 Build 19043 x64
created a Ticket, hopefully on the right place:
PAD doesn't initialize tesseract ocr and crash wit... - Power Platform Community (microsoft.com)
seems to be an environment problem, since I have another computer from work on which all works fine with 2.6. But without a concrete error message I can not fix it.
-- deleted by user
Episode Seven of Power Platform Connections sees David Warner and Hugo Bernier talk to Microsoft MVP Dian Taylor, alongside the latest news, product reviews, and community blogs. Use the hashtag #PowerPlatformConnects on social media for a chance to have your work featured on the show! Show schedule in this episode: 0:00 Cold Open 00:30 Show Intro 01:02 Dian Taylor Interview 18:03 Blogs & Articles 26:55 Outro & Bloopers Check out the blogs and articles featured in this week’s episode: https://francomusso.com/create-a-drag-and-drop-experience-to-upload-case-attachments @crmbizcoach https://www.youtube.com/watch?v=G3522H834Ro/ @pranavkhuranauk https://github.com/pnp/powerapps-designtoolkit/tree/main/materialdesign%20components @MMe2K https://2die4it.com/2023/03/27/populate-a-dynamic-microsoft-word-template-in-power-automate-flow/ @StefanS365 https://d365goddess.com/viva-sales-administrator-settings/ @D365Goddess https://marketplace.visualstudio.com/items?itemName=megel.mme2k-powerapps-helper#Visualize_Dataverse_Environments @MMe2K Action requested: Feel free to provide feedback on how we can make our community more inclusive and diverse. This episode premiered live on our YouTube at 12pm PST on Thursday 30th March 2023. Video series available at Power Platform Community YouTube channel. Upcoming events: Business Applications Launch – April 4th – Free and Virtual! M365 Conference - May 1-5th - Las Vegas Power Apps Developers Summit – May 19-20th - London European Power Platform conference – Jun. 20-22nd - Dublin Microsoft Power Platform Conference – Oct. 3-5th - Las Vegas Join our Communities: Power Apps Community Power Automate Community Power Virtual Agents Community Power Pages Community If you’d like to hear from a specific community member in an upcoming recording and/or have specific questions for the Power Platform Connections team, please let us know. We will do our best to address all your requests or questions.
Super Users – 2023 Season 1 We are excited to kick off the Power Users Super User Program for 2023 - Season 1. The Power Platform Super Users have done an amazing job in keeping the Power Platform communities helpful, accurate and responsive. We would like to send these amazing folks a big THANK YOU for their efforts. Super User Season 1 | Contributions July 1, 2022 – December 31, 2022 Super User Season 2 | Contributions January 1, 2023 – June 30, 2023 Curious what a Super User is? Super Users are especially active community members who are eager to help others with their community questions. There are 2 Super User seasons in a year, and we monitor the community for new potential Super Users at the end of each season. Super Users are recognized in the community with both a rank name and icon next to their username, and a seasonal badge on their profile. Power Apps Power Automate Power Virtual Agents Power Pages Pstork1* Pstork1* Pstork1* OliverRodrigues BCBuizer Expiscornovus* Expiscornovus* ragavanrajan AhmedSalih grantjenkins renatoromao Mira_Ghaly* Mira_Ghaly* Sundeep_Malik* Sundeep_Malik* SudeepGhatakNZ* SudeepGhatakNZ* StretchFredrik* StretchFredrik* 365-Assist* 365-Assist* cha_cha ekarim2020 timl Hardesh15 iAm_ManCat annajhaveri SebS Rhiassuring LaurensM abm TheRobRush Ankesh_49 WiZey lbendlin Nogueira1306 Kaif_Siddique victorcp RobElliott dpoggemann srduval SBax CFernandes Roverandom schwibach Akser CraigStewart PowerRanger MichaelAnnis subsguts David_MA EricRegnier edgonzales zmansuri GeorgiosG ChrisPiasecki ryule AmDev fchopo phipps0218 tom_riha theapurva takolota Akash17 momlo BCLS776 Shuvam-rpa rampprakash ScottShearer Rusk ChristianAbata cchannon Koen5 a33ik Heartholme AaronKnox okeks Matren David_MA Alex_10 Jeff_Thorpe poweractivate Ramole DianaBirkelbach DavidZoon AJ_Z PriyankaGeethik BrianS StalinPonnusamy HamidBee CNT Anonymous_Hippo Anchov KeithAtherton alaabitar Tolu_Victor KRider sperry1625 IPC_ahaas zuurg rubin_boer cwebb365 Dorrinda G1124 Gabibalaban Manan-Malhotra jcfDaniel WarrenBelz Waegemma drrickryp GuidoPreite If an * is at the end of a user's name this means they are a Multi Super User, in more than one community. Please note this is not the final list, as we are pending a few acceptances. Once they are received the list will be updated.
Join us for an in-depth look into the latest updates across Microsoft Dynamics 365 and Microsoft Power Platform that are helping businesses overcome their biggest challenges today. Find out about new features, capabilities, and best practices for connecting data to deliver exceptional customer experiences, collaborating, and creating using AI-powered capabilities, driving productivity with automation—and building towards future growth with today’s leading technology. Microsoft leaders and experts will guide you through the full 2023 release wave 1 and how these advancements will help you: Expand visibility, reduce time, and enhance creativity in your departments and teams with unified, AI-powered capabilities.Empower your employees to focus on revenue-generating tasks while automating repetitive tasks.Connect people, data, and processes across your organization with modern collaboration tools.Innovate without limits using the latest in low-code development, including new GPT-powered capabilities. Click Here to Register Today!
We are excited to share the ‘Power Platform Communities Front Door’ experience with you! Front Door brings together content from all the Power Platform communities into a single place for our community members, customers and low-code, no-code enthusiasts to learn, share and engage with peers, advocates, community program managers and our product team members. There are a host of features and new capabilities now available on Power Platform Communities Front Door to make content more discoverable for all power product community users which includes ForumsUser GroupsEventsCommunity highlightsCommunity by numbersLinks to all communities Users can see top discussions from across all the Power Platform communities and easily navigate to the latest or trending posts for further interaction. Additionally, they can filter to individual products as well. Users can filter and browse the user group events from all power platform products with feature parity to existing community user group experience and added filtering capabilities. Users can now explore user groups on the Power Platform Front Door landing page with capability to view all products in Power Platform. Explore Power Platform Communities Front Door today. Visit Power Platform Community Front door to easily navigate to the different product communities, view a roll up of user groups, events and forums.
We are so excited to see you for the Microsoft Power Platform Conference in Las Vegas October 3-5 2023! But first, let's take a look back at some fun moments and the best community in tech from MPPC 2022 in Orlando, Florida. Featuring guest speakers such as Charles Lamanna, Heather Cook, Julie Strauss, Nirav Shah, Ryan Cunningham, Sangya Singh, Stephen Siciliano, Hugo Bernier and many more. Register today: https://www.powerplatformconf.com/
User | Count |
---|---|
24 | |
10 | |
9 | |
6 | |
5 |
User | Count |
---|---|
37 | |
27 | |
17 | |
15 | |
15 |