inputdlg() now crashes.
119 次查看(过去 30 天)
显示 更早的评论
My program has been running fine for months. I updated Windoze 11 as MS kept bugging me to do and now inputdlg() doesn't work. After much frustration looking at my program I isolated it by just trying
answer = inputdlg("Enter a Mouse Name","Mouse Name",[1 30],"JUNK");
at the command line and the box pops up and then the program hangs. Appdesigner is dead, MATLAB is dead the only recourse it Task Manager kill!
14 个评论
dpb
2025-8-14,23:25
First make sure to have any MATLAB and Windows updates installed just in case there was some known issue in one of those.
Did the symptom also come with the move to R2025a or was it running before on R2025a?
Any chance of having an earlier release of MATLAB still installed that could test?
It none of the above resolves the issue, submit this to Mathworks as an official support request/bug at <Product Support Page>
Star Strider
2025-8-14,23:37
This sort of idiocy in Micro$oft's part is one of the reasons I upgraded to Linux (Ubuntu 24.04).
I suggest that you consider doiing the same. It's free, it's well-supported, and it actually works (much better than whatever Micro$oft is doing these days). Firefox and Thunderbird work well with it, as does MATLAB.
That doesn't immediately solve your problem, however it definitely points you in the correct direction!
shantanu
2025-8-18,9:36
I tried this below mentioned command only on command window. I am also using MATLAB R2025a and windows 11 and it worked fine for me without any crashes or errors. Could you tell me more about your workflow or what led to this crash.
answer = inputdlg("Enter a Mouse Name","Mouse Name",[1 30],"JUNK");
Gavin
2025-8-18,20:35
Updating Windows caused the problem Insert the above line into Command window and it runs then locks up MATLAB. Latest Windows update?
Device Name DESKTOP-G4BH57B
Processor Intel(R) Core(TM) i5-2500 CPU @ 3.30GHz 3.30 GHz
Installed RAM 8.00 GB (7.88 GB usable)
Storage 466 GB SSD Samsung SSD 870 EVO 500GB
Graphics Card Intel(R) HD Graphics (32 MB)
Device ID 242AA719-A9C7-4A6D-B702-5063A019C8E1
Product ID 00330-50000-00000-AAOEM
System Type 64-bit operating system, x64-based processor
Pen and touch No pen or touch input is available for this display
Event Log Critical
0x3D55: Package family Microsoft.Edge.GameAssist_8wekyb3d8bbwe runtime information is corrupted. Attempting to correct the issue.
I don't want ANY games. How to kill this?
Gavin
2025-8-18,20:37
Or is it this one?
Log Name: System
Source: Microsoft-Windows-DistributedCOM
Date: 8/18/2025 3:32:48 PM
Event ID: 10016
Task Category: None
Level: Warning
Keywords: Classic
User: DESKTOP-G4BH57B\CPSLab
Computer: DESKTOP-G4BH57B
Description:
The application-specific permission settings do not grant Local Activation permission for the COM Server application with CLSID
{2593F8B9-4EAF-457C-B68A-50F6B8EA6B54}
and APPID
{15C20B67-12E7-4BB6-92BB-7AFF07997402}
to the user DESKTOP-G4BH57B\CPSLab SID (S-1-5-21-1975001305-1172379909-604540765-1002) from address LocalHost (Using LRPC) running in the application container Unavailable SID (Unavailable). This security permission can be modified using the Component Services administrative tool.
Event Xml:
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
<System>
<Provider Name="Microsoft-Windows-DistributedCOM" Guid="{1B562E86-B7AA-4131-BADC-B6F3A001407E}" EventSourceName="DCOM" />
<EventID Qualifiers="0">10016</EventID>
<Version>0</Version>
<Level>3</Level>
<Task>0</Task>
<Opcode>0</Opcode>
<Keywords>0x8080000000000000</Keywords>
<TimeCreated SystemTime="2025-08-18T20:32:48.2279001Z" />
<EventRecordID>14680</EventRecordID>
<Correlation ActivityID="{dcd28f13-893c-49df-92c0-2360266ac7c4}" />
<Execution ProcessID="460" ThreadID="4416" />
<Channel>System</Channel>
<Computer>DESKTOP-G4BH57B</Computer>
<Security UserID="S-1-5-21-1975001305-1172379909-604540765-1002" />
</System>
<EventData>
<Data Name="param1">application-specific</Data>
<Data Name="param2">Local</Data>
<Data Name="param3">Activation</Data>
<Data Name="param4">{2593F8B9-4EAF-457C-B68A-50F6B8EA6B54}</Data>
<Data Name="param5">{15C20B67-12E7-4BB6-92BB-7AFF07997402}</Data>
<Data Name="param6">DESKTOP-G4BH57B</Data>
<Data Name="param7">CPSLab</Data>
<Data Name="param8">S-1-5-21-1975001305-1172379909-604540765-1002</Data>
<Data Name="param9">LocalHost (Using LRPC)</Data>
<Data Name="param10">Unavailable</Data>
<Data Name="param11">Unavailable</Data>
</EventData>
</Event>
Gavin
2025-8-18,22:20
I found out that JAVA wasn't running so I installed it to no avail.
I put in a support request with more details as I tried everything I could think of
My Support Cases 08020753 inputdlg() fails to complete after a Windoze update last week
Gavin
2025-8-22,21:31
I've uninstalled and reinstalled MATLAB to no avail. figure and dialog and uialerts all work fine it's just that I think inputdlg() goes out to Windows to do it's thing and maybe needs JAVA?
JAVA also reinstalled (before MATLAB reinstall but MATLAB still won't use it.
>> jenv
ans =
Version: "Java is not enabled"
Home: "Java is not enabled"
Library: "Java is not enabled"
Status: notloaded
Configuration: "factory"
Is this the problem and if so how do I fix that? Support in India can't figure it out.
Gavin
2025-8-22,21:54
questdlg(...) also fails
uialert(...) works fine
prompt = "Test"
input(prompt,'s') works, oddly input(prompt) fails even though 's' is supposed to be optional!
Not useful in an App Designed APP since the prompt is in the command window, not my app.
Also returned answer is in a different format so I'd have to rewrite more of the program.
Anything else I should try? Remember I have to kill and restart MAATLAB for each thing I try. It takes a while. Especially 2025a takes a long time to start up.
Stephen23
2025-8-23,3:35
编辑:Stephen23
2025-8-23,3:35
"Anything else I should try?"
Contact technical support: https://www.mathworks.com/support/contact_us.html
Gavin
2025-8-23,19:52
Nobody can reproduce it! I guess someone needs to look at my system logs and or figure out how to get JAVA to load properly on a new install if that is in fact the problem.
Does inputdlg() use JAVA to finish?
>> jenv
ans =
JavaEnvironment with properties:
Version: "Java is not enabled"
Home: "Java is not enabled"
Library: "Java is not enabled"
Status: notloaded
Configuration: "factory"
Gavin
2025-8-23,20:26
I'm happy to allow access to that machine (when I am there) No one has asked, and I'm not in that lab everyday. I am a programmer for several labs and companies so I'm not on that job every day (which is why they keep closing my case as I don't respond instantly.)
I'd love to get JAVA to work with MATLAB (if that's the issue) That is the only machine where >>jenv shows it is not installed. is there a problem with 1.8.0.461?
My other system has
>> version -java
ans =
'Java 1.8.0_202-b08 with Oracle Corporation Java HotSpot(TM) 64-Bit Server VM mixed mode'
Which I think may be the MATLAB included version from 2024b. Most of my systems are 2024b I'd have to check if any others have been updated to 2025a
Image Analyst
2025-8-24,3:17
Well, when you're there, call tech support and set up a screen sharing session so they can debug it and fix it for you.
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Startup and Shutdown 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!发生错误
由于页面发生更改,无法完成操作。请重新加载页面以查看其更新后的状态。
您也可以从以下列表中选择网站:
如何获得最佳网站性能
选择中国网站(中文或英文)以获得最佳网站性能。其他 MathWorks 国家/地区网站并未针对您所在位置的访问进行优化。
美洲
- América Latina (Español)
- Canada (English)
- United States (English)
欧洲
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom(English)
亚太
- Australia (English)
- India (English)
- New Zealand (English)
- 中国
- 日本Japanese (日本語)
- 한국Korean (한국어)